|
Author |
Message |
metsfan922
Junior WebHelper
Joined: 09 May 2002
Posts: 15
|
Posted:
Thu May 09, 2002 2:20 am (21 years, 11 months ago) |
|
<?
$db = mysql_connect("localhost", "root");
mysql_select_db("reginfo", $db);
mysql_query("insert into info (indexnum,login,password) values (1,'Adam','Adam'");
?>
why doesnt this code work? its purpose is to register those values into the fields "indexnum", "login", and "password" in my table named "info" in my database named "reginfo" |
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Thu May 09, 2002 5:58 am (21 years, 11 months ago) |
|
You MIGHT want to use capitals. |
________________________________
|
|
|
|
Darren
Team Member
Joined: 05 Feb 2002
Posts: 549
Location: London
|
Posted:
Thu May 09, 2002 6:29 am (21 years, 11 months ago) |
|
<?
$db = mysql_connect("localhost", "root");
mysql_select_db("reginfo", $db);
mysql_query("insert into info (indexnum,login,password) values (1,'Adam','Adam')");
?>
Does it need an extra closing braket after the values - see above |
|
|
|
|
Garth Farley
WebHelper
Joined: 08 Jan 2002
Posts: 69
Location: Ireland
|
Posted:
Thu May 09, 2002 9:15 am (21 years, 11 months ago) |
|
Daniel wrote: | You MIGHT want to use capitals. |
You don't have to use capitals, but it does enhance readability.
Garth Farley |
|
|
|
|
|
|
You cannot post new topics in this forum. You cannot reply to topics in this forum. You cannot edit your posts in this forum. You cannot delete your posts in this forum. You cannot vote in polls in this forum.
|
Page generation time: 0.178447 seconds :: 18 queries executed :: All Times are GMT
Powered by phpBB 2.0
© 2001, 2002 phpBB Group :: Based on an FI Theme
| |