Much of the password discussion I've seen revolves around encrypting the
user-supplied password, but what about the user/password used to make the
initial connection? In other words, I'm assuming that the .php file has the
initial user and password right in the text in order to make the
Remember that PHP is a server-side scripting language, so all PHP code is
parsed at the server side and you will never see the code but the results,
second, the .php files should have permissions that do not allow direct
acces to them, but thru the web browser!!
So, basically there is no
Hi all,
I have a table with the record_id as the unique primary key and
another column (the record_name) as unique as well. This is working
how I want it to. I want unique record_names.
When the user tries to add a record with an existing record_name the
sql statement execution fails: error
Hi, I'm a designer of simple webpages, and an enthusiastic user of
PHP applications that run with MySQL -- but I don't write, or think
in, PHP, so I can't quite figure how to do this:
I run phpbb forum software (yes, I've asked at phpbb and at
phpbbhacks, no luck) and I have installed for our
?
...
$result = mysql_query($query);
if (mysql_errno($result) == 1062)
{
echo Already present in database;
}
?
Bastien
From: JM [EMAIL PROTECTED]
Reply-To: JM [EMAIL PROTECTED]
To: php-db@lists.php.net php-db@lists.php.net
Subject: [PHP-DB] Trapping a mySQL error
Date: Wed, 27 Jul 2005