Jump to content

Sorrow

Members
  • Posts

    72
  • Joined

  • Last visited

    Never

Everything posted by Sorrow

  1. thank you i didnt know the term
  2. Hi i have a little question on how to display some informations. All the information like (movie case,title,date,actors...) i have no problem to get them but how do i go about having it displayed like this website hxxp://www.bloody-disgusting.com/comingsoon.php like only 10 of them per page and if there is like 20 of them get them split in 2 pages with the link to page 1 and 2
  3. sorry i just noticed that it is working but it is displaying the htmlspecialchars (). How do I go for not having it displayed and I cant figure out how to use the htmlspecialchars within an <input value="title">
  4. I tried to put in the line of code you just gave me but the only thing that it does is putting "htmlspecialchars" in front of the text that it gets from database ex:htmlspecialcharsPhpfreak's website is cool
  5. Hello guys here is my problem. When i get the information from the database and put it in a <textarea> to modify it, every time there is the apostrophe ' sign everything after the sign doesn't show up ex: "Phpfreak's website is cool" the output that i get is "Phpfreak". How can I get the entire text to show?? Here's my code: <?php include 'opendb.php'; $currIndex = $_GET['index']; $query = "SELECT * FROM Trailers where T_index = $currIndex"; $result = mysql_query($query); while($row = mysql_fetch_array($result, MYSQL_ASSOC)) { echo " <form action='process_modificationT.php?index=$currIndex' method='post'><table border = '0' ><tr> <td> Movie Title: <td> <input name='TTitle' type='text' size='50' value = '{$row['T_Title']}'> <br><tr> <td> Synopsis :<td> <textarea name='TSynopsis' cols='100' rows='10'>{$row['T_Synopsis']}</textarea><tr> <td>Movie Case Link: <td> <input name='TCase' type='text' size='100' value = '{$row['T_Case']}'> <br /><tr> <td>Trailer Link: <td> <input name='TLink' type='text' size='100' value = '{$row['T_Link']}'> <br /><tr> <td> <td><td><input type='submit' align='right' value='Modify Trailer'> </table> </form> ";
  6. Here is my problem. The website i am currently building is a movie reviews website. In the reviews and in the news and we need to write some text that is saved to the database. This is working fine and even in the database there is the carriage return but when i am displaying the text all the text is in one paragraph how can I keep the carriage return when I fetch the data from the database. Here is my code : <?php include 'opendb.php'; $query = "SELECT * FROM News ORDER BY newsid DESC"; $result = mysql_query($query); while($row = mysql_fetch_array($result, MYSQL_ASSOC)) { echo "<font face = 'Verdana'><table width='450' border = '0'> <tr> <td colspan ='2'><b>{$row['newsTitle']} </td> <td>{$row['Date']}</td> </tr> <tr> <td colspan = '2'>--------------------------------------------------------------------------------------------</td> </tr> <tr><td rowspan = '3'><img src='{$row['MoviePic']}'width='200' height='250' > <br>Director : {$row['Director']} <br> <br>Actors : {$row['Actors']} </td></tr> <td width ='300' colspan='2' align='justify'>{$row['News1']}</td> <tr><td><img src='{$row['Pic1']}'width='200' height='200' > <img src='{$row['Pic2']}'width='200' height='200' ></td></tr> <tr><td><td width ='300' colspan='2' align='justify'>{$row['News2']}</td></tr> </td> </tr> </table></font> "; } mysql_close($con); ?>
  7. here it is <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Web Of The Living Dead</title> </head> <body bgcolor="#000000" text="#FF0000" link="#FF0000" vlink="#FF0000"> 28 days later <p>Even though it's only a single disc, the 28 Days Later DVD includes a lot of very interesting features, including the alternate ending that was shown after the end of the film a couple months into its theatrical run. It's much bleaker, as director Danny Boyle and writer Alex Garland say in their optional commentary. Another alternate ending is almost the same as the theatrical ending but slightly less happy. Most interesting is the "radical" alternate ending that takes an entirely different path midway through the film. It wasn't filmed, however, so Boyle and Garland narrate the action over storyboards, and it's a surprisingly engrossing 11 minutes. Boyle and Garland also did a commentary track for the film, and they talk about how they were able to get the shots of deserted London and why they used the ending they did. There are also six very watchable deleted scenes, and Boyle and Garland's comments range from "great sequence" to "a disgrace." Slightly less relevant is a 24-minute documentary that spends its first 10 minutes on the real-life threat of infectious diseases before recapping the film and discussing such elements as the use of digital video and the boot camp the actors had to attend. If you need any further proof that the DVD was a labor of love, even the stills galleries have commentaries. --David Horiuchi <br> <img src='http://rcm-ca.amazon.ca/e/cm?t=weofthlide-20&o=15&p=8&l=as1&asins=B000QTD05C&fc1=FD0202&IS2=1&lt1=_top&lc1=0000FF&bc1=FFFFFF&bg1=000000&f=ifr'></body> </html>
  8. yes i tried it and nothing shows up not even a broken picture sign
  9. Thanks for your reply guys but it is not working. I don't know if this would help but the link that is saved in the db is not from the server of my hosting it is a link from an external website.
  10. Hi there, I am trying to load the image link from the database to have an image displayed but the image is not loading at all. <?php include 'opendb.php'; $currIndex = $_GET['index']; $query = "SELECT * FROM reviews where m_index = $currIndex"; $result = mysql_query($query); while($row = mysql_fetch_array($result, MYSQL_ASSOC)) { $Pic = "{$row['m_Link']}"; echo "{$row['m_Title']} <p>". "{$row['m_Review']} <br> <img src='$Pic'>"; } mysql_close($con); ?> </body> </html>
  11. what exactly do you mean by the generated code???
  12. Lemmin : yes it echoes the link properly Wolphie : I am not sure what to do with your <<<DBRow what is that.
  13. I know this code is not working thats why I m asking how to do it lol
  14. It is not getting written to html because their is no broken image box but it displays the movie title and the review but nothing related to a image.
  15. Hi everyone. I have a little problem when I try to load a image that the url is saved in a database. Here what I am doing. When you click on the link of one movie, it goes to moviereview.php?index=1 but in my database I have a field that has the link to the image but I cant seem to be able to load the image on the other page.It loads everything else but not the img. <?php include 'opendb.php'; $currIndex = $_GET['index']; $query = "SELECT * FROM reviews where m_index = $currIndex"; $result = mysql_query($query); while($row = mysql_fetch_array($result, MYSQL_ASSOC)) { echo "<img src='{$row['m_Link']}'> ". "{$row['m_Title']} <p>". "{$row['m_Review']} <br> "; } mysql_close($con); ?>
  16. Thank you it worked for the url but when i load my moviereview.php page nothing shows up. here is my code: the link that is in the adressbar is http://www.123.com/moviereview.php?index=1 <?php include 'opendb.php'; $currIndex = $_get['index']; $query = "SELECT * FROM reviews where m_index = $currIndex"; $result = mysql_query($query); while($row = mysql_fetch_array($result, MYSQL_ASSOC)) echo "{$row['m_Link']}"; { echo "<img src={$row['m_Link']}> <br> ". "{$row['m_Review']} <br> "; } mysql_close($con); ?>
  17. Hi there here is my problem. I am doing a webpage for movie reviews. I have my reviews in a database. When I access the review page it display the list of the movie titles of all the reviews. each of them links to the same webpage. Here is what i want to do and cant figure out how.when i click on one of the link it needs to load the moviereview.php with the informations of the clicked link. but how can i select the right name that was clicked to access the right infos in my db???
  18. Hi there I have this little problem that i cant seem to fix. I want to be playing a mp3 in a web page but its not working. if im using only <embed src="bla vla"> it works but i need to have it in these brackets: <div id="embed1" style="position:absolute; overflow:hidden; left:35px; top:63px; width:150px; height:26px; z-index:0"> <script type="text/javascript"> AC_RunMMContent('id','embed1','width','150','height','26','autostart','true','src','http://www.pirate-production.com/music/toune1.mp3'); </script> <noscript> <embed src"http://www.pirate-production.com/music/toune1.mp3" width=150 height=26 autostart="true" type="application/x-mplayer2"></embed> </noscript> does anyone has any ideas
  19. ty very much it is working now
  20. i tried it but not working ty anyway
  21. ok I got one part working.. But i still can't get the login input box to disappear here is the code from my first page.[code] <?php session_start(); $_SESSION['login'] = $_POST["login"]; if ($_SESSION['login'] > 0){ echo "<table border='0' align='center'> <tr> <td>Username : </td> <td>" . $_SESSION['Username'] . "</td> </tr> <tr> <td>Game Handle :  </td> <td>" . $_SESSION['Game_Handle'] . "</td> </tr> <tr> <td>Steam_ID :  </td> <td>" . $_SESSION['Steam_ID'] . "</td> </tr> </table>"; }else{ echo '<form action="/profil.php" method="post"> <table width="232" border="0" cellspacing="0" cellpadding="0">         <tr valign="top">           <td width="21"> <p style="margin-top: 0; margin-bottom: 0"><img src="images/index_12.gif" width=21 height=20 alt=""></td>           <td>             <div align="center"> <table border="0" cellpadding="0" cellspacing="0" width="95%" id="table3"> <tr> <td width="63"> <p style="margin-top: 0; margin-bottom: 0"> <font face="Tahoma" style="font-size: 8pt; font-weight: 700" color="#FFFFFF"> Username:</font></td> <td> <p style="margin-top: 0; margin-bottom: 0"> <font face="Tahoma"><span style="font-size: 8pt"> <font face="Tahoma" color="#FFFFFF"> <input name="Username" size="16" style="font-weight: 700"></font></span></font></td> </tr> <tr> <td width="63"> <p style="margin-top: 0; margin-bottom: 0"> <font face="Tahoma" style="font-size: 8pt; font-weight: 700" color="#FFFFFF"> Password:</font></td> <td> <p style="margin-top: 0; margin-bottom: 0"> <font face="Tahoma"><span style="font-size: 8pt"> <font face="Tahoma" color="#FFFFFF"> <input name="Password" size="16" style="font-weight: 700"></font></span></font></td> </tr> <tr> <td colspan="2"> <p style="margin-top: 0; margin-bottom: 0" align="center"> <font face="Tahoma" style="font-size: 8pt; font-weight: 700" color="#FF9933"> Forgot Password?</font><font face="Tahoma" style="font-size: 8pt; font-weight: 700" color="#FFFFFF"> | </font> <font face="Tahoma" style="font-size: 8pt; font-weight: 700" color="#FF9933"> <a href = "/Register.html">Register</a></font></p> <p style="margin-top: 0; margin-bottom: 0" align="center">&nbsp;</p> <p style="margin-top: 0; margin-bottom: 0" align="center"> <font face="Tahoma"><span style="font-size: 8pt"> <input type="submit" value="Login" name="B2" style="font-weight: 700"></span></font></td> </tr> </table> </div>           </td>         </tr> </form> '; } ?>[/code] and this is the code for the second page cause when you login you get to the profile page: [code] <?php session_start(); include 'db_conn.php'; $_SESSION['Username']=$_POST["Username"]; $_SESSION['Password']=$_POST["Password"]; $result = mysql_query("SELECT * FROM users WHERE Username =  '" .$_SESSION['Username']."' AND Password = '".$_SESSION['Password']."' " ); $Userv = mysql_num_rows($result); if($Userv == 0) echo "There was an error in your login!!"; else while($row = mysql_fetch_array($result)) { $_SESSION['Username']=$row['Username']; $_SESSION['Game_Handle']=$row['Game_Handle']; $_SESSION['Steam_ID']=$row['Steam_ID']; echo '<form action="/index.php" method="post"> <input type="hidden" name="login" value="1" /></form>'; echo " <table border='0' align='center'> <tr> <td>Username : </td> <td>" . $_SESSION['Username'] . "</td> </tr> <tr> <td>Game Handle :  </td> <td>" .$_SESSION['Game_Handle']  . "</td> </tr> <tr> <td>Steam_ID :  </td> <td>" . $_SESSION['Steam_ID'] . "</td> </tr> </table>"; } ?>[/code] Anyone can help me out here pls
  22. Hi here is what i need to do. There is a login on my page and it is in one of the table row. The thing i need to do is when i login,  the input boxes needs to disappear and infos from the member appears instead. how is the best thing to do this.
×
×
  • 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.