Re: [PHP-DB] insertion problem (2)
Stephen Johnson wrote: This may not necessarily be the problem. But I am not sure that you should be capitalizing the first character of your variable. That is a special type of PHP variable - which I do not use normally - so I can not remember what it is called. However, put all your variables to lower case except the pre-defined variables such as $_POST and $_GET etc. See if that helps good on ya for trying to extract the question/problem from this guy Stephen! I just wanted to add that variable names can be in any case, may not start with a number (may contain alpha-numeric chars) and are case-sensitive. the following are all valid (and different): $Tee1 = 1; $tee1 = 1; $_tee1 = 1; $_TEE1 = 1; $Tee= 1; Stephen Johnson c | eh The Lone Coder http://www.thelonecoder.com [EMAIL PROTECTED] 562.924.4454 (office) 562.924.4075 (fax) continuing the struggle against bad code */ ?> From: sultan Ibraheem <[EMAIL PROTECTED]> Date: Wed, 9 Mar 2005 14:50:57 -0800 (PST) To: [EMAIL PROTECTED], php-db@lists.php.net Subject: [PHP-DB] insertion problem (2) Thanks for your time,, This is the code: $uu=mysql_query("insert into voters2 ('id','username','constnum','name','fname','gname','lname')values('$T10','$T1' ,'$T11','$T4,'$T5','$T6','$T7')"); $uu2=mysql_query("insert into voters2 ('sex','birth_day','email','password') values('$D1','$T9','$T8','$T2')"); - Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] insertion problem (2)
This may not necessarily be the problem. But I am not sure that you should be capitalizing the first character of your variable. That is a special type of PHP variable - which I do not use normally - so I can not remember what it is called. However, put all your variables to lower case except the pre-defined variables such as $_POST and $_GET etc. See if that helps http://www.thelonecoder.com [EMAIL PROTECTED] 562.924.4454 (office) 562.924.4075 (fax) continuing the struggle against bad code */ ?> > From: sultan Ibraheem <[EMAIL PROTECTED]> > Date: Wed, 9 Mar 2005 14:50:57 -0800 (PST) > To: [EMAIL PROTECTED], php-db@lists.php.net > Subject: [PHP-DB] insertion problem (2) > > Thanks for your time,, > > This is the code: > > $uu=mysql_query("insert into voters2 > ('id','username','constnum','name','fname','gname','lname')values('$T10','$T1' > ,'$T11','$T4,'$T5','$T6','$T7')"); > > $uu2=mysql_query("insert into voters2 ('sex','birth_day','email','password') > values('$D1','$T9','$T8','$T2')"); > > > > - > Celebrate Yahoo!'s 10th Birthday! > Yahoo! Netrospective: 100 Moments of the Web -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] insertion problem (2)
Do you receive any errors or anything that might indicate a problem other then the date not appearing the db ? Be wordy -- hold nothing back -- give me as much as you can. http://www.thelonecoder.com [EMAIL PROTECTED] 562.924.4454 (office) 562.924.4075 (fax) continuing the struggle against bad code */ ?> > From: sultan Ibraheem <[EMAIL PROTECTED]> > Date: Wed, 9 Mar 2005 14:50:57 -0800 (PST) > To: [EMAIL PROTECTED], php-db@lists.php.net > Subject: [PHP-DB] insertion problem (2) > > Thanks for your time,, > > This is the code: > > $uu=mysql_query("insert into voters2 > ('id','username','constnum','name','fname','gname','lname')values('$T10','$T1' > ,'$T11','$T4,'$T5','$T6','$T7')"); > > $uu2=mysql_query("insert into voters2 ('sex','birth_day','email','password') > values('$D1','$T9','$T8','$T2')"); > > > > - > Celebrate Yahoo!'s 10th Birthday! > Yahoo! Netrospective: 100 Moments of the Web -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php