I do not yet know how to edit MySQL outside of this, except by executing .PHP
I wanted to know how can I select an array then modify it, preferably modify just one integer of the whole array.
I know how to make the arrays, in their most basic form, but once made, I don't know how to do things like make the number go up 10% or add 5 for example.
I have been reading some online tutorials but so far I have not found this one simple thing.
<?php
//And now an attempt at using the array
$con = mysql_connect("localhost",'root','');
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("test", $con);
$result = mysql_query("SELECT * FROM vals1");
echo $result;
//This selects the row
mysql_data_seek($result,0);
$row = mysql_fetch_array($result);
$pt = $row['Vals'];
echo $pt;
mysql_close($con);
?>
That is my code.
mysql_data_seek can go to a specific row in the array. But once there, I don't know how to make it change in a way such as adding or subtracting, or dividing.
Any help will be much appreciated.











