adamriley Posted June 20, 2010 Share Posted June 20, 2010 db.php ----------------------- mysql_select_db("adamlr14_multi", $conect); $result = mysql_query("SELECT * FROM status_disk_space"); while($row = mysql_fetch_array($result)) { echo "Check number: $row['check_number']"; echo "Check date : $row['date']"; echo "Check Time : $row['time']"; echo "Check Free : $row['free']"; echo "Check used space : $row['used_space']"; echo "Check Percent used :$row['per_used']"; echo "Check percent free: $row['per_free']"; echo '<br />'; echo '<br />'; } echo mysql_error(); i get this ----------------------------------------------------------------------------------- syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/adamlr14/public_html/1/db.php on line 23 Link to comment https://forums.phpfreaks.com/topic/205340-t_encapsed_and_whitespace/ Share on other sites More sharing options...
Mchl Posted June 20, 2010 Share Posted June 20, 2010 When using in double quoted strings, you must enclose array variables in {} echo "Check number: {$row['check_number']}"; Link to comment https://forums.phpfreaks.com/topic/205340-t_encapsed_and_whitespace/#findComment-1074676 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.