#1
|
||
|
Error on line 109
On the website im coding at the moment, I have just done the news headlines script (not fully complete yet). But as i tried to test it out, it comes up with an error on line 109. line 109 = </html>
This is the code: <?php mysql_connect(localhost,DB_USER,DB_PASSWORD); mysql_select_db(DB); $result = mysql_query("SELECT * FROM news order by id DESC LIMIT 7"); while ($row = mysql_fetch_array($result)) { $title = $row["title"]; $date = $row["date"]; echo "<ul><li>$title on $date</li></ul>"; ?> |
#2
|
||
|
close your while...
[quote:b16b204a07]<?php mysql_connect(localhost,DB_USER,DB_PASSWORD); mysql_select_db(DB); $result = mysql_query("SELECT * FROM news order by id DESC LIMIT 7"); while ($row = mysql_fetch_array($result)) { $title = $row["title"]; $date = $row["date"]; echo "<ul><li>$title on $date</li></ul>"; ?>[/qoute] [code:1:b16b204a07]<?php mysql_connect(localhost,DB_USER,DB_PASSWORD); mysql_select_db(DB); $result = mysql_query("SELECT * FROM news order by id DESC LIMIT 7"); while ($row = mysql_fetch_array($result)) { $title = $row["title"]; $date = $row["date"]; echo "<ul><li>$title on $date</li></ul>"; //close while } ?>[/code:1:b16b204a07] [/quote:b16b204a07] |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
DFLW Swapfile error fix error | Hellfighter | Tech Support | 0 | 02-29-2008 03:35 AM |
installing DFBHD, I get an error, “An error occurred during the move data process.” | Steve | Delta Force | 1 | 01-09-2007 04:54 AM |
XM-109 25mm Sniper Rifle | DevilDog#1 | General Chat | 15 | 06-07-2005 05:17 PM |
If your getting an error with Team Speak with the Richedit Line Insertion Error READ | .DareDevil. | Hardware and Software | 0 | 09-29-2004 03:50 PM |
error message, “Error 106.” | Steve | Delta Force | 0 | 01-08-2004 08:27 PM |