Darkwoods Posted October 27, 2008 Share Posted October 27, 2008 im trying to make an if then include but it is not working my question is can if and include work together? <?php $id = $_GET['id']; $result = mysql_query("SELECT * FROM pages WHERE id='$id' ",$connect); while($row = mysql_fetch_assoc($result)) { echo '<div class="'; echo $row['lang']; echo '">'; echo '<div>'; echo $row['content']; echo '</div>'; echo '</div>'; if($id == '2') { echo '<div>'; include "inc/contactus.php" echo '</div>'; } } ?> Quote Link to comment Share on other sites More sharing options...
Darkwoods Posted October 27, 2008 Author Share Posted October 27, 2008 oops i can see the mistake now! i never ended it lol i always do this dumb mistake sorry include "inc/contactus.php"; 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.