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! Link to comment https://forums.phpfreaks.com/topic/57208-multiple-errors/ 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 Link to comment https://forums.phpfreaks.com/topic/57208-multiple-errors/#findComment-282747 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] Link to comment https://forums.phpfreaks.com/topic/57208-multiple-errors/#findComment-282753 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) Link to comment https://forums.phpfreaks.com/topic/57208-multiple-errors/#findComment-282755 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) Link to comment https://forums.phpfreaks.com/topic/57208-multiple-errors/#findComment-282757 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. Link to comment https://forums.phpfreaks.com/topic/57208-multiple-errors/#findComment-282759 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; } Link to comment https://forums.phpfreaks.com/topic/57208-multiple-errors/#findComment-282761 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.