News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

AnyExample.com:
5 useful PHP functions for MySQL data fetching
March 21, 2007 @ 17:31:00

The AnyExample.com tutorial site has a quick article for PHP/MySQL developers out there with 5 useful functions that can help you in your database development.

PHP usually comes with mysql extension mysql (mysql_... functions) which is rather low-level and requires writing too much code for a trivial tasks: error-checked execution of SQL queries, getting single row from SQL table, getting value from SQL table cell, etc. OOP mysqli extension isn't any better. In this article we present 5 useful functions which greatly simplify majority of real-life MySQL operations.

All of these helpful functions mentioned work with both PHP4 and PHP5, so no one's left out. They are:

  • good_query
  • good_query_list
  • good_query_assoc
  • good_query_value
  • good_query_table
All of these can be added easily by grabbing their source and including it into your application.

1 comment voice your opinion now!
useful function mysql data fetch debug handling useful function mysql data fetch debug handling


blog comments powered by Disqus

Similar Posts

Agave Group Design: Running PHP and mySQL on OS X - missing php.ini and mySQL sockets

Internet Super Hero Blog: Compiling mysqlnd with PHP 5.2/5.3/6.0

PHPBuilder.com: A Primer On Postgres Exception Handling For The PHP Developer, Part 2

DevShed: Handling File Data with PHP (Reading & Seeking)

WebReference.com: How to Manage Memory in PHP


Community Events





Don't see your event here?
Let us know!


series community interview language version laravel symfony conference configure framework podcast opinion introduction release voicesoftheelephpant unittest api list threedevsandamaybe composer

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework