Small knowledge points and points of attention (20161103)

Source: Internet
Author: User

$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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.