Re: [PHP-DB] data is not entering in created database

2004-12-26 Thread Bastien Koert
error check it mysql_query(INSERT INTO totalinfo (Username,Password) VALUES ('$loginusername','$loginpassword'))or die (mysql_error()); bastien From: amol patil [EMAIL PROTECTED] To: graeme [EMAIL PROTECTED],Jochem Maas [EMAIL PROTECTED], php-db@lists.php.net Subject: Re: [PHP-DB] data is not

Re: [PHP-DB] query is not executing data is not entering in created database

2004-12-26 Thread amol patil
hallo, see below code. query is not executing and data is not shown in table of database.after submit button hit. how to evaluate $submit true. have Tried these statements before if statement echo --$submit--; echo --$_POST[submit]--; echoSubmit = $submit ; but still query is not

Re: [PHP-DB] query is not executing data is not entering in created database

2004-12-26 Thread John Holmes
amol patil wrote: hallo, see below code. query is not executing and data is not shown in table of database.after submit button hit. how to evaluate $submit true. have Tried these statements before if statement echo --$submit--; echo --$_POST[submit]--; echoSubmit = $submit ; but still

[PHP-DB] Undefined indicies

2004-12-26 Thread Peter Jay Salzman
Slightly off topic, I apologise. Total newbie. In many php DB tutorials I've seen, it's recommended to set register_globals off, and error reporting to E_ALL. When I looked at my system, register_globals was enabled and error reporting was set to E_FATAL. I changed them to the suggested values

Re: [PHP-DB] Undefined indicies

2004-12-26 Thread John Holmes
Peter Jay Salzman wrote: Slightly off topic, I apologise. Yeah, you should ask this on php-general@lists.php.net Total newbie. In many php DB tutorials I've seen, it's recommended to set register_globals off, and error reporting to E_ALL. Good recommendations. Setting the error reporting to E_ALL

[PHP-DB] auto_increment

2004-12-26 Thread Ron Piggott
I have the auto_increment on one of my variables. During the past few days I have been doing testing on a live database and created several test records which I now have deleted from my table. Is there any way of setting the auto_increment value to match the last correct number? Ron -- PHP

Re: [PHP-DB] auto_increment

2004-12-26 Thread Larry E . Ullman
I have the auto_increment on one of my variables. During the past few days I have been doing testing on a live database and created several test records which I now have deleted from my table. Is there any way of setting the auto_increment value to match the last correct number? Ron You don't

Re: [PHP-DB] Undefined indicies

2004-12-26 Thread Zareef Ahmed
On Sun, 26 Dec 2004 15:47:54 -0500, John Holmes [EMAIL PROTECTED] wrote: Peter Jay Salzman wrote: Slightly off topic, I apologise. if ( isset($_REQUEST['action']) $_REQUEST['action'] == 'foo' ) do_something; Personally I prefer the use of isset(), as it make sure that value