note 23640 deleted from function.mysql-connect by dams
| From: | dams@php.net | Date: | Fri, 26 Jul 2002 10:32:44 +0000 |
| Subject: | note 23640 deleted from function.mysql-connect by dams | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-33594@lists.php.net to get a copy of this message | ||
Please help me.
This script wont run. What's wrong?
<BODY>
<?php
$link = mysql_connect("localhost", "username", "password")
or die($php_errormsg);
print "Connected successfully";
mysql_select_db("database01") or die("Could not select datab
ase");
mysql_query("INSERT INTO info (name,address,email,phone_number,I
D) values ($name,$address,$email,$phone,NULL)");
echo"Hello ",$name," Thank you for loggin in.";
?>
</BODY>
</HTML>