On Mon, 9 Jun 2003 07:35:16 -0300 [EMAIL PROTECTED] (Marcelo Luiz De Laia) wrote:

> I use phpnuke and it have a sql_layer.php. You are correct, for mysql is
> mysql_query. But this dont is the problem, I change it and the problem
> continue!
> 
> Any tip??

I think you are mixing the layer and native functions.
You should use ONE of these, either the layer from phpnuke OR 
the native functions.
I don't know how the layer handles the results but from the layout you had it looks 
just wrong.

The "standard"-way using native mysql_*-functions for a select (with some basic error 
checking) is as follows:

[... connection and so on ...]

$result = mysql_query("select * from ...");

if(!mysql_error()) {
   echo mysql_error();
}

while($row=mysql_fetch_row($result)) {
  [... output ...]
}

You are either not transferring the result-identifier correctly or your query returns 
an error.


Thomas

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to