Jump to content

HELLLLP


spikeon

Recommended Posts

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