Sabtu, 20 Juli 2013

PHP Indonesia - Facebook: permisi mastah mastah mau bertanya nieh saya mau m...

PHP Indonesia - Facebook
PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ 
permisi mastah mastah mau bertanya nieh saya mau m...
Jul 21st 2013, 02:44, by Achmad Riyan Hadiyatma

Achmad Riyan Hadiyatma 2:44am Jul 21
permisi mastah mastah mau bertanya nieh saya mau menyimpan data dari hasil perulangan dengan coding

$jumlah = $totalRows_rssiswa; //counting how many rows

if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form2")) {

for ($i=0; $i<$jumlah; $i++)
{


$insertSQL = sprintf("INSERT INTO tblsiswakelas (noinduk, nama, idkelas, idtahunajaran) VALUES (%s, %s, %s, %s)",
GetSQLValueString($_POST['noinduk'][$i], "text"),
GetSQLValueString($_POST['nama'][$i], "text"),
GetSQLValueString($_POST['idkelas'][$i], "int"),
GetSQLValueString($_POST['idtahunajaran'], "int"));

mysql_select_db($database_koneksi, $koneksi);
$Result1 = mysql_query($insertSQL, $koneksi) or die(mysql_error());
}
}

yang jadi permasalahan tidak ad error pada saat di klik tombol simpan..
tapi data tersebut tidak tersimpan..
mohon pencerahannya

Mas Riyanto 2:47am Jul 21
ini kenapa diletakkan dibawah?

mysql_select_db($database_koneksi, $koneksi);

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

Tidak ada komentar:

Posting Komentar