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); Quote 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? Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/248448-t_variable-error/#findComment-1275882 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.