Jump to content

Niccaman

Members
  • Posts

    83
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Niccaman's Achievements

Member

Member (2/5)

0

Reputation

  1. Lets say I have: function example(){ // code 1 } ...already declared in the document. Now i need to insert some new code as an extension of the 'example()' so that it will run example() and then my newer code. For example, I know this isnt possible, but I wanna do this: example.extend(function(){ // code 2 }); ... so that when I call 'example()' later, it will run both code 1 AND code 2.
  2. Thanks, I will do that. As long as I understand what you mean by pages having different urls. They are all their own filenames in say a single folder. Good enough?? Thanks.
  3. Whoops, im using referrer, but ofcourse thats the page your come from. How do u get ur current url?
  4. I want to be able to identify every page by a unique ID I dont want to manually assign every page i have with a personal ID. Is there a way of giving each page a unique ID based on file location or something?? I thought the URL using HTTP_REFERRER, but when u have a GET variable, it seems to be empty... Thanks in advance.
  5. Ok, i guess you guys would know if anybody. Thankyou for your time guys, i really appreciate it. ...Problem is, any error messages from the one time script wont echo as i am effectively reloading the page. Any ideas? either way topic solved
  6. I have a variable in the URL which i wanted for one-time processing. Obviously once the page is loaded the client still has this variable and its value still in the URL, meaning, if they refresh, some code will be processed again. So what i want to do is remove this variable from the url. e.g. "./something.php?variable=true" ... how will i remove "?variable=true" using php?? Thanks in advance.
  7. I have a script which gets an elements innerhtml, which is "08". I run parseInt on it, and it returns "0". Any ideas?
  8. No, this second page has a google maps API in it, and wont work just loading the second page INTO the first page. I wanna actually have another page/tab open.
  9. I've seen this done on other websites, and i need to find a way to do this: I have my page opened, lots of information inside different input fields, and after clicking a link on this page will take them to another page, where they do something to get more information, then post/get that information back to the first page without ever reloading that first page. Please, how do i do this? There is only one workaround that i can think of, which i dont want to do which is posting all the information from the first to the second, then post it all back with the extra info. (also could do with sessions, but again dont wanna do that.)
  10. One step ahead of you. I simply tested it without the extras after "..." so full sql query: SELECT * FROM `stuff` WHERE `daterenewal` > NOW() Conditions is still fulfilled. // Cancel, i forgot to put the date a lesser value (from previous testing i changed it to above NOW()) and it now works. My statement had some ORs after the "..." and i believe order of precedence meant it was like bracketing the first 2 conditions, whilst leaving the rest independent. So, "WHERE `x` = 'y' AND `x` = 'y' OR `x` = 'y' ..." became "WHERE (`x` = 'y' AND `x` = 'y') OR `x` = 'y' ..."
  11. Array ( [NOW()] => 2009-06-30 12:36:09 ) ... Yeh its all good. This is so annoying. Why is it happening!? The condition shouldn't be fulfilled...
  12. Array ( [Field] => daterenewal [Type] => datetime [Null] => NO [Key] => [Default] => 0000-00-00 00:00:00 [Extra] => )
  13. $query = "SELECT * FROM `stuff` WHERE `daterenewal` > NOW() AND ..."; $res=mysql_query($query); if (mysql_num_rows($res)) { while ($row=mysql_fetch_object($res)) { ... // This is always fulfilled and returning the row with date earlier than now. } }else { echo "No search results"; }
×
×
  • 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.