Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. $uploadImage = $uploadImageDir . $_FILES['image']['name']; $uploadImage = str_replace(" ", "_", $uploadImage);
  2. That's also what I already said I normally do.
  3. $title isn't set. You could try <? include('files'.$title.'.php'); ?> But unless $title has a value, it won't work any better.
  4. So look at the tutorials, or the php manual. mysql_query()
  5. Are you asking how to do a SELECT from a database? There are some tutorials here on how to do that.
  6. Edit: Actually, both of the \ in that line are wrong
  7. include(\"include/session.php\"); Unexpected \. There is a \ that doesn't belong. Hint: It's not the one inside the string
  8. "I know this is a very long code, but I will give you the proper lines and area to look at, because most of the code doesn't necessarily have to do with the error" Then don't POST most of the code! Just POST the part that matters, instead of posting it all and telling us to search through it. This line has unescaped quotes: echo "<img border="0" src="".$req_user_info['avatar']."" width="100" height="100">"; Which is line 270? Post a few lines before 270 to a few lines after. Like, 5 lines total. Not all 47593 lines.
  9. Do this: print "select DISTINCT poked from pokes where poked IN($poked_by) && poke_deleted='n' && !poked IN($double_pokes)" What does it show? If the values aren't what you're expecting, there's the problem. $poked_by and $double_pokes need to be comma separated strings like 1,2,3,4
  10. variables start with $ $vTakeout is a variable. vTakeout is a string literal. Turn on error reporting to ALL, and you'll get a better error for that.
  11. http://php.net/require http://php.net/include
  12. You have two forms, so I only saw the first one. Forum Newsletter:<br><form> </span><span style="font-family: tahoma; font-size: 13px">Name:</span></font><form method="POST" action="newsletter.php">
  13. Can you tell us which line is 100? Try doing it the way Toon posted.
  14. <form>s need action="" and method=""
  15. if($width > 75 || $height > 75){ is if either or. if($width > 75 && $height > 75){ is if both.
  16. Well we posted some errors you had. The easiest way to find out if it works is to try it. Then when it doesn't, you address the errors you get. You could have done that in less time then it took to post and wait for us to reply
  17. Did you read the manual? getimagesize returns an array of information. You'll need to compare the width and the height.
  18. You still haven't told us what the problem is.
  19. The manual does. "If "URL fopen wrappers" are enabled in PHP (which they are in the default configuration), you can specify the file to be included using a URL (via HTTP or other supported wrapper - see Appendix M, List of Supported Protocols/Wrappers for a list of protocols) instead of a local pathname. If the target server interprets the target file as PHP code, variables may be passed to the included file using a URL request string as used with HTTP GET. This is not strictly speaking the same thing as including the file and having it inherit the parent file's variable scope; the script is actually being run on the remote server and the result is then being included into the local script." http://us2.php.net/include/
  20. Yes, it's possible. No, I won't try to sort through your code if you didn't post a specific problem, error, or issue. I do see one immediate error. while($set='true'); will always be true. = is assignment, == or === is comparison.
  21. If you already know Ruby, then learn RoR. If you already know PHP, use PHP.
  22. If you actually try to write some code we can help. But all you did was change your question to use the word thorpe posted.
  23. if(isset($_GET['pg']){ $pg = $_GET['pg']; }else{ $pg = 1; }
  24. I've been programming for years, and I still think it's fun. If it's not fun for you, why do it?
×
×
  • 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.