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? Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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.