RE: [PHP] Weird Problem
| From: | Jay Blanchard | Date: | Tue, 29 Jul 2003 19:45:52 +0000 |
| Subject: | RE: [PHP] Weird Problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-157415@lists.php.net to get a copy of this message | ||
[snip]
$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;
[/snip]
Because $result is not being gotten properly...
$sql = "SELECT setting from settings where name='display_rows'";
include("connect.inc.php");
print $sql;
$result = mysql_query($sql);
$row = mysql_fetch_row($result);
$path = $row[0];
print $path;
HTH!