|
|
|
การinsertข้อมูลตามเงื่อนไขลงไปหลายrecord อยากถามการinsertลงข้อมูล ตามเงื่อนไขที่มีมาให้ |
|
|
|
|
|
|
|
$sql1 = "select Stu_ID from student where Stu_ID like '$adms_id%' and Gr='$group' ";
echo $sql1;
$db_query1=mysql_db_query($DatabaseName,$sql1);
while($row = mysql_fetch_array($db_query1)){
$sql = 'insert into registration value(xxxxxxxxxxxx) values('$row[Stu_id]','', ........)';
query!!!
}
sign:
http://www.joinworker.com
|
|
|
|
|
Date :
4 ม.ค. 2551 16:43:45 |
By :
thenetxx |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ได้แล้วค่ะ
ขอบคุณมากค่ะ
|
|
|
|
|
Date :
5 ม.ค. 2551 21:34:00 |
By :
dormon |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 00
|