Hey guys, php virgin here!
Basically Im trying to implement CKeditor with my database however Im trying to use a variable inside mysql_query however it doesn’t seem to work. It does work when I change the variable to a number but not otherwise. The code is:
[php] // Get data from the database
$query = mysql_query(“SELECT proid FROM fck_data WHERE id = 1”);
$proid = mysql_fetch_array($query);
$result = mysql_query(“SELECT fulldescr FROM xcart_products WHERE productid = '”.$proid."’");
$fulldescr = mysql_fetch_array($result);[/php]
Ive tried echo which says ‘Array’ for some reason and Ive tried putting in the variable without any quotes and still no hope.
Any help would be greatly appreciated
Regards