Archive for the ‘ PHP ’ Category
for more magento tutorial visit: http://blog.free-extension.com[ READ MORE ]
function get_all_students() { $query = $this->db->get(‘students’); if ($query->num_rows() > 0) { $result = $query->result_array(); return $result; } else { return ’0′; } } // students is the table name of database For details you may visit http://codeigniter.com/user_guide/database/active_record.html[ READ MORE ]
function add($input) { $student_data = array( ‘name’ => $input['name'], ‘roll’ => $input['roll'] ); $test = $this->db->insert(‘students’, $student_data); // Produces: INSERT INTO student (name, roll) VALUES (‘name’, ‘roll’)[ READ MORE ]
/* <form method="post" action="<?= site_url('Controller_name/ Controller_function').'/'.$student['id']; ?>"> <h1>Add information of Data</h1> <input type="text" name="name"> <lable>Name</label> <input type="text" name="roll"> <label>roll</label> <input type="submit" name="submit" value="submit"> </form> *[ READ MORE ]
Hello, and welcome to my ultimate guide to PHP! I’m going to start from the beginning, and hopefully towards the end you’ll be able to know a lot of the basics of PHP, which will help you along the way to programming in the PHP language. Chapters Chapter 1 – The Basics Chapter 2 – [ READ MORE ]
Suppose you need a blog site where you want to add a new page like wordpress then you need to follow the following tips[ READ MORE ]
It is very important to build a simple website.. and It is nice to look. and it reduce the time complexity to load a page. Suppose we want to build a website where header, footer, sidebar all will be fix but only page body( content-discription) will be changed then you need to follow the following [ READ MORE ]
//……………………….show.php…………………………..\\ <table> <tr> <td align=”center”>EDIT DATA</td> </tr> <tr> <td> <table border=”1″> <? $con = mysql_connect(“localhost”,”",”"); if (!$con) { die(‘Could not connect: ‘ . mysql_error()); } mysql_select_db(“naogaon”, $con); $order = “SELECT * FROM member”; $result = mysql_query($order); while ($row=mysql_fetch_array($result)){ echo (“<tr><td>$row[number]</td>”); echo (“<td>$row[name]</td>”); echo (“<td>$row[address]</td>”); echo (“<td><a href=\”edit_form.php?id=$row[employees_number]\”>Edit</a></td></tr>”); } ?> </table> </td> </tr> </table> output[ READ MORE ]
To inserting a data to database you have to create a database and a table in going to http://localhost/phpmyadmin.. suppose your database name is naogaon and table name is member with three fields number, name and address then write the following code in a editor and save it as //……………………insert.html……………………….\\ <form action=”Insert.php” method=”post”> Number: <input [ READ MORE ]
It is very easy. At first you have to insert some data to your database suppose its database name is naogaon and table name is member and there is colum name by number then.. write the following code and save you as your like.. ok done check it. // …………………Selectbox.php…………………….\\ <?php$con = mysql_connect(“localhost”,”",”");if (!$con) [ READ MORE ]
Enter your email address to subscribe to this blog and receive notifications of new posts by email.
Join 7 other followers
Get every new post delivered to your Inbox.