RE: [PHP-DB] Connection error

2002-04-19 Thread Sam Masiello
Instead of suppressing the error message using the @ sign, why not remove it and your die() statement and see what error is produced on your live server? HTH --Sam -Original Message- From: Ciprian Trofin [mailto:[EMAIL PROTECTED]] Sent: Friday, April 19, 2002 6:29 AM To: [EMAIL

Re: [PHP-DB] Required pages...

2002-02-12 Thread Sam Masiello
, but it is a pretty easy, convenient way to require authentication. HTH Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-1362 X289 [EMAIL PROTECTED] - Original Message - From: Rick Emery [EMAIL PROTECTED] To: 'jas' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, February 12, 2002

RE: [PHP-DB] How to find out the number of rows in a table?

2002-01-24 Thread Sam Masiello
Try the following: $sql = select count(*) as c from your_table ; $result = mysql_query(your_db, $sql, your_connection_identifier) ; $row_count = mysql_result($result, 0, 'c') ; Now $row_count contains the number of rows in your table named your_table HTH --Sam Masiello Andy [EMAIL

Re: [PHP-DB] grabbing id from new record

2002-01-14 Thread Sam Masiello
MySQL. There is a function called mysql_insert_id() that will give you the answer that you are looking for. You can find more information about it here: http://www.php.net/manual/en/function.mysql-insert-id.php HTH Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-1362 X289 [EMAIL

RE: [PHP-DB] mail ()

2001-09-17 Thread Sam Masiello
I think you might want to be a little more specific as to what you are trying to accomplish. Give us some more details and we would be glad to help you out! HTH Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-1362 X289 [EMAIL PROTECTED] -Original Message- From

RE: [PHP-DB] Stupid question=p

2001-09-17 Thread Sam Masiello
in the database. When you pull it out of the database, you can use the unserialize() function to turn it back into an array. See http://www.php.net/serialize for more information. HTH Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-1362 X289 [EMAIL PROTECTED] -Original Message

RE: [PHP-DB] PHP IRC channel?

2001-08-16 Thread Sam Masiello
On efnet, you can go to #php HTH Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-1362 x289 [EMAIL PROTECTED] -Original Message- From: Brian Tegtmeier [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 16, 2001 12:15 PM To: [EMAIL PROTECTED] Subject