Jump to content

MadTechie

Staff Alumni
  • Posts

    9,409
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by MadTechie

  1. many thing are "possible" but worth the effort.. no i'll say yes its possible (someone will find a way) but why would any want to do it as it has to play from the clients PC.. use a client side process
  2. flash is a better option..
  3. try <?php echo date("l F j, Y, h:i:s A"); echo "<br />"; echo date("l F j, Y, h:i:s A", (time()+ 5 * 60 * 60)) ; ?>
  4. please click solved bottom left
  5. to pull the cat=5&sub=23 you would use $_GET['cat']; and $_GET['sub']; but it won't work.. you have an ASP page not php
  6. LOL <?php $url = "http://www.runnerselite.com/website/activate.php?hash=&key=$Key"; ?>
  7. Cool Well happy holidays and happy coding
  8. try <?php $data = 'blare <option value="56">Team Canada</option> ghfdsgfh gfj dsfj blare <option value="52">Team USD</option> ghfdsgfh gfj dsfj blare <option value="55">Team England</option> ghfdsgfh gfj dsfj blare <option value="56">Team france</option> ghfdsgfh gfj dsfj '; echo preg_replace('%<option value="(\d+)">(.*)</option>%i', '<div class="teamlist"><a href="team.php?team=$1" target="_blank">$2</a></div>', $data ); ?>
  9. well i use TIME(); but everyone has their own way! <?php $nextWeek = time() + (7 * 24 * 60 * 60); // 7 days; 24 hours; 60 mins; 60secs echo 'Now: '. date('Y-m-d') ."\n"; echo 'Next Week: '. date('Y-m-d', $nextWeek) ."\n"; // or using strtotime(): echo 'Next Week: '. date('Y-m-d', strtotime('+1 week')) ."\n"; ?>
  10. just +5 hours on the output!
  11. runnerjp you REALLY need to get a book and stop using this place as your "do it for me" lab!
  12. ahh ok you missed the ' heres an example that should help <?php if (preg_match("%<Font\sclass='price'>([0-9\.]+\s+\w+)\<\/Font>%i", $data, $regs)) { $price = $regs[0]; } else { $price = ""; } echo "FIRST: $price<br />"; preg_match_all("%<Font\sclass='price'>([0-9\.]+\s+\w+)\<\/Font>%i", $data, $result, PREG_PATTERN_ORDER); $result = $result[0]; echo "and the rest:<br />"; foreach($result as $price) { echo "$price<br />"; } ?>
  13. You missed the details from the SQL statement SELECT id FROM Mark WHERE username='$username' && password='$password' to SELECT id,login FROM Mark WHERE username='$username' && password='$password' EDIT: or $id = $row['id'];
  14. Sighs $theKey = key(); $url = "http://www.runnerselite.com/website/activate.php?hash=".md5($userid)."&key=$theKey";
  15. try <?php // Start Session $row = mysql_fetch_array($login, MYSQL_ASSOC); $id = $row['login']; $_SESSION['id'] = '$id'; echo("Your session id is $id"); ?>
  16. what do you have so far ? it will basically be echo $row['field']
  17. check the SQL statment can you post all of that code as from what you have will never work..
  18. don't think that will work.. but i'm out.. the simpliest thing seams to be over some peoples head..
  19. the "section" causeing the problem.. rather than the line you think is the problem!
  20. i got The server at wally.hoptp.org is taking too long to respond.
  21. post that section of code. As a note PHP Cookbook by O'Reilly isn't bad
  22. Can you echo the $data, as my server just times out.. post in code tags
  23. Cool never knew that.. Thank for the info, wild
×
×
  • 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.