[PHP] เขียนอะไรผิดครับ ช่วยที ไม่มีค่าแสดงออกมา!!!!

เริ่มโดย dekjaidee, 20 กรกฎาคม 2018, 02:10:32

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

snohomish

อ้างถึง
<?
require_once "connectdb.php";

$number="$_POST[number]";

$loop=strlen($number)-1;
for($i=0;$i<$loop;$i++)
{
$strs = substr($number,$i,2);

$sqlhr="select distinct numb,numtxt from horotest where numb='$strs'";
   $db_query=mysql_query($sqlhr);
    $reshr=mysql_fetch_array($db_query);
    $numbb = $reshr[numb];
   $numtxt = $reshr[numtxt];
   echo "$numbb<br>";

}
?>

ลองสร้างเงื่อนไขใน loop ดูครับ

Mrpoohling

[direct=https://c.lazada.co.th/t/c.bfS0An]9.9 จัดเต็มลดกระหน่ำ[/direct]