-
Posts
3,372 -
Joined
-
Last visited
-
Days Won
18
Everything posted by Muddy_Funster
-
Browser Support For Query String ($_Get)
Muddy_Funster replied to newbornultra's topic in PHP Coding Help
why are you using $_REQUEST when you know it's a $_GET variable anyway? -
to me, neither your code nor reply make any sense. That question still stands.
-
Giving Access Permissions For Content For Users
Muddy_Funster replied to anoopkumarreddybana's topic in PHP Coding Help
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. -
Getting Values From A Mysql Database
Muddy_Funster replied to StaticHazard's topic in PHP Coding Help
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? -
do you have a bloody good reason for using a global? That aside - what's the actual problem?
- 3 replies
-
- random string
- global variable
-
(and 3 more)
Tagged with:
-
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.
-
try adding curl_setopt(CURLOPT_FOLLOWLOCATION, 1); to your options list. Edt: forgot to close tags :/
-
just leave the action empty or make it action="#". then let your if(isset($_POST['name'])) do it's job
-
Deprecated: Function Session_Is_Registered()
Muddy_Funster replied to octa's topic in PHP Coding Help
tizag.com do some nice tuts. -
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.
-
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.
- 3 replies
-
- server script
- client side scirpt
-
(and 2 more)
Tagged with:
-
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.
-
so if(array_search($array)){ $value = array_search($array); } else{ $value = "value not found"; } echo $value;
-
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.
-
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.
-
nope, this is basicly telling the curl function that the sata being passed is sing the post method, rather than get
-
dechex()
-
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?
-
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.
-
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.
-
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;
-
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.
-
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
-
you have 2 hidden input fields at the top, do they post information as well?
-
Do Constants Also Have Global And Local Scopes?
Muddy_Funster replied to 50r's topic in PHP Coding Help
constants are global. you can't change that. it's a constant. variables can be assigned different scope but default to local.