[PHP-DB] mysql_connect($server,$user,$password);

2005-07-27 Thread Chuck Han
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

RE: [PHP-DB] mysql_connect($server,$user,$password);

2005-07-27 Thread Miguel Guirao
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

[PHP-DB] Trapping a mySQL error

2005-07-27 Thread JM
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

[PHP-DB] query on database determines image swap in php-coded page?

2005-07-27 Thread Elaine Miller
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

RE: [PHP-DB] Trapping a mySQL error

2005-07-27 Thread Bastien Koert
? ... $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