ballhogjoni Posted March 28, 2007 Share Posted March 28, 2007 Parse error: syntax error, unexpected '?' in /home/realfina/public_html/website_builder/phpcb/filgen.php on line 373 Can someone explain what this means? Link to comment https://forums.phpfreaks.com/topic/44667-solved-parse-error-syntax-error-unexpected-in-homerealfinapublic_htmlwebsite_/ Share on other sites More sharing options...
trq Posted March 28, 2007 Share Posted March 28, 2007 It means exactly what it says. You have a syntax error on (or near) line 373 in the file /home/realfina/public_html/website_builder/phpcb/filgen.php. Post your code 10 lines prior and upto line 373. Link to comment https://forums.phpfreaks.com/topic/44667-solved-parse-error-syntax-error-unexpected-in-homerealfinapublic_htmlwebsite_/#findComment-216893 Share on other sites More sharing options...
ballhogjoni Posted March 28, 2007 Author Share Posted March 28, 2007 print ("File could not be opened."); exit; } fputs($myFile, $f); fclose($myFile); echo 'The insertion code is generated at /PCB_code/edit.php<a href="/PCB_code/edit.php">Edit</a> <br>';'; /* FOR VIEW.PHP */ $f='<? include(\'main.php\'); include(\'connect.php\'); '; $f=$f.'$q1="select * from '.$table.'"; $q1e=mysql_query($q1); $n1=mysql_num_rows($q1e); echo \'<table border="1" width="100%"> <tr>\'; echo \' I included a couple more lines because i didn't think there was enough code to work with. Link to comment https://forums.phpfreaks.com/topic/44667-solved-parse-error-syntax-error-unexpected-in-homerealfinapublic_htmlwebsite_/#findComment-216899 Share on other sites More sharing options...
per1os Posted March 28, 2007 Share Posted March 28, 2007 $f=$f.'$q1="select * from '.$table.'"'; you forgot to end that string with a single quote. Link to comment https://forums.phpfreaks.com/topic/44667-solved-parse-error-syntax-error-unexpected-in-homerealfinapublic_htmlwebsite_/#findComment-216917 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.