Jump to content

stuffradio

Members
  • Posts

    253
  • Joined

  • Last visited

Everything posted by stuffradio

  1. Ahh congrats, I was just posting something but I was making it more complicated! At least you solved it though
  2. Ok so I think I understand what you're doing. Query the database and select the videos where the username that uploaded it is the same username. <?php $get_videos = mysql_query("SELECT * FROM `database` WHERE `username`='exampleusername'"); // Replace exampleusername with maybe a value that contains a dynamic username. In the url you could maybe have a option that says user=username and then it would get all the videos equal 'username' while ($video = mysql_fetch_array($get_videos)) { // echo the links here } ?> Hope that helps.
  3. Eww IIS, can you post some code so we can help you better?
  4. (`name`) is there because you're adding information in to the field named "name". You could try removing the " ` " from there to see if that works. I'm not too sure right now why you're having problems.
  5. A full line across your page? Are you talking about <hr /> ??
  6. You could see if there is a complete list at php.net/mail but I think that part of the site is down right now... not sure though.
  7. Try going to: http://www.mioplanet.com/rsc/embed_mediaplayer.htm
  8. Already gave you the answer $query = "SELECT * FROM `actor` WHERE $searchtype LIKE '%$searchterm%''';
  9. You need to edit a couple of things here. You should make a case for several file types, so for $fileattype you'd do switch($fileatt) { case application/pdf; // Blah break; } Just start by working on that, the make the fileatname to the value that was posted from the form, and maybe someone else can add to what I suggested
  10. if moviedatabase is the name of a database and not a table... you need to change it to the name of a table. The table is the name you need to change it to
  11. <td style='font-weight: bold; color: #FF0000;'>OLD PICK WAS</td>
  12. This is not correct. $query = "SELECT * FROM moviedatabase WHERE ".$searchtype." LIKE '%".$searchterm."%'"; $query = "SELECT * FROM `moviedatabase` WHERE '$searchtype' LIKE %$searchterm%";
  13. if ($_FILES['uploadfile']['type'] !== "images/jpg") { // Display that message } You can just check if the values of the other stuff is blank by going if ($newwidth == 0 || $newheight == 0 || !isset($newwidth) || !isset($newheight)) { // Display that message }
  14. What happens if you go foreach ($gaps as $arrvalues) { if (isset($arrvalues)) { echo "$count"; } } Does that work for you?
  15. Basically emphasizing on what the previous poster said... you will want to sanitize your mysql queries. When someone posts some data you're entering, you will usually want to add slashes to it just in case they try injecting it. So when you are displaying the data of what was inserted in to the query, you'll strip the slashes so it doesn't show things like "Hi, I\'m a PHP coder." Instead it'd show "Hi, I'm a PHP coder."
  16. Catling that's because now you need to do it for the rest of the rows. After you do that, it should work.
  17. Nope, not in my experience at least.
  18. Glad it works, you should hit solved so people don't keep coming
  19. What happens if you go echo "<td>{$row[Forename]}</td>"; ?? Also try mysql_fetch_array instead of Mysql_fetch_array. I think it might be case sensitive
  20. If I understand you correctly... you want to have the last 3 news articles displayed as a preview. Below that preview you want a "read this" link under them. You are going to want to use a while statement to select the articles. <?php $random_var = mysql_query("SELECT * FROM `articles_table` ORDER BY article_id DESC LIMIT 0,3"); while ($article_preview = mysql_fetch_array($random_var)) { // display the link here. You can limit the number of chars the article prints out, and than after that link to the article id etc. by using $article_preview['article_id']; } ?> Hope that helps
  21. I'm not going to look through all your code, fix it and if it still doesn't work come back. I see several spots that are missing semi-colons. preg_match "xxxx" That's not even correct. $link="xxxx" Not correct Replace with $link="xxxx"; <textarea rows=5 cols=20 name="itemlist" value="<?=$_POST['itemlist']?>" </textarea> Not correct. Replace: <textarea rows=5 cols=20 name="itemlist" value="<?=$_POST['itemlist'];?>" </textarea> etc. etc. Go through your code!
  22. As the person a few posts above said... use $_POST instead of HTTP_POST_VARS. I'm pretty sure that's been deprecated for quite some time now
  23. So it sounds like you're looking for pagination? Just google php Pagination tutorial
  24. Can you post the code so we can help you?
×
×
  • 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.