Re: does this work?
| From: | Erik Price | Date: | Thu, 10 Jan 2002 21:54:54 +0000 |
| Subject: | Re: does this work? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-80088@lists.php.net to get a copy of this message | ||
On Thursday, January 10, 2002, at 04:39 PM, Rick Emery wrote:
Show all your code. Did you open a connection to the MYSQL server? If so, show the code.Okay, but I changed some personal info (that I know is definitely correct): <?php // arraytest.php $db = mysql_connect("hostname", "username", "password"); mysql_select_db("database_name", $db); ?> <html> <head> <title>Array Test</title> </head> <body> $tempsql = "SELECT COUNT(*) AS count FROM divisions"; $tempresult = mysql_query("$tempsql", $db); $temprow = mysql_fetch_array($tempresult); echo $temprow["count"]; mysql_close($db); ?> </body> </html>