Jump to content

T_ENCAPSED_AND_WHITESPACE ???


adamriley

Recommended Posts

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

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.