Jump to content

swamp

Members
  • Posts

    87
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

swamp's Achievements

Member

Member (2/5)

0

Reputation

  1. You'd need to do it in JavaScript - I'd recommend loading in the contents with AJAX. If you were using the jquery library you could do something like //set cursor as wait with css $('body').css('cursor', 'wait'); //load results into div $('#info').load('results.php', function(){ //load has completed $('body').css('cursor', 'auto'); }); More info: http://api.jquery.com/load/ + http://api.jquery.com/css/
  2. You cannot access the iframe location after you have navigated away from it due to browser security restrictions
  3. Hi guys, I've got this array: Array ( [0] => Array ( [block_id] => 1 [template_file] => textpanel.php ) [1] => Array ( [block_id] => 2 [template_file] => textpanel.php ) ) I'm struggling to get to template_file from a foreach loop I have this: $data = $resultset->fetchAll(); foreach ($data as $item){ echo $item->template_file } Any help is much appreciated, I think I'm just missing something in between $item-> and template_file but not sure what. Thanks
  4. Ah - was incrementing just started $i as 0 instead of 1... Cheers
  5. Yeah there is more to my script, my only concern is how to get $i into $_SESSION['item'$i]
  6. Hi I'm having a bit of trouble with this: In my loop I need to add the $i to the session name (eg) $i = 0; while ($i < 7) { doFunction($_SESSION["item".$i]) }
  7. You could get the firebug extension for firefox and see the response you get from the page under the net tab
  8. Hi there, I need to check if there has been a url submitted from a form so if a post was "hi there, check out this website http://www.somewebsite.com/ - what do you think?" when it was sent to the script it would do something like if $_POST['comment'] has url in it then do function urlExists($url)
  9. Hi there, Could anyone give me a hand with this? I need to extract an image from a remote URL (Just the first image on the site).. so if $url = 'http://www.bbc.co.uk' it would grab the first image it finds on the site. Cheers
  10. And this site is good too http://www.sqlzoo.net/
  11. http://www.addedbytes.com/download/mysql-cheat-sheet-v1/png/
  12. Hi, I've got a DATETIME column in my database ($dateExpires) I need to be able to add minuets to this (something like this..) $dateExpires = $row['date_expires']; //2009-07-01 11:03:00 $minsToAdd = 2 (mins); $newDateExpires = $dateExpires + $minsToAdd;
  13. Hi there Can anyone shed some light on this? I need to have a countdown on a page that runs from a value in a database and then displays a different message. Something like <?php if($row['time_left'] < 0) { echo 'no time left'; } ?> But how would I have it automatically count down? Thanks in advanced.
×
×
  • 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.