when i assign a query to a variable like this:
PHP Code:
$originalfid=$DB_site->query("SELECT originalforumid FROM thread WHERE threadid='13'");
and echo the variable it's not working? i'm just getting nothing?
the originalforumid is a smallint(5) unsigned row... (it should say '7' for thread #13...)
i've also tried echoing like this: $originalfid[originalforumid], but it doesn't work too
and the strange thing is, that it just works normally when i run this query in phpMyAdmin:
[sql]SELECT originalforumid FROM thread WHERE threadid='13';[/sql]
can anyone please help me with this...
thanks!
FlyingDutchman