#### Archived

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

# I'm going to go insane....

## Recommended Posts

sathenzar    100
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
sathenzar    100
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
Leffe    301
$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()?