joyza Posted October 5, 2011 Share Posted October 5, 2011 Can someone tell me why this error keeps happening on this section of code.. session_start(); include 'config.php' $link = mysql_connect($hostname, $username, $password); if(!$link) { die('Failed to connect to server: ' . mysql_error()); } $db = mysql_select_db($dbname); if(!$db) { die("Unable to select database"); } $qry = "SELECT firstname FROM members"; $result = mysql_query($qry); Link to comment https://forums.phpfreaks.com/topic/248448-t_variable-error/ Share on other sites More sharing options...
Pikachu2000 Posted October 5, 2011 Share Posted October 5, 2011 include 'config.php' // <--- Is something missing here? Perhaps at the very end of the line? Link to comment https://forums.phpfreaks.com/topic/248448-t_variable-error/#findComment-1275863 Share on other sites More sharing options...
joyza Posted October 5, 2011 Author Share Posted October 5, 2011 Thank you i worked it out after a bit thanks though Link to comment https://forums.phpfreaks.com/topic/248448-t_variable-error/#findComment-1275882 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.