4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 need help with sending queries
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
metsfan922
Junior WebHelper
Junior WebHelper


Joined: 09 May 2002
Posts: 15

PostPosted: Thu May 09, 2002 2:20 am (21 years, 11 months ago) Reply with QuoteBack to Top

<?
$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"
OfflineView User's ProfileFind all posts by metsfan922Send Personal Message
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Thu May 09, 2002 5:58 am (21 years, 11 months ago) Reply with QuoteBack to Top

You MIGHT want to use capitals.

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
Darren
Team Member



Joined: 05 Feb 2002
Posts: 549
Location: London

PostPosted: Thu May 09, 2002 6:29 am (21 years, 11 months ago) Reply with QuoteBack to Top

<?
$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
OfflineView User's ProfileFind all posts by DarrenSend Personal MessageVisit Poster's Website
Garth Farley
WebHelper
WebHelper


Joined: 08 Jan 2002
Posts: 69
Location: Ireland

PostPosted: Thu May 09, 2002 9:15 am (21 years, 11 months ago) Reply with QuoteBack to Top

Daniel wrote:
You MIGHT want to use capitals.


You don't have to use capitals, but it does enhance readability.

Garth Farley
OfflineView User's ProfileFind all posts by Garth FarleySend Personal Message
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   




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.155733 seconds :: 18 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme