Go Back   Novahq.net Forum > phphq.Net > phphq.Net Forums
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-11-2004, 09:17 AM
XinG
Unregistered

Posts: n/a

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>";
?>
Reply With Quote
  #2  
Old 12-15-2004, 12:43 PM
PHP-LArgo GUEST
Unregistered

Posts: n/a

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]
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -5. The time now is 03:46 PM.




Powered by vBulletin®