TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 07-17-2009, 10:29 AM   #1 (permalink)
The Contributor
 
dhaval's Avatar
 
Join Date: Jul 2009
Posts: 37
Thanks: 1
dhaval is on a distinguished road
Application Go 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
dhaval is offline  
Reply With Quote
Old 07-17-2009, 10:34 AM   #2 (permalink)
The Acquainted
 
Hightower's Avatar
 
Join Date: May 2009
Location: Durham, UK
Posts: 134
Thanks: 9
Hightower is on a distinguished road
Default

Now tell you?! Yeah, that's polite mate.

How's about "now go shove it up your a***". Oh, and learn to post in the right area...
__________________
Hightower's Softpolio
Send a message via MSN to Hightower
Hightower is offline  
Reply With Quote
Old 07-17-2009, 10:44 AM   #3 (permalink)
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

Quote:
Originally Posted by dhaval View Post
now tell me how to do?
It sounds like you've done everything already, from how your post is worded. What do you need help with?
Salathe is offline  
Reply With Quote
Old 07-17-2009, 12:03 PM   #4 (permalink)
The Acquainted
 
captainmerton's Avatar
 
Join Date: May 2009
Posts: 178
Thanks: 9
captainmerton is on a distinguished road
Default

There isnt a man alive who could interpret that question!
captainmerton is offline  
Reply With Quote
Old 07-17-2009, 02:23 PM   #5 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

Quote:
Originally Posted by dhaval View Post
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?
You can do this by writing PHP code.
__________________

Village Idiot is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Prettifying Pasted Code on TalkPHP Wildhoney The Lounge 15 01-04-2013 02:46 AM
Using the factory pattern (mad rantings of a mind without coffee) sketchMedia Advanced PHP Programming 35 09-25-2009 11:05 AM
[Tutorial] How to organize your classes | Part 1 Tanax Advanced PHP Programming 10 03-01-2009 10:08 PM
Does it matter how to code query? marxx Absolute Beginners 7 03-22-2008 07:07 PM
Force Redirect by Database Query CreativeLogic General 12 07-21-2005 07:58 AM


All times are GMT. The time now is 05:19 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design