[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! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php