RE: [PHP] SQL sums

2004-12-03 Thread Thomas S. Crum - AAA Web Solution, Inc.
If someone doesn't give you an answer here, try php cookbook by O'reilly. It has this exact recipe in it. Best, Thomas S. Crum -Original Message- From: James Nunnerley [mailto:[EMAIL PROTECTED] Sent: Friday, December 03, 2004 9:56 AM To: [EMAIL PROTECTED] Subject: [PHP] SQL sums I'm t

RE: [PHP] Errors

2004-12-01 Thread Thomas S. Crum - AAA Web Solution, Inc.
Incorrect syntax. You likely have a set a variable and not ended it with ';' For example, $some_variable = "some_value"; is the proper syntax. Or, post the code as recommended. Best, Thomas S. Crum -Original Message- From: Greg Donald [mailto:[EMAIL PROTECTED] Sent: Wednesday, Decem

RE: [PHP] How to ensure cookies are turned on.

2004-11-29 Thread Thomas S. Crum - AAA Web Solution, Inc.
There is no global variable. Set a cookie the when they hit the login page and then check to be sure that cookie isset when they post to it. Example for login.php: Best, Thomas S. Crum -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: Monday, November 29,

RE: [PHP] Random number generation and phpBB search IDs

2004-11-27 Thread Thomas S. Crum - AAA Web Solution, Inc.
Use a database query to verify the random number has not been used before. $number_checker = 1; while ($number_checker != 0){ #insert your $random_number code $query = "SELECT COUNT(*) AS total FROM some_table WHERE random_number_field = '$random_number'"; $result = mysq