• Announcements

Archived

This topic is now archived and is closed to further replies.

I'm going to go insane....

Recommended Posts

I'm trying to get this g**damned pos to work. IT's plain english but the dang thing won't work and I've been on it literally all day. I'm trying to transfer the data over to the next page for my forum exp: General and get it to work with this code:
$sql = "SELECT * FROM$topic";
$result = mysql_query($sql, $dbh); while($row = mysql_fetch_array($result)) {$topic_name = $row[ 'topic_name' ];$topic_stat = $row[ 'topic_stat' ];$topic_usr = $row[ 'usr' ];$topic_usrid = $row[ 'usrID' ];$topic_id = $row[ '$select' ];

Share on other sites
Yes I did and it echoed out generalID, so the MySql code is just being stubborn. It should work. It does with every other part of my code, just not this one.

Share on other sites
$sql = "SELECT * FROM$topic";

What''s in $topic?$result = mysql_query($sql,$dbh);

Check return value?

while($row = mysql_fetch_array($result)) {

mysql_fetch_assoc()?

• Forum Statistics

• Total Topics
628275
• Total Posts
2981740

• 10
• 11
• 17
• 10
• 9