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'; ?> Quote 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); <--- Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.