madspof Posted January 12, 2008 Share Posted January 12, 2008 Hi everyone this code gives me this parse error "Parse error: parse error, unexpected T_ECHO in C:\Deskfun\login.php on line 168" which is the echo function can anyone see why. <?php include("connect.php"); $query = "SELECT url FROM userpic WHERE DP = '1'"; $result = mysql_query($query); $row = mysql_fetch_assoc($result) echo 'hello'; ?> Link to comment https://forums.phpfreaks.com/topic/85720-solved-why-can-anyone-see-why-this-is-giving-me-a-parse-error/ Share on other sites More sharing options...
revraz Posted January 12, 2008 Share Posted January 12, 2008 Missing semi colon $row = mysql_fetch_assoc($result); <--- Link to comment https://forums.phpfreaks.com/topic/85720-solved-why-can-anyone-see-why-this-is-giving-me-a-parse-error/#findComment-437470 Share on other sites More sharing options...
madspof Posted January 12, 2008 Author Share Posted January 12, 2008 thanks am getting tired i think am gona stop shudnt have realy missed that thnks Link to comment https://forums.phpfreaks.com/topic/85720-solved-why-can-anyone-see-why-this-is-giving-me-a-parse-error/#findComment-437471 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.