Jump to content

Muddy_Funster

Members
  • Posts

    3,372
  • Joined

  • Last visited

  • Days Won

    18

Everything posted by Muddy_Funster

  1. why are you using $_REQUEST when you know it's a $_GET variable anyway?
  2. to me, neither your code nor reply make any sense. That question still stands.
  3. Best place to ask that question would be on the forum pages of that e-commerce product - at least there they should know which one you are talking about.
  4. Only SELECT style queries will return a table, there is no table returned when you execute INSERT or UPDATE. As SELECT is an SQL Keyword, as you call them, I don't follow what you are saying about them not working. Perhaps your code and some examples of when it goes wrong would be of assistance? don't you think?
  5. do you have a bloody good reason for using a global? That aside - what's the actual problem?
  6. just popped onto the site, and I see a couple of things : it's using https and there is another part of the form - rememberme - that your not sending.
  7. try adding curl_setopt(CURLOPT_FOLLOWLOCATION, 1); to your options list. Edt: forgot to close tags :/
  8. just leave the action empty or make it action="#". then let your if(isset($_POST['name'])) do it's job
  9. tizag.com do some nice tuts.
  10. you could try changing your returns to return array($i, $monthvalues); then just call the values from the function : $values = closest($monthvalues, $number); echo "{$values['1']} was found at position {$values['0']}"; or something along those lines should do it.
  11. You could create an alternate page set and link to it within the noscript tags with something like "It seems you do not have Javascript enabled in your browser - please click here to view the javascript free version of my work" then copy paste and tweek to suit.
  12. right, so you are calling $this->changeItem() when writing the form. $this->changeItem() in turn calls $this->db->Itemsklaar() with one of two values. $this->db->Itemsklaar() performs an update to the database with the values given. cutting it down - your script is written so as to perform an update on the database when you are building the forms. The forms themselves are not pert of the problem.
  13. so if(array_search($array)){ $value = array_search($array); } else{ $value = "value not found"; } echo $value;
  14. I don't get your question - array_search(), which you are already using, returns the key if it finds a match, which is what you seem to be asking how to do. I'm confused.
  15. PHP can't "soot" a form by it's self, by the time the form makes it to the browser php is done with it and can no longer interact with the page elements directly - you need a client side language like Javascript to do that. The issue must be with some controll logic elsewhere in your script. without access to all your classes and functions we won't be able to narrow it down much further than that.
  16. nope, this is basicly telling the curl function that the sata being passed is sing the post method, rather than get
  17. dechex()
  18. so you are opening your browser and going to http://localhost/file.php correct? What program are you using to create your .php files? did you get something like notepad++/pspad/eclipse or are you using ms word or some such?
  19. you would only need to implode it to display it with an echo statement. you're issue isn't passing the array from page to page, it's just getting it to display the contents of that aray when you get to the end. only implode when you want to output to screen, keep passing the array through as you have been doing.
  20. your problem is that you are not checking to see if the form has been submitted before running the insert, you also have no validation or sanitization on the form inputs. As a starting point it's not three bad though, also please use code tags when posting code - it makes everything much easier to read.
  21. I can't view your code - my browser has issue with attached files on here - but all you need to do is add the following line just before the one that is used to echo the array (I'll call it $array for fun) to something like the following $array = implode(', ', $array); echo $array;
  22. I don't think you can apply formating to a mysqldump, that said - I have never thought to try. It's not supposed to produce a nice shiny report, it's ment as a backup tool.
  23. You could try something along the lines of SELECT EXTRACT(DAY FROM date_created) as day_of_month, referrer, sum(reward) FROM referrers WHERE date_created BETWEEN DATE_SUB(NOW(), INTERVAL 7 DAY) AND NOW() GROUP BY day_of_month don't know that it will work or not though
  24. you have 2 hidden input fields at the top, do they post information as well?
  25. constants are global. you can't change that. it's a constant. variables can be assigned different scope but default to local.
×
×
  • 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.