How do you convert a string such as 2009-05-08 14:40:52,531 into a DateTime?...
This is my code: $email= mysqli_real_escape_string($db_con,$_POST['email']); $psw= ... SQL Injection attack or other SQL attacks ?...
Is it possible, in PHP, to flatten a (bi/multi)dimensional array without using recursion or ... in the lines of array_map() and array_values()....
I want to pass JavaScript variables to PHP using a hidden input in a form. But I can't get ... ; Code for displaying the query result. </table>...
I need to keep a session alive for 30 minutes and then destroy it....
Is there a catchall function somewhere that works well for sanitizing user input for SQL injection ... still allowing certain types of HTML tags?...
In my local/development environment, the MySQLi query is performing OK. However, when I upload it on my web ... a non-object in... Here is the code:...
How can one parse HTML/XML and extract information from it?...
I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried ... server, running MySQL 5, PHP, 5 and Apache 2....
When running my script, I am getting several errors like this: Warning: Cannot modify header information - ... reason for this? And how to fix it?...
I've tried creating a simple mail form. The form itself is on my index.html page, but it submits to ... but never sends an email. How can I fix this?...
What is this? This is a number of answers about warnings, errors, and notices you might encounter ... explain the solution in a general way to apply....
What are the technical reasons for why one shouldn't use mysql_* functions? (e.g. mysql_query(), ... work on my site, why do I get errors like...
If user input is inserted without modification into an SQL query, then the application becomes ... SQL injection, like in the following example:...
2.6k questions
24 answers
34 comments
16.4k users