spikeon Posted March 6, 2008 Share Posted March 6, 2008 ok, i am a good coder, however, i suck hardcore at simple html stuff heres a link http://www.webcriticz.com/index.php?p=display&sid=10 can someone PLEASE rebuild the main table so it looks good? heres the php code that calls it: display.php <?php $q = "SELECT * FROM site WHERE id='".$_GET['sid']."'"; $r = mysql_query($q); $site = mysql_fetch_array($r); $content .= "<table width='99%'><td rowspan=5 valign=top><img src='image/phpThumb.php?src=../".$site[picture]."&w=300&fltr[]=wmt|resized:+^Xx^Y+to+^xx^y|10|B|FFFFFF|arial.ttf|100|0||000000|100|x&f=png' /></td><td rowspan=5 style='width:10px;'></td><td colspan=2 style='height:30px;'><center><h2>$site[url]</h2></center></td></tr>"; $content .= "<tr><td style='height:30px;'>User:</td><td style='height:30px;'>".getUser($site[uid])."</td></tr>"; $content .= "<tr><td colspan=2 style='height:30px;'><center>Description</center></td></tr>"; $content .= "<tr><td colspan=2 style='height:30px;'><center>$site[description]</center></td></tr><tr><td colspan=2 style='height:600px;'></td></tr></table>"; include('dispcomments.php'); ?> dispcontents.php <?php //call this page like so: // dispcomment.php?sid=12345 $sid = $_GET['sid']; $q = "SELECT * FROM comment WHERE sid = '".$sid."' ORDER BY Time ASC"; $r = mysql_query($q); $content .= "<center><h1>Comments</h1></center>"; while($comment = mysql_fetch_array($r)){ $dtime = localTime($comment[Time], true); $content .= "<center><table width='50%'><tr><td>".getUser($comment[uid])."</td><td>".$dtime[tm_hour].":".$dtime[tm_min]." ".($dtime[tm_mon]+1)."/".($dtime[tm_mday]+0). "</td></tr>"; $content .= "<tr><td colspan=2>".$comment[Content]."</td></tr></table></center><br>"; } $content .= "<p><a href='index.php?p=login&p2=postcomment&sid=".$sid."'>Post A Comment</a></p>"; ?> please, don't tell me about security holes in my php code, i know, and i will be fixing them once i get everything ELSE done Link to comment https://forums.phpfreaks.com/topic/94674-hellllp/ Share on other sites More sharing options...
haku Posted March 6, 2008 Share Posted March 6, 2008 i am a good coder Are you sure about that? Lots of errors in your code: http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.webcriticz.com%2Findex.php%3Fp%3Ddisplay%26sid%3D10 Fix those, and you may find it easier to work with your table. Link to comment https://forums.phpfreaks.com/topic/94674-hellllp/#findComment-484802 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.