Jump to content

T_VARIABLE error


joyza

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.