$attr = $result->fetch_all (); The result set object must be thrown into the array
Open Browser does not display the effect may be the browser has a cache problem, this time can be refreshed more than a few times or restart the browser
Update Diaoyanxuanxiang Set numbers modify a column in a table
Use echo to output SQL statements when verifying the correctness of PHP processing pages
Header ("location:toupiao.php"), which can be used to jump pages
Make the progress bar two Div overlay (end tag will be placed last)
<div style= ' width:100px; height:10px; border:1px solid black ' ><div style= ' width:; height:10px; Background-color:red ' </div></div>
Write the code to finish, and be careful not to forget the end tag of the code
if ($attr[$sy][1]>1) {$attr[$sy$attr[$sy][1]-1 ;} Else { unset($attr[$sy]); unset is removed from the array, in order to avoid deleting a piece of data, the middle of the empty one, so to re-index the group $attrarray_values($ attr); // array_values ($attr); The array is re-indexed and has a return value }
foreach ($AGWCas$v) // The scope is curly braces, so the contents of the curly braces are all the same. {$sql = "Select price from fruit where ids= ' {$v[0]} '"; $danjia $db->strquery ($sql); // only one piece of data is checked . $sum $sum +$danjia*$v[1];}
Small knowledge points and points of attention (20161103)