Go Back   Novahq.net Forum > Computers > Web design and Programming
FAQ Community Calendar Today's Posts Search

Web design and Programming Discuss website creation and other programming topics.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-06-2004, 12:11 PM
JonM is offline JonM
Registered User

Join Date: Jun 2004
Posts: 2,156

RollEyes Another Error, but it's really stupid

18:
PHP Code:
<?php
19

20$db mysql_connect("http://www.cwhq.net","admin123","");
21mysql_select_db (General,$db);
22$result mysql_query ("select * FROM News"$db);
23: echo "<tr><td>Title and Author</td><td>Story</tr>\n";
24
25
26
27: while ($myrow mysql_fetch_row($result)) {
28
29
30
31:         printf("<tr><td>%s %s</td><td>%s</td></tr>\n",
32:         $myrow[1], $myrow[2], $myrow[3]);
33: }
34
35?>
Error:
PHP Code:
?> 
Reply With Quote
  #2  
Old 08-06-2004, 01:30 PM
katana*GFR* is offline katana*GFR*

Join Date: May 2002
Location: North Sea
Posts: 2,421

Send a message via ICQ to katana*GFR* Send a message via MSN to katana*GFR*
http://www.phphq.net/

Try there its a PHP site. From our berjubeled Admin Panther
__________________
<- Sponsored by Chris



Found on Youtube:
Quote:
And if Newton Faulkner's voice can be described as "R&B" then Kurt Cobain must be a member of Boyz II Men.
Link here
Reply With Quote
  #3  
Old 08-06-2004, 02:01 PM
JonM is offline JonM
Registered User

Join Date: Jun 2004
Posts: 2,156

i already know there, and post there. I'm trying to get a quicker response on this question though.
Reply With Quote
  #4  
Old 08-06-2004, 07:28 PM
Lakie is offline Lakie

Join Date: Mar 2002
Posts: 5,540

whats the error?
Reply With Quote
  #5  
Old 08-06-2004, 09:20 PM
Scott is offline Scott
Scott's Avatar
AKA. Panther

Join Date: Sep 2001
Location: Minneapolis, MN
Posts: 10,927

<?php

mysql_connect("http://www.cwhq.net","admin123","");
mysql_select_db("General");



echo "<table border=\"0\"><tr><td>Title and Author</td><td>Story</td></tr>\n";

$query=mysql_query("SELECT * FROM News") or die("Theres an error in the mysql query: ".mysql_error());

while($result=mysql_fetch_array($query)) {
echo "<tr><td>".$result[title]." ".$result[author]."</td></tr>\n";
echo "<tr><td>".$result[story]."</td></tr>\n",
}
mysql_free_result($query);

echo "</table>\n";
?>
__________________

04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq
Reply With Quote
  #6  
Old 08-06-2004, 11:17 PM
JonM is offline JonM
Registered User

Join Date: Jun 2004
Posts: 2,156

thanks panther man!
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
example stupid is as stupid does bigsmellyfart Humor & Jokes 1 08-19-2008 02:33 AM
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
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:20 AM.




Powered by vBulletin®