driveflexfuel
New Member
- Messages
- 159
- Reaction score
- 0
- Points
- 0
I am creating a special shopping cart script and I am having a hard time learning MySQL. I have a database with one table and 3 fields. I simply wish to display all entries with a delete link after each one. I started this code if someone could help me along it would be greatly appreciated. I got kinda lost. I am offering up 500 credits for a sample page.
Code:
$db_server = "localhost";
$db_name = "database";
$db_user = "username";
$db_pass = "password";
$con1 = mysql_connect($db_server, $db_user, $db_pass) or die(mysql_error());
mysql_select_db($db_name, $con1);
$query_Results = ("SELECT * FROM customers ORDER BY Field3");
$SearchResults = mysql_query($query_Results) or die(mysql_error());
$row_SearchResults = mysql_fetch_assoc($SearchResults);
$totalRows_SearchResults = mysql_num_rows($SearchResults);
Last edited: