Question:
How do you get data from database when you pick up item from database list?
Answer:
Here is a simple method for connecting to your MySql database and outputting some data.
<?php
#Connect to MySQL database
$db=mysql_connect("localhost","YourDatabaseUserName","YourDatabasePassword");
mysql_select_db("YourDatabaseName",$db) or die ("cant change");
#Select data from database table called customers.
$result = mysql_query("select * from customers Order By LastName, FirstName",$db);
while ($row = mysql_fetch_array($result))
{
$FirstName = $row["FirstName"];
$LastName = $row["LastName"];
echo "$LastName, $FirstName"; ?><br><?
}
?>
About the Author
Rich Agnew is an author for The Computer Geek Custom Web Page Design. The Computer Geek is a web design company that prides itself in professional service at a fraction of the cost. The Computer Geek specializes in Custom Web Design, PHP & MySql and Ecommerce.
Great experience with Computer Geek. They helped with my website needs and were professional, respon . . . [MORE].
Great, quick service when my laptop went into meltdown and also needed Windows 11 installed. Also ca . . . [MORE].
It was a great experience to working with you. thank you so much. . . . [MORE].
Thank you so much for great service and over all experience is good . highly recommended for all peo . . . [MORE].
We engaged The Computer Geeks in mid-2023 as they have a reputation for API integration within the T . . . [MORE].
AI and the Collapse of Tr
Emotionally Manipulative
When Machines Learn to Pe