ghqwerty Posted October 2, 2008 Share Posted October 2, 2008 for some reason its not echoeing anything ??? anyresons why ??? $qry2 = mysql_query("select moneyexcellent from itemstats where item = '".$item."'") or die(mysql_error()); while($qry2result = mysql_fetch_array($qry2)){ $money[] = $qry2result['moneyexcellent']; echo $money; } Link to comment https://forums.phpfreaks.com/topic/126804-sql-php/ Share on other sites More sharing options...
genericnumber1 Posted October 2, 2008 Share Posted October 2, 2008 it should be at least echoing 'Array' (assuming your query is returning something) because you're echoing an array.... is it not even doing that? Link to comment https://forums.phpfreaks.com/topic/126804-sql-php/#findComment-655886 Share on other sites More sharing options...
ghqwerty Posted October 2, 2008 Author Share Posted October 2, 2008 yer i know thats why im confused its all corrext spelling .. hmm Link to comment https://forums.phpfreaks.com/topic/126804-sql-php/#findComment-655888 Share on other sites More sharing options...
genericnumber1 Posted October 2, 2008 Share Posted October 2, 2008 perhaps you mean $money = $qry2result['moneyexcellent']; instead of $money[] = $qry2result['moneyexcellent']; ? which in that case you could just do echo $qry2result['moneyexcellent']; Link to comment https://forums.phpfreaks.com/topic/126804-sql-php/#findComment-655890 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.