gesf
Active member
Hi
Can anyone tell how can i show(print) a value from my db?
my field is int(10) and and using this code to show what is inside:
$test = mysql_query("SELECT myfield FROM mytable WHERE id = '1'");
echo "$test";
But it show '4' and not the value that is in that field.
I wanna know too, how can i show a value from the db with this format: 12.34567, using this code:
$test = number_format($test, 'something');
thanks
Can anyone tell how can i show(print) a value from my db?
my field is int(10) and and using this code to show what is inside:
$test = mysql_query("SELECT myfield FROM mytable WHERE id = '1'");
echo "$test";
But it show '4' and not the value that is in that field.
I wanna know too, how can i show a value from the db with this format: 12.34567, using this code:
$test = number_format($test, 'something');
thanks