Got a warning!

2003-09-02 Thread Magnus D. Klein
Hi I'm a mysql/php novice.

I tried connect a mysql-db using php4 under linux. Then I get a warning
by the parser from the function mysql_free_result($result);
Warning: mysql_free_result(): supplied argument is not a valid MySQL result 
resource in /srv/www/htdocs In all reference books I found this syntax. 
Has anyone an idea what wrong?

Many thanx

Mag

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Got a warning!

2003-09-02 Thread Antony Dovgal
On Tue, 2 Sep 2003 12:12:42 +0200
Magnus D.  Klein [EMAIL PROTECTED] wrote:

 I tried connect a mysql-db using php4 under linux. Then I get a warning
 by the parser from the function mysql_free_result($result);
 Warning: mysql_free_result(): supplied argument is not a valid MySQL result 
 resource in /srv/www/htdocs In all reference books I found this syntax. 
 Has anyone an idea what wrong?

you should use mysql_free_result(); only with resources you get from mysql_query();

---
WBR,
Antony Dovgal aka tony2001
[EMAIL PROTECTED]

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]