Ask for a read database code
Ask for a separate page code I do not know programming do not give clues to ideas or anything
First of all, thank you very much MySQL account 132 password 456 read the library name AA table name cc column in the BB table assume that the first 500 values read the CC field value 9 character records how many 9 characters and displayed on the page if 10 pages display 10 no display 0
------Solution--------------------
@mysql_connect ("localhost", "123", "456");
@mysql_select_db ("AA");
mysql_query ("Set names UTF8");
$result =mysql_query ("Select cc from BB limit 0,500");
while ($row =mysql_fetch_array ($result)) {
}
$cnt =count ($ar);
for ($i =0; $i < $cnt; $i + +) {
if ($ar [$i]==9) {
$b []= $i;
}
}
$cnt _b=count ($b);
if ($cnt _b>0) {
echo $cnt _b;
}else{
echo 0;
}
------Solution--------------------
$result =mysql_query ("Select order_state from Order limit 500");
$counter = 0;
while ($row =mysql_fetch_array ($result)) {
}
Echo $counter;