Scriptindex.de

[ Menü ]

Home
News
Scripts
Neuzugänge
Suchen
Bücher
Manuals

[ Inhalt ]

Script eintragen
Tutorial eintragen
Newsletter
Umfragen
Link zu uns
Werbung bei uns
Kontakt
Impressum

[ Statistik ]

Hits gesamt: 5197576
Hits Heute: 615
max. Hits (10.07.07): 6964
User Online: 30
Scripts: 2828

[ Partner ]

CodeBase
I.S.U.M.
LUG Bayreuth
PEAR NEWS
PHP Classes

[ Facebook ]

[ Eigene Domain? ]

[ Buchtipp ]

MySQL. Zu My SQL 4, mit CD
MySQL. Zu My SQL 4, mit CD

Manuals > PEAR > DB_Common::autoPrepare()

DB_Common::autoPrepare()

DB_Common::autoPrepare() -- Build automaticaly an insert or an update sql query

Description

autoPrepare() build automaticaly an insert or an update sql query and call prepare() with it. The sql query is build by using an ordered array containing fields names.

Parameter

string string $table

name of the table

array $table_fields

ordered array containing the fields names

integer $mode

type of query to make (DB_AUTOQUERY_INSERT or DB_AUTOQUERY_UPDATE)

string $where

in case of update queries, this string will be put after the WHERE statement

Return value

resource - resource handle for the query

Note

This function can not be called statically.

See "Introduction - autoPrepare and autoExecute" for general using and an example.


Copyright 1998 - 2009 by I.S.U.M.