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. Link to comment https://forums.phpfreaks.com/topic/133563-solved-basicwhere-am-i-going-wrong/page/2/#findComment-694784 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 Link to comment https://forums.phpfreaks.com/topic/133563-solved-basicwhere-am-i-going-wrong/page/2/#findComment-694794 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 } Link to comment https://forums.phpfreaks.com/topic/133563-solved-basicwhere-am-i-going-wrong/page/2/#findComment-694801 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 Link to comment https://forums.phpfreaks.com/topic/133563-solved-basicwhere-am-i-going-wrong/page/2/#findComment-694803 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. Link to comment https://forums.phpfreaks.com/topic/133563-solved-basicwhere-am-i-going-wrong/page/2/#findComment-694806 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. Link to comment https://forums.phpfreaks.com/topic/133563-solved-basicwhere-am-i-going-wrong/page/2/#findComment-694807 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.