PHP Classes

example

Recommend this page to a friend!

      SQL Manager  >  All threads  >  example  >  (Un) Subscribe thread alerts  
Subject:example
Summary:example to use this class
Messages:2
Author:Mahesh Kumar Mondal
Date:2012-04-03 04:42:36
Update:2012-07-31 08:35:45
 

  1. example   Reply   Report abuse  
Picture of Mahesh Kumar Mondal Mahesh Kumar Mondal - 2012-04-03 04:42:36
It will be better for new comers/php freshers, if you give example, how to invoke initialize,member functions.


  2. Re: example   Reply   Report abuse  
Picture of manson manson - 2012-07-31 08:35:45 - In reply to message 1 from Mahesh Kumar Mondal
Example select :

$SQLManager = new SQLManager();
$query = "SELECT * FROM denj_users ";
echo $query ;
$result = $SQLManager->query_mysql($query);
// echo mysql_num_rows($result);
//echo $SQLManager->rows_mysql($result);

$row = $SQLManager->array_mysql($result);
//print_r($row);

while ($row = $SQLManager->array_mysql($result)){
print_r($row);
}
Example insert :

$data = array( "name"=>"$yourname" ,
"guest_email"=>"$guest_email" ,
"subject" => "$subject",
"message" => "$message",
"verif_box"=> "$verif_box",
"category"=> "$category",
"title" => "$title",
);
$SQLManager = new SQLManager();
$SQLManager->insert_mysql("enquirymail",$data);