RE: [PHP-DB] Simple Addition Form

2001-01-19 Thread Sam Masiello
Since you want your totaling calculation to be done on the client side, you would need to use a client side scripting language like Javascript to do this for you. PHP is server side and can't do the dynamic form updates that you are referring to. HTH Sam Masiello Systems Analyst Chek.Com

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 -

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

2002-02-12 Thread Sam Masiello
ut 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 PROTECT

Re: [PHP-DB] Fatal Error using mysql_connect()

2002-03-12 Thread Sam Masiello
Looks like MySQL support was not compiled into PHP. If you are using a linux based system you need to run the configure script with the --with-mysql flag in order to utilize the MySQL function set. HTH Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-1362 X289 [EMAIL

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 PROTE

RE: [PHP-DB] Multiple Entry

2001-08-01 Thread Sam Masiello
ur table in its current form, you will get one row, but there will be no way to associate it with the proper machine name. HTH Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-1362 x289 [EMAIL PROTECTED] -Original Message- From: Sharif Islam [mailto:[EMAIL PROTECTED]] Se

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

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

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

2002-01-14 Thread Sam Masiello
are using 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 X