angelsRock Posted October 14, 2007 Share Posted October 14, 2007 <?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.. Quote Link to comment https://forums.phpfreaks.com/topic/73168-anywya-to-cure-this/ Share on other sites More sharing options...
darkfreaks Posted October 14, 2007 Share Posted October 14, 2007 you forgot a semi colon after your fetch array statment Quote Link to comment https://forums.phpfreaks.com/topic/73168-anywya-to-cure-this/#findComment-369075 Share on other sites More sharing options...
angelsRock Posted October 14, 2007 Author Share Posted October 14, 2007 ohhh man... haha.. anyway .. am i using the right way to maintain? Quote Link to comment https://forums.phpfreaks.com/topic/73168-anywya-to-cure-this/#findComment-369076 Share on other sites More sharing options...
darkfreaks Posted October 14, 2007 Share Posted October 14, 2007 looks right to me just let me know if it gives you any errors Quote Link to comment https://forums.phpfreaks.com/topic/73168-anywya-to-cure-this/#findComment-369077 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.