-
Replied To a Post in Two Ajax Function
If you know how to do one AJAX request, what is it that prevents you from doing two? :) Any code that you have written that we can check for … -
Replied To a Post in dropdown menu
Are you sure you are asking about PHP? Because *creating* a dropdown menu is usually done using CSS. *Filling* it is what you can use PHP for. So which are … -
Replied To a Post in $base_path= issue with script I am installing. Has data.php and config.php
You may be able to find it in include lines. Usually it is used - like pritaeas says - to specify a path where for example files to include can … -
Replied To a Post in $base_path= issue with script I am installing. Has data.php and config.php
I don't think there is a way for us to know what the author of that script meant with `$base_path`. I think you should look into the rest of the … -
Replied To a Post in problem in form to display data.
Well, there isn't any code in there to display data, so what did you expect? ;) Did you post all of your code though? Seems like some is missing. -
Gave Reputation to pixelsoul in A question..how can we store our nose and ear in data base??
Sure. INSERT INTO funny_people (nose, ear, brain) VALUES ("Gangotri troll nose", "Gangotri hairy ear", NULL); -
Replied To a Post in Multiple records delete
It is a **notice**. This is not a serious warning. It just tells you that you are using a variable that has not been defined yet. Two possible fixes: 1. … -
Replied To a Post in Having problem in pagination.
Yes, that is because when you press "next", a new page is loaded and no post values are submitted, which means that `$search` will be empty on the next page … -
Replied To a Post in how to hide specific values mysql php
You have to be more specific. What values do you want to hide? Have you written any code yet? -
Replied To a Post in PHP Call to undefined function
Well, I'm glad you discovered the next clue ;). Let us know if you find anything that is wrong with it and if you need help with it. -
Replied To a Post in PHP function missing argument error
You are only passing 3 arguments to your `Get_All_Orderlines_Range()` function, while it needs 4. -
Replied To a Post in Having problem in pagination.
Well, if you are getting an error, it would be helpful if you would post that error so that we can see what goes wrong, where, and why :). On … -
Replied To a Post in PHP Call to undefined function
Ok, this is confusing me somewhat: your file **is** in the list with included files, but if you output text inside that include file, it isn't being shown on the … -
Replied To a Post in Avoiding Update when No Data has Changed
In addition to my answer, you can measure how long actions take by using - for example - the [microtime](http://php.net/manual/en/function.microtime.php) function. Example: // ----- ACTION 1: ----- $start = microtime(true); … -
Replied To a Post in Avoiding Update when No Data has Changed
Well, usually an update query takes longer than a select query because an update query locks the database where a select query does not. Therefore, if you can avoid an … -
Replied To a Post in Having problem in pagination.
Well, obviously you need to pass on a parameter when the "next" button is pressed that tells you which page you're loading. Then you need to do page_number * results_per_page … -
Replied To a Post in auto submit form
Have you tried a Javascript function that uses [settimeout()](http://www.w3schools.com/jsref/met_win_settimeout.asp)? -
Replied To a Post in PHP Call to undefined function
Well yes, it must be that, then. That's why I thought you could try to output `var_dump(function_exists('Get_Favourites'));` inside the file that defines the function (after the function is defined) to … -
Replied To a Post in Having problem in pagination.
Ah, I see what you're probably doing wrong now. Your `$construct` query is ok (apart from the fact that you're not properly escaping user input). Your `$getquery` function is not … -
Replied To a Post in Having problem in pagination.
Well, it looks like only one record should be returned per page load then. Can you confirm that this loop while($runrows = mysql_fetch_assoc($run)) // This while loop will prints search … -
Replied To a Post in Having problem in pagination.
Well, before they are used, you could execute some code like: echo '<p>The value of $start is: ' . $start . ', and the value of $per_page is: ' . … -
Replied To a Post in Help with .Click()
What about you create a timer that checks every x miliseconds if the button exists, and if so, clicks it? -
Replied To a Post in Need help to validate a text box
An unescaped dot matches **any** character (except a whitespace if the modifier is not set). You need to use `\.` to match a dot, instead of just `.`. Also, you … -
Replied To a Post in Having problem in pagination.
Have you checked and validated the values of your `$start` and `$per_page` variables? **On a side note** Also, your query isn't secure. You should escape user input in queries using … -
Replied To a Post in PHP Call to undefined function
So if you add an `echo` to the file that defines your Get_Favourites() function, and then include that file, nothing is being echo'd to the screen? E.g. if you add … -
Replied To a Post in call to undefined method
Well, `file_exists()` does not return `true` if the file does not exist. That means that `$target_file` **must** exist. Can you triple check that it does not? I.e.: check the value … -
Replied To a Post in How to display Textbox value???
Then what is it displaying? :) -
Replied To a Post in PHP Call to undefined function
Well, maybe you could add some debug code to the file that contains that function that says "Hey, you've just included me!" and after that line something like `var_dump(function_exists('Get_Favourites'));` to … -
Replied To a Post in PHP Call to undefined function
Well, if it is not in the list that is returned by `get_defined_functions()` there is something wrong, apparently :p. Is it in the list? -
Replied To a Post in PHP Call to undefined function
You could write it in the same place that you wrote the `get_included_files()` function, i.e. the line before the error. Example: `print_r(get_defined_functions()); exit();` -
Replied To a Post in PHP Call to undefined function
Is the file being included before the function is called? Have you checked if there isn't a case problem (not that PHP functions are case sensitive, for as far as … -
Replied To a Post in PHP Call to undefined function
You can check whether the correct file (the one that defines the function) has been included by executing `print_r(get_included_files()); exit();` the line before the error. -
Replied To a Post in call to undefined method
Does it give any error? -
Replied To a Post in Initializing a class variable with a variable
Use the [__construct()](http://php.net/manual/en/language.oop5.decon.php) function. It is called when the object is instantiated (i.e. when you execute `$object = new Object();`. Example: class booking_diary { // Time Related Variables public $booking_start_time; … -
Replied To a Post in call to undefined method
Can you confirm that in your code line 84 is really `$stmt->execute();` and can you confirm that `$stmt` is really a PDOStatement (e.g. `var_dump($stmt);`? Could it be that `$conn->exec($sql);` is … -
Replied To a Post in how to solve this error
You're probably getting a **notice** that there is an undefined variable on line 4. That is because `$_post` does not exist. Variable names in PHP are case-sensitive. This means that … -
Replied To a Post in detect browser close event
1. [Google](https://www.google.nl/search?q=browser+close+event) 2. Leads to [StackOverflow](http://stackoverflow.com/questions/20853142/trying-to-detect-browser-close-event) 3. You've got your answer! Which is something like: ----- window.onbeforeunload = function (event) { var message = 'Important: Please click on \'Save\' button … -
Replied To a Post in How to display Textbox value???
Change your HTML: <div class="form-group"> <label class="col-xs-3 control-label">What is your full legal name?</label> <div class="col-xs-5"> <p id="user_name_container">Hello <span id="user_name"></span>, nice to meet you!</p> <input type="text" class="form-control" name="name" /> </div> </div> … -
Replied To a Post in call to undefined method
Well, the error message you entered clearly states > Fatal error: Call to undefined method PDOStatement::exec() in /home/a6382499/public_html/insert3.php on line 84 that your PDOStatement object is trying to use the … -
Replied To a Post in call to undefined method
The PDOStatement object does not have an `exec()` method; that is PDO's own method (http://php.net/manual/en/pdo.exec.php). To execute a PDO statement, you need to use `execute()` instead of `exec()` (http://php.net/manual/en/pdostatement.execute.php). I … -
Replied To a Post in array into string
These are notices, not severe errors. You can change your error reporting to E_ALL & ~E_NOTICE if you don't want to see them. Or you can simply check for the … -
Replied To a Post in array to display as fields
What is the error that you're getting? You could try to add `print_r($row);` inside your loop so that you can see the contents of $row and see if anything is … -
Replied To a Post in i want to destroyed session when browser close but not to close tab
From http://php.net/manual/en/session.configuration.php : > session.gc_maxlifetime specifies the number of seconds after which data will be seen as 'garbage' and potentially cleaned up. Garbage collection may occur during session start (depending … -
Replied To a Post in javascript & mobile
Well I personally don't have any experience at all with writing browsers, let alone browsers for Android :p. But for as far as writing Javascript goes.. sure you can write … -
Replied To a Post in Error in PHP SQL
Can you show us the query that contains the error? -
Replied To a Post in Error in PHP SQL
What about you post the query that contains the error? ;) -
Replied To a Post in i want to destroyed session when browser close but not to close tab
> sessions destroy itself after 30 minutes from time created, or when user closes the browser Since when is that so? :o -
Replied To a Post in How to reset multiple file input field using jquery
You mean that when you have multiple file inputs and select a unallowed file for more than one of those inputs, you get only errors for one of them? Or … -
Replied To a Post in i want to destroyed session when browser close but not to close tab
When a session is completely destroyed is not always up to you. A user himself can decide when he wants to clear all website data. That can be when he … -
Replied To a Post in javascript & mobile
It depends on a lot of things. On the browser side it depends on what I have already described, but your browser, obviously, is fully dependant on the system that …
The End.