Here's the deal:
I have a database that I need to extract data from a specific field and save and display it.
Here's the code I currently use:
$query = "SELECT LOCATE(' ',owner_name) AS spaceno, char_length(owner_name) AS no, INSTR(owner_name, '&')as ampersand, owner_name, physical_address
FROM assessor";
$result = mysql_query($query) or die(mysql_error());
echo "This is used to assist in determining the owner's LAST name, FIRST name and SPOUSE name.<br />
by using the spaceno to locate succeeding spaces.<br />";
// Print out the contents of each row into a table
while($row = mysql_fetch_array($result)){
echo $row['owner_name']. " - first space at ".$row[spaceno]. " - length of owner_name = ". $row['no']. " - Ampersand at ". $row['ampersand']." address is ". $row['physical_address'];
echo "<br />";
The owner_name contains the last name first name and mates name which I have figured out how to obtain. What I want to accomplish is to store these three values for later use.
How to do this