Jump to content

Nothing showing up, no errors...


DiscoTrio

Recommended Posts

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