ryeman98 Posted June 26, 2007 Share Posted June 26, 2007 Hi there! I've been using the multiple column script here: http://www.phpfreaks.com/forums/index.php/topic,95426.0.html And I've gotten this error right now: Parse error: syntax error, unexpected T_ECHO in /home/4617/domains/somesite.com/html/customisation/ryetest.php on line 36 And this is the code: 35. if (++$i == $max_columns { 36. echo "</tr>"; 37. $i=0; Help? Thanks! Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted June 26, 2007 Share Posted June 26, 2007 read your code. You didn't close brackets take your time and be through in checking pre coming here Quote Link to comment Share on other sites More sharing options...
ryeman98 Posted June 26, 2007 Author Share Posted June 26, 2007 read your code. You didn't close brackets take your time and be through in checking pre coming here Maybe I should've posted the rest of the code. I kinda figured people would look at that other page for the full code though } // End if } // End while } // End if results [code] [/code] Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted June 26, 2007 Share Posted June 26, 2007 you still missing your error if (++$i == $max_columns should be if (++$i == $max_columns) Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted June 26, 2007 Share Posted June 26, 2007 better version is if ($i-1 == $max_columns) Quote Link to comment Share on other sites More sharing options...
ryeman98 Posted June 26, 2007 Author Share Posted June 26, 2007 Wow am I tired or what! xD Thanks. Quote Link to comment Share on other sites More sharing options...
suma237 Posted June 26, 2007 Share Posted June 26, 2007 try this if ((++$i) == $max_columns) { echo "</tr>"; $i=0; } 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.