Ask questions via twitter! Message any question to @answers on twitter. We'll publish the question and send you a reply each time there's a new answer.
Next Question

Answered Question

 
December 24, 2008 05:37 AM

Hi
Can anyone send me the class file to access the whole db to insert ,del etc ....

For ex to insert the values into db $db = insert(fields,values); and to update $db = update($query);

just by using one class file i should be able to manipulate the whole database connections .. (ie) to connect to db , insert,del,update,count and everything....
Interesting Question?  Yes (0)   No (0)   
RSS
 
 

Best Answer  Chosen by Asker

 
December 24, 2008 12:26 PM
http://pastebin.com/f3e3186b2

its actually pretty easy to code that stuff but since I already did it..
here's my code for that from my little library. you can wrap it in class CRUD { } and add public in front of all the function names or just use it the way I do by just calling require_once('crud.php') and then calling the functions.

unfortunately it is giving me a server error due to all the code I think so I put it in a pastebin: http://pastebin.com/f3e3186b2
Source(s):
http://pastebin.com/f3e3186b2



Helpful Answer?  (0)   (0)    Tip ilaksh for this answer
Permalink | Report
   Reply  
 
 
 
December 26, 2008 01:14 AM
.

Report
 
 

Answer this Question

How tips and payments work

This question has already been resolved. You may add an answer to it but you will not be eligible to win best answer or any associated tips.

Ask a Question


140 characters left
Top of Page
Buy Mahalo Dollars with Credit Card or PayPal

Top Members

This Week All Time
  • cfinke
    cfinke
    2nd Degree Black Belt
    27330 Points
    M$29.75 Earned
  • bunnyphuph...
    bunnyphuph...
    2nd Degree Black Belt
    21386 Points
    M$762.89 Earned
  • opher
    opher
    Purple Belt with a Brown Tip
    6142 Points
    M$238.49 Earned
   See All
 

Most Popular Tags

mahalo(1800)
music(495)
iphone(485)
google(392)
online(369)
food(340)
beer(288)
money(284)
movies(281)
apple(259)
aotd(235)
free(233)
health(228)
video(224)
dog(217)
   See All
 

Categories

Welcome New Members


 
 
Mahalo Dollars are the currency of Mahalo Answers.

Each Mahalo Dollar costs $1.

Once you earn more than 40 Mahalo Dollars, you can request to be paid via PayPal. Each Mahalo Dollar is currently worth $0.75 when paid out via PayPal. Learn More

 
 

Please log in to use this function.