Jump to content

anywya to cure this?


angelsRock

Recommended Posts

<?php
$connection=mysql_connect($server, $user, $pass);
if(!$connection)					
	die("Connection failed");		

else
{							
	mysql_select_db($db);							
	echo $_POST[propertyID];

	if (isset($_POST[propertyID]))
	{
	$query="select * from basic_propertyad where basic_propertyID='".$_POST[propertyID]."' and username='".$_SESSION[username]."';";
	$exec=mysql_query($query);		
	$num=mysql_affected_rows();
	$row=mysql_fetch_array($exec,MYSQL_BOTH)
	}

	else
	{
		 $row[address] = $_POST[address];

	}


?>



<tr>
            <td width="19%" align="center" height="22">
            <font face="Arial" size="2"><b>Address</b> </font>
            <font face="Arial" size="1">(Optional)</font></td>
            <td width="75%" height="22">
              <textarea rows="3" name="address" cols="37"><?php echo"$row[address]";?></textarea></td>
          </tr>

 

 

error is on Parse error: syntax error, unexpected '}' in ... at the mysql_fetch_array

 

when i click on this page.. data will be pulling from database...  so when i edit it and press update and if got mistake.. the data i update should maintain for the verification..

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/73168-anywya-to-cure-this/
Share on other sites

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.