apot Posted October 2, 2007 Share Posted October 2, 2007 I had a fully working php page and I was trying to get sessions to work so i was messing around with PHP.ini and the code of the page. now i have to write the code with no spaces after the <?php tag eg: <?phpincludes('file.php'); or it doesnt work. Also the page displays very odd: "; $i=0; while ($row_price = mysql_fetch_array($query_price)) { $i = ++$i; $price_id=$row_price["price_id"]; $start=$row_price["start"]; $end=$row_price["end"]; $cost=$row_price["cost"]; $child=$row_price["child"]; $xpax=$row_price["xpax"]; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } echo " "; echo " "; echo " Start Date End Date Cost Child Extra Pax Action Delete "; echo " "; echo ""; } echo " "; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo " Does anybody have any idea why it is doing this? Quote Link to comment Share on other sites More sharing options...
MmmVomit Posted October 2, 2007 Share Posted October 2, 2007 What does the page do if you put a space after the opening php tag? Quote Link to comment Share on other sites More sharing options...
ballhogjoni Posted October 2, 2007 Share Posted October 2, 2007 show us the whole code. Quote Link to comment Share on other sites More sharing options...
MmmVomit Posted October 2, 2007 Share Posted October 2, 2007 Post your code and see if anyone can find the typo. Quote Link to comment Share on other sites More sharing options...
trq Posted October 2, 2007 Share Posted October 2, 2007 You need a space after the <?php tag for your script to be executed as php. Quote Link to comment Share on other sites More sharing options...
BlueSkyIS Posted October 2, 2007 Share Posted October 2, 2007 yes, quite obviously this isn't going to work: <?phpincludes('file.php'); Quote Link to comment Share on other sites More sharing options...
apot Posted October 3, 2007 Author Share Posted October 3, 2007 I came in this morning with a clear mind and solved the problem. Thanks for your help! It was a problem with a file I had included. 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.