Jump to content

How do i output my database data echo()??


brad12345

Recommended Posts

hi all i think my database has been updated and i want to check to see if the rows have been updated in my table how would i go about this?

 

 

$addOwner = $_POST['addOwner'];
$phoneNumber = $_POST['phoneNumber'];
$address = $_POST['address'];
$ownerName = $_POST['ownerName'];
$title = $_POST['title'];




echo("<font face='Arial'>");
$self = $_SERVER['PHP_SELF'];

if (isset($_POST['addOwner']))
{

	//Insert new owner data into the database martinb 
	$createQuery1 = "INSERT INTO tblOwnerBK (title, ownerName, address, phoneNumber) VALUES ('$title','$ownerName','$address','$phoneNumber')";

	$selectString = "SELECT * FROM tblOwnerBK";  //Selects all owner details

// dont know what to do after this????

Link to comment
https://forums.phpfreaks.com/topic/98797-how-do-i-output-my-database-data-echo/
Share on other sites

Not sure whether this is what your looking for, haven't done php for a while so sorry if it doesnt work ::)

$addOwner = $_POST['addOwner'];
$phoneNumber = $_POST['phoneNumber'];
$address = $_POST['address'];
$ownerName = $_POST['ownerName'];
$title = $_POST['title'];




echo("<font face='Arial'>");
$self = $_SERVER['PHP_SELF'];

if (isset($_POST['addOwner']))
{

	//Insert new owner data into the database martinb 
	$createQuery1 = "INSERT INTO tblOwnerBK (title, ownerName, address, phoneNumber) VALUES ('$title','$ownerName','$address','$phoneNumber')";

	$selectString = "SELECT * FROM tblOwnerBK";  //Selects all owner details

                while($row = mysql_fetch_assoc($selectString)) {
                        echo $row['title];
                        //Then just keep doing the same for the rest of them, and add some formatting
                }

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.