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
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
-
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
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
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
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
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
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
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
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
10 matches
Mail list logo