07-17-2009, 10:29 AM
|
#1 (permalink)
|
|
The Contributor
Join Date: Jul 2009
Posts: 37
Thanks: 1
|
OOP database query (split from Prettifying Pasted Code on TalkPHP)
Moderator note: This first post was originally made in another, completely unsuitable, topic so was split off into its own thread. I am beginner of php and wanna make a module in OOP in which one have to just put the parameter to make it's query.I've created class and inside it functions asusual
for select,delete and update query but for insert first I've to fetch the fields from database and then have to make an array of all field so that user have to put just parameter then call the class after query will pass automatically by it's parameters.
insert query will be "insert into Table_Name (an array of Field names) values (Values)"
now tell me how to do?
Last edited by Salathe : 07-17-2009 at 10:42 AM.
Reason: Split note
|
|
|
|