<?php require_once('Connections/jxpDREAM.php'); ?>
<?php
mysql_select_db($database_jxpDREAM, $jxpDREAM);
$query_data_grab = "SELECT `data` FROM datadump";
$data_grab = mysql_query($query_data_grab, $jxpDREAM) or die(mysql_error());
while ($row = mysql_fetch_array($data_grab, MYSQL_BOTH)) {
printf ($row["data"]);
}
mysql_free_result($data_grab);
?>
ok this uses mysql_fetch_array to grab the data and stick it into an array.(then prints it just to make sure its there) However how do I go about assigning it to an array variable?
like this-->
$vCht4 = array(60,40,20,34,26,52,41,20,34,43,64,40);
so that my sql data is assigned to the $vcht4 array variable as above...
This doesnt work-->
$vCht4 = mysql_fetch_array($data_grab);
(Any links to array handling php/sql greatly received)
<?php
mysql_select_db($database_jxpDREAM, $jxpDREAM);
$query_data_grab = "SELECT `data` FROM datadump";
$data_grab = mysql_query($query_data_grab, $jxpDREAM) or die(mysql_error());
while ($row = mysql_fetch_array($data_grab, MYSQL_BOTH)) {
printf ($row["data"]);
}
mysql_free_result($data_grab);
?>
ok this uses mysql_fetch_array to grab the data and stick it into an array.(then prints it just to make sure its there) However how do I go about assigning it to an array variable?
like this-->
$vCht4 = array(60,40,20,34,26,52,41,20,34,43,64,40);
so that my sql data is assigned to the $vcht4 array variable as above...
This doesnt work-->
$vCht4 = mysql_fetch_array($data_grab);
(Any links to array handling php/sql greatly received)