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
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
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
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
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
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
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
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