I cant see no problem with the code, it works fine with me. Or maybe its a
database problem.
Gene Ordanza II wrote:
> Hi,
> I'm having problem running my PHP script accessing MySQL database.
>
> Error Message:
> Warning: 0 is not MySQL result index in script1 on line 11
>
> Code:
> $data = mysql_query("select * from table1", $db1);
> printf("%s<br>", mysql_result($data,0,"field1")); # line 11
>
> Comment, suggestions and hints are appreciated. TIA.
>
> --gene
>
> -
> Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
> To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
--
[EMAIL PROTECTED]
Web App Developer
"I code, therefore I am."
-
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]