after getting results from query, how do I make data display on page correctly?

this is an example of the actual output on the page:

image.jpg title description date
image.jpg title description date
image.jpg title description date

BUT, how do you:

show the actual image with the description and date under it.
like at this site: rapbasement.com/videos/
(exactly the way they have 3 per column, 3 per row, except I want the date under each title)

Then, how would you go about making the image and the desc actual clickable links? because the images are actually thumbnails for videos I want to be played on a seperate “video.php” on click.

--------------------------------------…
the dataset table:
--------------------------------------…

<?php do { ?> <?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
<?php echo $row_Recordset1['image']; ?> <?php echo $row_Recordset1['title']; ?> <?php echo $row_Recordset1['description']; ?> <?php echo $row_Recordset1['dateAdded']; ?>


the php:

<?php require_once('Connections/recentVideos.p… ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < 6) { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; } $theValue = function_exists("mysql_real_escape_strin… ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "long": case "int": $theValue = ($theValue != "") ? intval($theValue) : "NULL"; break; case "double": $theValue = ($theValue != "") ? doubleval($theValue) : "NULL"; break; case "date": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "defined": $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue; break; } return $theValue; } } $maxRows_Recordset1 = 45; $pageNum_Recordset1 = 0; if (isset($_GET['pageNum_Recordset1'])) { $pageNum_Recordset1 = $_GET['pageNum_Recordset1']; } $startRow_Recordset1 = $pageNum_Recordset1 * $maxRows_Recordset1; mysql_select_db($database_recentVideos… $recentVideos); $query_Recordset1 = "SELECT dateAdded, title, image, `description` FROM videos"; $query_limit_Recordset1 = sprintf("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1); $Recordset1 = mysql_query($query_limit_Recordset1, $recentVideos) or die(mysql_error()); $row_Recordset1 = mysql_fetch_assoc($Recordset1); if (isset($_GET['totalRows_Recordset1'])) { $totalRows_Recordset1 = $_GET['totalRows_Recordset1']; } else { $all_Recordset1 = mysql_query($query_Recordset1); $totalRows_Recordset1 = mysql_num_rows($all_Recordset1); } $totalPages_Recordset1 = ceil($totalRows_Recordset1/$maxRows_Reco… ?>

[php]

<?php echo(' '.$row_Recordset1['image'].' '.$row_Recordset1['title'].' '.$row_Recordset1['description'].' '.$row_Recordset1['dateAdded'].' '); ?>

[/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service