I have been reading books and articles and I have seen various mysql functions (mysql_query, etc) being used inside php functions and those php functions be called everything the php programming requires a query, etc.

So what do you think are the best practices, etc?

Thanks, Regards X

PS: I have tried to get this going and queries are fine but fetch_assoc has been giving me problems

Recommended Answers

All 3 Replies

You can use directly mysql_* functions or use an abstraction layer such as ADODb or a framework like CakePHP that exposes the database as objects.

thats what I use now but I thought it be more productive if I used functions to state my mysql_*.

Can anyone give a working example of a working function using mysql_*s?

Thanks, Regards X

Umm.. OmniX, isn't this problem solved yet ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.