Jump to content

DeanWhitehouse

Members
  • Posts

    2,527
  • Joined

  • Last visited

Everything posted by DeanWhitehouse

  1. Say Please <?php for($i=5; $i<=50; $i+5) { echo '<option value="' . $i . '">' . $i . '</option>'; } ?> Should work, if not then do <?php $i = 5; while($i <= 50) { echo '<option value="' . $i . '">' . $i . '</option>'; $i += 5; } ?>
  2. If you only want it to display the next sunday you can either limit the loop to 1 or not use a loop and do it manually
  3. Run one query, or change your database set up. look into db normalisation
  4. http://americangangsters.org We are rebuilding our old site and have made a large number of changes. For this site we are aiming for a simple user interface. We are trying to stay simple for the users benefit. The site is not fully completed and will most likely undergo changes, some based from your criticism. Thanks, Blade
  5. We need people to help test new features when we implement them. More information here http://americangangsters.org
  6. Put session start at the top of the first script?
  7. Ok, well it could be something to do with sprint_f (i have never used it like that) This is how i would do it $insertSQL ="INSERT INTO response (request_ID, questions_ID, options_ID, details, customer_ID) VALUES ('".mysql_real_escape_string($_POST['rid'])."', '".$var."', '".$value."','".$value."','".mysql_real_escape_string($_POST['cid'])."')"; Also check the actual db to see if it has been inserted.
  8. SELECT bandname,songname FROM table WHERE bandname LIKE '%".$query."%' OR songname LIKE '%".$query."%'" Periods?? If you mean the column names (bandname, songname) this is just the columns of the table you will search and retrieve although you can use * for all of the columns. The quotes '%".$var."%' Are not needed, i just like doing them as it is easier to read (when variables stand out) in my opinion but you can do '%$var%'
  9. Un suppress errors on fopen to see if their are any $fp = @fopen($filename, 'rb'); change to $fp = fopen($filename, 'rb');
  10. Would look like SELECT bandname,songname FROM table WHERE bandname LIKE '%".$query."%' OR songname LIKE '%".$query."%'" And i don't think if someone searched the strokes it will look for the on it's own, i think it searches for the whole string.
  11. The code you shown us wouldn't print anything out unless their was a problem with the query? Or do you mean that nothing is inserted into the db
  12. Huh? When they search for a word using LIKE %$searchword% will search the selected db rows for any word that is or contains that word.
  13. Would it not be easier to do $array = file_get_contents("./text.txt"); $array = explode(",",$array); Not 100% on the above though
  14. It should be ok, but if you want to turn your site into an image hosting company like imageshack(which is the impression i am getting) then eventually you will need to get a dedicated server due to high load. But all depends on how much traffic you are planning on getting.
  15. What difficulty? Any errors? Add error_reporting(E_ALL); to the top of the script
  16. Hmm, you have a lot of code and without any errors it is hard to know what is wrong. Put at the top of the page <?php error_reporting(E_ALL); ini_set("display_errors",true); ?> And maybe have a look at this http://www.plus2net.com/php_tutorial/php_email_validation.php Edit: Where are you calling the function?
  17. I don't know an exact figure but loads, it will not be much different to people requesting the image directly through the URL. But you wouln't need to use file_get_contents(); unless you want to hide the image URL from the source code.
  18. please use code tags, it is harder to read without
  19. The errors would be because the sites do not exist, but that is what the function should find out so you can suppress the errors by using an @ symbol in front of the fsockopen(); Like so @fsockopen ($domain, 80, $errno, $errstr, 10);
  20. Lol if you tried Google you would of come across this site ( http://uk2.php.net/pdf ) and would of found an answer their. And do you really think i care about post count, lol, grow up. Or maybe http://www.developertutorials.com/tutorials/php/easy-pdf-generation-in-php-8-02-27/page1.html It's amazing what you can find on the first page on Google http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q=php+to+pdf Edit: @dennis; Who?
  21. that would be fine, you might also want to use PHP to reduce the image size to fit into your HTML page.
  22. Because you are not posting anything
  23. Google, this forum is for helping people not doing the work for you. Please try and do some research first.
  24. substr();
×
×
  • 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.