Jump to content

[SOLVED] Problem with dates


Sorrow

Recommended Posts

Hi, I am currently buiding a movie website and for my release dates section i want to display the upcomming dvd release but when a date is passed I dont want to display it anymore without deleting it how would I go about that please.

 

Here is my code for that part

 

// get the info from the db 
$sql = "SELECT `relID` , `relTitle` , `relDirector` , `relCase` , `relDate` FROM dvdRelease ORDER BY `relDate` LIMIT $offset, $rowsperpage";
$result = mysql_query($sql, $con);

//echo "<table bgcolor='#000000' border = '0' cellpadding = '10' cellspacing = '5' >";
// while there are rows to be fetched...
while ($list = mysql_fetch_assoc($result)) {
?>




<table>
<tr><td>
<a href ='<?=$list['relCase']?>' style="outline-color:#000000" ><img src=<?=$list['relCase']?>  height="85" width="65" Border="0"></a></td><td width="25px"></td>
<td><font color="ff0000"><b> <?=$list['relTitle']?></b>
<br>Date de Sortie:</font><font color="#FFFFFF"> <?=$list['relDate']?> </font><font color="ff0000">
<br>Réalisateur(s) : <?=$list['relDirector']?>
</td></tr></table><br />

</font>

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.