note 53263 deleted from faq.databases by nlopess
| From: | nlopess@php.net | Date: | Sat, 13 Aug 2005 17:42:40 +0000 |
| Subject: | note 53263 deleted from faq.databases by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-93562@lists.php.net to get a copy of this message | ||
Note Submitter: curious
----
Warning: mysqli_query() expects parameter 1 to be mysqli, null given in
c:\wamp\www\sanwork\photo_config.inc on line 35
my code is like this
$con =mysqli_connect"localhost","root","","db");
if(!$con)
die("Could not connect to mysql");
$query = "INSERT INTO customer SET custid=NULL, Name='$Name',
address='$address', description='$description'";
$result = mysqli_query($con,$query);
if(!$result)
{
echo mysql_error();
}
else
{return $result;}