> I have the following chunk of code:
>
>       $sql = "SELECT setting from settings where name='display_rows'";
>       include("connect.inc.php");
>       print $sql;
>       $row = mysql_fetch_row($result);
>       $path = $row[0];
>       print $path;
>
> It always prints out "1"
>
> But if I run the code at the sql command prompt, it prints out "25",
> which is the correct value.
>
> Does anyone have any ideas why im having this problem??
>

Are you actually executing the query?  I don't see a mysql_query() anywhere
and it would be anti-intuituve to have that in your connection include.


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

Reply via email to