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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.