trq Posted November 20, 2008 Share Posted November 20, 2008 Sorry, your still not being clear. Are you getting an error? If so, exactly what is it? And post your code. Quote Link to comment Share on other sites More sharing options...
Lee-Bartlett Posted November 21, 2008 Author Share Posted November 21, 2008 <?php require_once "includes/db_connection.php"; $sql = "SELECT email FROM email"; if ($result = mysql_query($sql)) { if (mysql_num_rows($result)) { $row = mysql_fetch_assoc($result); echo "<form action='' method='post'>\n"; echo "<input type='text' name='id' value='" . $row['email'] . "'>\n"; echo " <input type='submit' value='update' name='updatebutton'>\n"; echo "</form>\n"; } else { echo "No email found"; } } else { echo mysql_error() . "<br />$sql"; I know it means somthing aint closed, but i cant se where, i tried closing the else at the end and didnt work. Parse error: syntax error, unexpected $end in /home/nexodom/public_html/website/admin/email.php on line 21 Quote Link to comment Share on other sites More sharing options...
trq Posted November 21, 2008 Share Posted November 21, 2008 Well, theres only 18 lines in that snippet and you missing the last } Quote Link to comment Share on other sites More sharing options...
Lee-Bartlett Posted November 21, 2008 Author Share Posted November 21, 2008 Yer but i tried before the dot, after the dot, in middle and at the end all give. unexpected } on line number Quote Link to comment Share on other sites More sharing options...
trq Posted November 21, 2008 Share Posted November 21, 2008 What dot? Look at my code above, you might need to scroll a little. Quote Link to comment Share on other sites More sharing options...
Lee-Bartlett Posted November 21, 2008 Author Share Posted November 21, 2008 its working, dont worry im an idiot. missed somthing i shouldnt. Quote Link to comment 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.