empireempire Posted May 23, 2006 Share Posted May 23, 2006 The problem: Included html file (navigation) is appearing [i]within[/i] the <div> of another block for no apparent reason. however it stops when i delete the SQL call to the db, and more specifically the echo ing of rows (see ***)PHP:<body bgcolor="#666666"><div id="pagecontainer"></div><div id="news"><?php // connect to server, database, table.include ("http://www.empireempire.org/includes/db_connect.inc");$sql = mysql_query("SELECT * FROM sitenews");while ($row = mysql_fetch_row($sql)) {echo "$row[0] $row[1] $row[2]" ; <------------ PROBLEM HERE??? **** WORKS WHEN DELETED} ?></div><div id="buttons"><?php include ("http://www.empireempire.org/includes/homebuttons.html"); ?></div><div id="footer"><? include ("http://www.empireempire.org/includes/footer.html"); ?></div></body></html> Quote Link to comment Share on other sites More sharing options...
fenway Posted May 23, 2006 Share Posted May 23, 2006 That's not a MySQL problem, that's a PHP problem... I assume that you can do variable interpolation, but maybe not with array references? Try doing a proper concatenation step. 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.