Spectre Posted June 20, 2008 Share Posted June 20, 2008 Ok, so my problem is this, I want to find out firstly how to make a custom query thing, so instead of mysqli_query... it's be like retrib_query ... not sure how to go about this, and also would like one for fetch assoc and mysqli_free_result() .... so that's my first problem, not sure even where tog et started in this so any help would be greatly appreciated ^^'' also would there be a way to make it so that the database won't take normal mysqli_query or w/e if I have the retrib_query setup done? to try put off wouldbe SQL injectors and hackers etc... Any help would be greatly recieved, and sorry if this has come up before but after reading through a lot of topics I kinda started to get a headache so wasn't sure if it had bene asnwered some way before. Quote Link to comment Share on other sites More sharing options...
hitman6003 Posted June 21, 2008 Share Posted June 21, 2008 I can only assume that you mean a database abstraction layer, and not creating functions in core php.... Use Zend_Db as an example: http://framework.zend.com/manual/en/zend.db.html You can simply extend the classes and name them whatever you want: class retrib_query extends Zend_Db_Select { ... } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.