Hello:
I would actually disagree with [EMAIL PROTECTED]
The mysql_query() function does not require both database and query as arguments,
only query.
The mysql_db_query() function does, thus the function name. Using mysql_query()
with database as a parameter would actually be incorrect. (See the
Go with:
$query = "SELECT * from counter";
$result = mysql_query($query) or die("Error:".mysql_error());
$i = 0;
while( $row=mysql_fetch_array(result) {
echo "$i = ".$row['time']."";
$i++;
}
this assumes that you've opened your server connection and selected database
prior to executing t
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi Chris Hogben,
> I've just been looking at this snippet, and wondering why it's not working..
> Either i'm doing something wrong, or i'm just totally ignorant.. (More
> likely the latter). But if anyone can help me out, please let me know..
>
> -