sql server
Posted by: ahmad127 (5.219.217.---)
Date: December 23, 2019 09:42AM

Hi . I installed the latest version of wamp software. I can't connect to the database or table that I made and send message 1049.
<?php
;
$dbhost = "localhost";
$dbuser = "root";
$dbpass = "";
$dbname = "a";
$connection = @mysqli_connect($dbhost,$dbuser,$dbpass,$dbname);
if(mysqli_connect_errno()) {
die("database connection failed : " . " " . mysqli_connect_error() . " (" . mysqli_connect_errno()."winking smiley"
);
}

?>

//////////////////////
not condatabase connection failed : Unknown database 'a' (1049)

Options: ReplyQuote
Re: sql server
Posted by: Otomatic (Moderator)
Date: December 23, 2019 09:54AM

Hi,

Right-Click wampmanager tray icon -> Help -> MariaDB - MySQL

This forum is not intended to teach you how to use PHP or MySQL.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons



Edited 1 time(s). Last edit at 12/23/2019 09:55AM by Otomatic.

Options: ReplyQuote
Re: sql server
Posted by: ahmad127 (5.219.217.---)
Date: December 23, 2019 10:49AM

tank you

Options: ReplyQuote


Sorry, only registered users may post in this forum.