Hi everyone!!
I have this:
if(file_exists("filename.csv")) {
$registro = fopen("filename.csv", "r");
$BD = new ConexionDB();
while (($data = fgetcsv($registro, 200, ",")) !== FALSE) {
$sth = $BD->prepare("INSERT INTO table_temp (codigo, name) VALUES (:codigo, :name)");
$codigo = $data[0];
$name = $data[1];
$sth->bindParam(':codigo', $codigo);
$sth->bindParam(':name', $name);
$sth->execute();
}
}
PHP:
The source data...
Read and Sort before to save records
from PHP http://ift.tt/1sHdJPd
via
IFTTT
Related Post
Help with this Script pleaseplease all my mate , i do not know what's wrong with my script,just some one please look and recorr
WAMP: phpMyAdmin - Error Cannot start session without errors...When I try to connect to myPhpAdmin, I get this:
phpMyAdmin - Error
Cannot start session without e
Amazon Autobuy ScriptHello guys, so i'm willing to buy an amazon autobuy script or something simillar, i don't even know
SYFEP - Simple Yet Funny Error PageI made this in php5 a while ago (pretty sure it works with php7 but haven't tested yet).
I recentl
Strip or preg_replace .zip, .exe, .rar, .rpm, .xz, etc. etc.I'd like to have a strip function (or preg_replace) that strips all extensions that can be unzipped
Trying to duplicate a Form field without successI'm using the phpMotion script and trying to add a 2nd "tag" field to the Upload Video Form. (The '
Out Of Topic Show Konversi KodeHide Konversi Kode Show EmoticonHide Emoticon