PHP Classes

bad example

Recommend this page to a friend!

      Easy SQL  >  All threads  >  bad example  >  (Un) Subscribe thread alerts  
Subject:bad example
Summary:the example code is very bad
Messages:2
Author:rudie dirkx
Date:2010-12-30 20:06:59
Update:2010-12-31 05:16:11
 

  1. bad example   Reply   Report abuse  
Picture of rudie dirkx rudie dirkx - 2010-12-30 20:06:59
This is not a good example of 'how to use':

<pre>$test_zone->insert_sql("table_name","data insert as array");</pre>

More sensible would be: (I might be wrong, because I don't know what "data insert as array" means exactly)

<pre>/**
* insert_sql( String TableName, Array Data )
*/
$test_zone->insert_sql("users", array(
'username' => 'foo',
'password' => md5('bar'),
'email' => '[email protected]',
));</pre>

Big difference for viewers!

  2. Re: bad example   Reply   Report abuse  
Picture of amr-design amr-design - 2010-12-31 05:16:11 - In reply to message 1 from rudie dirkx
I WILL UPLOAD CLEAR EXAMPLE NEARLY

THANK YOU