When I do a mysql select statement, I get the below when echo'ing $result;
echo $row['comment2'];
Gives me this:
$fullname = ddasdfd;
$bacc = 324234234;
$brouting = 23423434;
$btype = checking;
$btype2 = personal;
$bankname = 234234234;
How do I use that result that I got when select a text field inside my mysql table and assign it to php variables so I can do:
echo $fullname;
Any kind of help I can get on this is greatly appreciated!
Current code:
$query = "select * FROM `store`.`oc_order` WHERE `order_status_id`='10' AND `achgroup`='' ORDER BY `date_added` LIMIT 10";
$result = mysql_query($query,$db) or die(mysql_error());
while($row = mysql_fetch_array($result)) {
echo $row['comment2'];
I want when echo'ing ddasdfd: