DiscoTrio Posted March 17, 2010 Share Posted March 17, 2010 So I made this code but nothing comes up... No errors, connects to database fine... <html><head></head><body> <script type="text/javascript" src="http://js.nicedit.com/nicEdit-latest.js"></script> <script type="text/javascript"> bkLib.onDomLoaded(function() { new nicEditor({buttonList : ['bold','italic','underline','left','center','right','ol','ul','fontSize','fontFamily','indent','outdent','link','unlink','striketrhough','forecolor','bgcolor','upload','xhtml']}).panelInstance('content'); }); <? include ('../variables.php'); $result = mysql_query("SELECT * FROM subjects WHERE id = '$id' LIMIT 0, 1"); while($row = mysql_fetch_array($result)){$appear = $row['appear']; $media = $row['media']; $title = $row['title']; $content = $row['content']; $text = $row['text']; $numlinks = $row['numlinks']; $link1 = $row['link1']; $link2 = $row['link2']; $link3 = $row['link3']; $link4 = $row['link4']; $link5 = $row['link5']; $link1name = $row['link1name']; $link2name = $row['link2name']; $link3name = $row['link3name']; $link4name = $row['link4name']; $link5name = $row['link5name']; echo "<form method=post action=editsub.php?fire=change>"; echo "Media type:<input type=text name='s_media' id='s_media' value='$media'><br>"; echo "Title:<input type=text name='s_title' id='s_title' value='$title'><br>"; echo "Content:<input type=text name='s_content' id='s_content' value='$content'><br>"; echo "# of links:<input type=text name='s_title' id='s_title' value='$numlinks'><br>"; echo "Link1:<input type=text name='s_link1' id='s_link1' value='$link1'> Text:<input type=text name='s_link1' id='s_link1' value='$link1'><br>"; echo "Link2:<input type=text name='s_link2' id='s_link2' value='$link2'> Text:<input type=text name='s_link2' id='s_link1' value='$link2'><br>"; echo "Link3:<input type=text name='s_link3' id='s_link3' value='$link3'> Text:<input type=text name='s_link3' id='s_link1' value='$link3'><br>"; echo "Link4:<input type=text name='s_link4' id='s_link4' value='$link4'> Text:<input type=text name='s_link4' id='s_link1' value='$link4'><br>"; echo "Link5:<input type=text name='s_link5' id='s_link5' value='$link5'> Text:<input type=text name='s_link5' id='s_link1' value='$link5'><br>"; echo "<input type=submit value=Update></form>"; } ?> </body> </html> Whats really fishy is the info shows up fine in the page source.... Have a look: <html><head></head><body> <script type="text/javascript" src="http://js.nicedit.com/nicEdit-latest.js"></script> <script type="text/javascript"> bkLib.onDomLoaded(function() { new nicEditor({buttonList : ['bold','italic','underline','left','center','right','ol','ul','fontSize','fontFamily','indent','outdent','link','unlink','striketrhough','forecolor','bgcolor','upload','xhtml']}).panelInstance('content'); }); <form method=post action=editsub.php?fire=change>Media type:<input type=text name='s_media' id='s_media' value='text'><br>Title:<input type=text name='s_title' id='s_title' value='Sample Text'><br>Content:<input type=text name='s_content' id='s_content' value='fdghdhghfghgjghjghjghjghjghjghj ghjghn ghjgfjgh'><br># of links:<input type=text name='s_title' id='s_title' value='0'><br>Link1:<input type=text name='s_link1' id='s_link1' value=''> Text:<input type=text name='s_link1' id='s_link1' value=''><br>Link2:<input type=text name='s_link2' id='s_link2' value=''> Text:<input type=text name='s_link2' id='s_link1' value=''><br>Link3:<input type=text name='s_link3' id='s_link3' value=''> Text:<input type=text name='s_link3' id='s_link1' value=''><br>Link4:<input type=text name='s_link4' id='s_link4' value=''> Text:<input type=text name='s_link4' id='s_link1' value=''><br>Link5:<input type=text name='s_link5' id='s_link5' value=''> Text:<input type=text name='s_link5' id='s_link1' value=''><br><input type=submit value=Update></form></body> </html> Any ideas on why this is happening? Link to comment https://forums.phpfreaks.com/topic/195518-nothing-showing-up-no-errors/ Share on other sites More sharing options...
DiscoTrio Posted March 17, 2010 Author Share Posted March 17, 2010 Found I ddint close <script> tag... Link to comment https://forums.phpfreaks.com/topic/195518-nothing-showing-up-no-errors/#findComment-1027389 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.