RE: [PHP] Weird Problem
| From: | Jennifer Goodie | Date: | Tue, 29 Jul 2003 19:46:18 +0000 |
| Subject: | RE: [PHP] Weird Problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-157414@lists.php.net to get a copy of this message | ||
> 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.