In Php, how to unset query variable

0 votes
asked Mar 16, 2016 by Is5672 (960 points)
In order to fetch data from database (mySql) I am appending my query depending upon user requirement which he chooses from filters I've given to him. Thanks a lot for your help

5 Answers

0 votes
answered Mar 25, 2016 by Uni34Dee (1,970 points)
You can assign a string or numeric value to the same session variable.
0 votes
answered May 6, 2016 by newer_7337 (840 points)
The variable retains the previous value. Explanation unset() function is used to destroy a variable. So, if you want to add a dynamic fragment, see this example PHP unset() Function, Unsetting Variables - Online Tutorial
0 votes
answered May 20, 2016 by Polanski3865 (140 points)
See [PHP3] unset(variable) and mysql_free_result(integer ... for a set of tools to handle this
0 votes
answered Jun 2, 2016 by vf7228 (1,000 points)
This looks like it has some source code that might help you. I am trying to get all the posts for a page by using it works like a charm
commented Jun 4, 2016 by through (160 points)
I had this same problem and was having no luck with the suggested fixes. For full detail visit this answer
0 votes
answered Jun 2, 2016 by va3135 (150 points)
I think many other people have given you mostly correct answers on this matter. More information MySQL Bugs: #38124: "general_log_file" variable silently ...
commented Jun 4, 2016 by chaversIn (100 points)
I know this question has already an answer that gives a solution. Gives you the with of the first character

Related questions

What is Geekub?

Q&A site for professional and enthusiast programmers, software developers and other technical users. With your help, we hope to work together to build a library of detailed answers to just about any question that is related to programming!