harkly Posted January 7, 2010 Share Posted January 7, 2010 I am having problems with getting my DIV to resize dynamincally. Not really sure where to start solving this issue, can someone help?? <!DOCTYPE php PUBLIC '-//W3C//DTD Xphp 1.0 Strict//EN' 'http://www.w3.org/TR/xphp1/DTD/xphp1-strict.dtd'> <php xmlns='http://www.w3.org/1999/xphp'> <head> <link rel='stylesheet' type='text/css' href='messages.css'> </head> <body> <?php include('library/login.php'); login(); ?> <div id='wrapperApp'> <div id='header'><a href='index.php'><img src='img/redLogo.gif' border='0'></a></div> <div id='navLine'> <div id="topnav"> <a href="profiles.php" title="Search">Search</a> <img src='img/lineSep_2.jpg' width='1' height='19'> <a href="myaccount.php" title="My Account">My Account</a> <img src='img/lineSep_2.jpg' width='1' height='19'> <span class='current'> <a href="messages.php" title="My Messages">My Messages</a> </span> <img src='img/lineSep_2.jpg' width='1' height='19'> <a href="logout.php" title="Log Out">Log Out</a> </div> </div> <div id='maincontent'> <div id='box'><h2>Viewing Message</h2> <div id="navigation"> <a href="messages.php" title="Log Details">New Messages</a> <img src='img/lineSep_2.jpg' width='1' height='21'> <a href="savedMsg.php" title="Billing">Saved</a> <img src='img/lineSep_2.jpg' width='1' height='21'> <a href="sentmsg.php" title="Billing">Sent Messages</a> </span> </div> </div> <div id='about'> <span class='left'> <?php mysql_select_db('bariatric'); $query = "UPDATE threads SET s_status='1' WHERE ID = '$_GET[id]'"; $result = mysql_query($query) or die(mysql_error()); $sql = mysql_query("SELECT * FROM threads WHERE id = '$_GET[id]'"); while($r = mysql_fetch_array($sql)) { $posted = date(" F j, Y",$r[posted]); echo " <div id='viewMessages'> <div id='date'>$posted</div> <div id='msgImage'><span class='img-shadow'><img src='img/1.JPG' height='65' width='65' border='0'></span></div> <div id='viewInfo'>$r[t_sender] <br> Age: 26 <br> Lexington, NC</div> </div> <div id='msg'> Subject: <span class='text'>$r[title]</span> <br> Message: <span class='text'>$r[message]</span></div>"; } ?> <?php $sql = mysql_query("SELECT replies.id, replies.thread, replies.message, replies.author, replies.posted, replies.id, threads.title FROM replies, threads WHERE replies.thread = '$_GET[id]' AND threads.id = '$_GET[id]'"); while($r = mysql_fetch_array($sql)) { $posted = date(" F j, Y",$r[posted]); echo " <div id='viewReply'> <div id='userID'>$r[author]</div> <div id='msgImage'><span class='img-shadow'><img src='img/1.JPG' height='65' width='65' border='0'></span></div> <div id='viewInfo'> re: <span class='text'>$r[title]</span><br> on: <span class='text'>$posted</span> <br> <br> Message: <span class='text'>$r[message]</span></div> </div> "; } ?> <div id='replyForm'> <form action="receiverReply.php" method="POST"> Author: <input type="text" name="author"> <input type="hidden" value="<?php echo $_GET[id]; ?>" name="thread"><br> Reply:<br><textarea cols="50" rows="5" name="message"></textarea><br> <input type="submit" value="Post Reply"> </form> </div> </span> <span class='right'> <h3> Actions</h3> <div id='link'><img src='img/flower_purple.gif' width='10' height='10'> <a href=''>Email</a></div> <div id='link'><img src='img/flower_purple.gif' width='10' height='10'> <a href=''>Say Hi</a></div> <div id='link'><img src='img/flower_purple.gif' width='10' height='10'> <a href=''>Delete Message</a></div> <div id='link'><img src='img/flower_purple.gif' width='10' height='10'> <a href=''>Save</a></div> <div id='link'><img src='img/flower_purple.gif' width='10' height='10'> <a href=''>Block Sender</a></div> <div id='link'><img src='img/flower_purple.gif' width='10' height='10'> <a href='messages.php'>Back to Inbox</a></div> </span> </div> </div> </div> </div> </div> </div> <div id='footer'> <p>© 2009 <a href='http://www.harkly.net'>Harkly Productions</a> :: <a href="about.php" title="About US">About Us</a> :: <a href="tos.php" title="Terms of Service">Terms Of Service</a> :: <a href="privacy.php" title="Privacy">Privacy</a></p> </div> </body></php> Quote Link to comment Share on other sites More sharing options...
haku Posted January 7, 2010 Share Posted January 7, 2010 Please don't post PHP in the HTML and CSS sections. The PHP is irrelevant, only the HTML output. Output your script, copy the source, format it so it's easy to read, and paste it in here instead. 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.