Jump to content

Sorrow

Members
  • Posts

    72
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Sorrow's Achievements

Member

Member (2/5)

0

Reputation

  1. Hi i am trying to send a form to an email address but it works at my house but apparently the person i am doing this for says its not working at their home and at work. So this code works at some place. what would i be doing wrong. Here is the form: <form method="post" action="envoyez.php"> Nom:<br /> <input name="Nom" type="text"><br> Courriel:<br /> <input name="Courriel" type="text"><br> Commentaire:<br> <textarea name="Commentaire" rows="15" cols="40"></textarea><br> <input type="submit" value="Envoyez"> </form> and here the code to send the email: <?php $Nom = $_REQUEST['Nom'] ; $Courriel = $_REQUEST['Courriel'] ; $Commentaire = $_REQUEST['Commentaire'] ; mail( "do@notwork.ca", "Commentaire", $Commentaire, "From: $Courriel" ); ?> what am I doing wrong. Because If i send a comment it is working. Can anyone help pls??
  2. Hi everyone. I don't have any problem uploading single/multi files but I was wondering if some one would have an idea on how to upload an entire folder of pics instead of uploading files 1 at a time. I haven't found anything really except how to upload files in a folder. Any suggestion are appreciated. Thank you
  3. Hi, here is my problem. I have to display 3 cd case with the movie title underneath and they have to be side by side. And with what I have I can only put them one on top of the other . <tr> <td colspan="2"> <?php include 'opendb.php'; $query = "SELECT * FROM Trailers Order by T_index DESC LIMIT 0,3 "; $result = mysql_query($query); while($row = mysql_fetch_array($result, MYSQL_ASSOC)) { echo "<a STYLE='text-decoration:none' href='/b2.php?index={$row['T_index']}'><img src='{$row['T_Case']}' width='60' height='80' border = '0'>"; echo "<font size = '2'>{$row['T_Title']}</font></a>"; } mysql_close($con); ?> </td> This is what I need to have done: _____ _____ _____ | | | | | | | | | | | | ----- ------ ------ Title Title Title Thank you
  4. Thank you very much for the reply This (HAVING datefield > NOW()) worked fine and is really simple
  5. 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>
  6. Hi, here is my problem. I have to display 3 cd case with the movie title underneath and they have to be side by side. And with what I have I can only put them one on top of the other . <tr> <td colspan="2"> <?php include 'opendb.php'; $query = "SELECT * FROM Trailers Order by T_index DESC LIMIT 0,3 "; $result = mysql_query($query); while($row = mysql_fetch_array($result, MYSQL_ASSOC)) { echo "<a STYLE='text-decoration:none' href='/b2.php?index={$row['T_index']}'><img src='{$row['T_Case']}' width='60' height='80' border = '0'>"; echo "<font size = '2'>{$row['T_Title']}</font></a>"; } mysql_close($con); ?> </td> This is what I need to have done: _____ _____ _____ | | | | | | | | | | | | ----- ------ ------ Title Title Title Thank you
  7. thank you I used to know it but I havent programmed for a couple of years lol thank you man
  8. Ok i got this to work but in my code <tr><td colspan = '2'><b>Release Date : </b>{$row['NPReldate']}<br></td></tr> But What do I replace {$row['NPReldate']} with because I tried {$row['NPReldate']} and DATE_FORMAT( NPRelDate, ' %M %D %Y' ) also and it is not working
  9. Ok thank you I get that but how do I use this with the current query that I have so I could get the date displayed with the rest of the infos??
  10. Hi here is my problem. I have a date in my database in the format (2008-11-30) and for each entry that I have in my database when it is displayed on my webpage I need to have it displayed like That (November 30 2008) I have found How to get the format of the date change SELECT MONTHNAME(TestDate), DAYOFMONTH(TestDate), YEAR(TestDate) FROM Test But I cant figure out how to use it In this code(it has to be at the release date replacing {$row['NPReldate']}) since each entry are displayed one after the other on the same page <?php include 'opendb.php'; $query = "SELECT * FROM NowPlaying ORDER BY NPIndex DESC"; $result = mysql_query($query); while($row = mysql_fetch_array($result, MYSQL_ASSOC)) { echo " <font face = 'Verdana'><table width='350' border = '0' cellspacing='5'> <tr> <td width = '300' colspan = '2'><center><b>{$row['NPTitle']}</center> </td></tr><tr><br> <td rowspan = '5'><a href = '{$row['NPCase']}'><img src='{$row['NPCase']}' width='125' height='200' border = '0' align='top'></a></td> <td> <tr><td><b>Director : </b>{$row['NPDirector']}<br></td></tr> <tr><td><b>Writers : </b>{$row['NPWriters']}<br></td></tr> <tr><td><b>Production Company : </b>{$row['NPStudio']}<br></td></tr> <tr><td><b>Actors : </b>{$row['NPActors']}<br></td></tr> <tr><td colspan = '2'><b>Release Date : </b>{$row['NPReldate']}<br></td></tr> </td> </tr> <tr> <td width ='300' colspan='2' align='justify'> Plot : "; echo nl2br($row['NPPlot']); echo "</td></tr><tr><td></td></tr> </table><br><br><br></font> "; } mysql_close($con); ?> Anyone has any Idea pls Thank you in advance
  11. Thank you very much it is working
  12. Ok here is what is happening I am doing a search option and when I click no the search button I need to display the results. it is working great but when there is no result that was found I need to echo "No Item was found" Here is the code that I have include 'opendb.php'; $STitle = $_POST[sTitle]; $query = "SELECT * FROM reviews WHERE m_Title like '%$STitle%' ORDER BY m_Title"; $result = mysql_query($query); while($row = mysql_fetch_array($result, MYSQL_ASSOC)) { if ($row < 1) { echo "<br> No titles found<br><br><a href='http://www.web.com/reveiws1.php'> Back to Reviews</a>"; }else { echo "<a href='/moviereview.php?index={$row['m_index']}'>{$row['m_Title']} </a><br>" ; } } mysql_close($con); Any suggestion on what I am doing wrong please ??
  13. ok thank you any idea where I could find some help about that pls??
  14. Hello, I was wondering if there is a way that my code load correctly in IE because the php website that i have made works fine in Firefox but the display is all messed up in Internet Explorer. Is there an easy and fast way to fix that problem??
×
×
  • 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.