Hi guys! Im kinda new here and lately I'm developing a PHP MySQL Module Generator that will help us to easily manipulate the database. since I want to make thing fast and I know lots of you agree with me that doing data manipulation stuffs like MySQL is boring so I decided to create this one and I just want it to share with you guys
Please tell me what you think. Im open for constructive criticism and the only purpose of this Generator is to help us programmers. Thank you!
include("connect.php"); //this is where the connection parameters.
include("inc.sqlcmd.php"); //this is the module
$data = new personinfo(); //create a new object
$data->Name = "Ms.Moo"; //set the variables
$data->Age = "15";
$data->Gender = "Mooo";
$data->Address = "USAA";
$data->add(); //add the data to your DB
$data->first(); //go to the first recordset
$data->Name = "MooGeek Talay";
$data->update(); //Update the first row
$data->last(); //go to the last recordset
$data->delete(); //deletes the last row
print_r($data); //prints the data
Just try it guys I know it will give you a tremendous help when doing some PHP and MySQL jobs
that was a very nice one there. i also think if your methods accept parameters it will make them more flexible in the sense that some of the parameters could be used to build dynamic where clause part of the query.but hey you have done well i must say.
« Reply to PHP MySQL Module Generator - Guys Please take a look. It might help you =)