![]()
From: Enver ALTIN (ealtin@casdb.com)
Date: Mon 27 Jan 2003 - 19:40:03 EET
On Mon, 2003-01-27 at 15:29, Enver ALTIN wrote:
> On Mon, 2003-01-27 at 15:26, Enver ALTIN wrote:
> > fgets(), eof() ve split() isinizi gorecektir. Bu arada, prepare ve
>
> feof() demek istemistim.
[Baris'in kod ornegi istegini kiramadim :) Ayrica bir an MySQL ve
PostgreSQL'i karistirdim prepare/execute diye dusunurken.]
# ----------- Snip
require("DB.php");
$db=DB::connect("mysql://user:pass@localhost/dbadi");
while (!feof($fp)) {
$s=fgets($fp);
$db->query("insert into tablo (alan1, alan2, alan3) values (?, ?, ?)", explode(",", $s));
}
$db->disconnect();
# ----------- Snip
-- Enver ALTIN (a.k.a. skyblue) - Software developer, generic solvent http://enver.casdb.com - mailto: ealtin at casdb dot com http://enver.casdb.com/CV.html - Just me, myself and I.An authority is a person who can tell you more about something than you really care to know.
-- Attached file included as plaintext by Ecartis -- -- File: signature.asc -- Desc: This is a digitally signed message part
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (GNU/Linux)
iD8DBQA+NW7zpnqewlhW/m4RAmy7AJ4qE2+EQ+m9UuxS3gTurSlU+NSAVwCfVBDy E4Ft43L4ZOwdJzpHOEBAmtw= =vzA1 -----END PGP SIGNATURE-----
![]()