Want this question answered?
fggg
retrieve
Ram goes every day to fetch water from well.
It is better to validate the data going into the database for errors rather then data coming out. The data to be retrieved can be done using the $_REQUEST or mysql_fetch_array or PDO statements. I am giving 2 simple examplesIf you want a particular data that can be obtained by using the where clause
Here's the code. This is a simple code to connect to mysql. Bare in mind PHP can connect to other database also. I am assuming you have the database and datatables in place
fetch. grab. take.
Use the Select statement. As in <?php // If you want all of the data $select = mysql_query("SELECT * FROM table_name"); // where table_name is name of your table // If you want selected data $select = mysql_query("SELECT id, username, password FROM table_name"); // If you want a particular data as in salary of employee named John from table employees $select = mysql_query("SELECT salary FROM employee WHERE Name='john'"); // Remember This only selects the data. Now the fetch part while($fetch = mysql_fetch_array($select)) { // replace the column_name with name of the column fields in database echo $fetch['column_name]; echo $fetch['column_name']; } ?>
If you find some topics in the search engines they can fetch the data from the sites and show you.... yes search engines display the data in the database and go to the specific data do u want to search..
It is only possible through use of ajax. Use a drop-down menu for countries and add a onchange even handler which will fetch data. See the related links (provided below for examples)
A possible use case for dynamic content via PHP may be:page content (add content to a database and fetch it with PHP)news (news entries from a database or a file are read and put out to the user)forumsfaqjust to name a few
I am not aware of JAVA to that scale but if you just want to fetch data from mysql then PHP is just 2 statements:Query Statement. Eg. $query = mysql_query("SELECT Name FROM table_name");Fetch Statement. Eg. while($result = mysql_fetch_array($query)){ echo $result['Name']; }Compared to .NET basic queries related to database are a lot simpler in PHP
fetch = holen fetch = bringen