How to convert a unix timestamp into "Y-m-d H:i:s" format with PHP [duplicate]
I am using jQuery's DatePicker to select a `from` date and `to` date. When I select a date i covert it to timestamp usin...
Latest news, tutorials, and updates from the PHP community
7059 articles available
I am using jQuery's DatePicker to select a `from` date and `to` date. When I select a date i covert it to timestamp usin...
This is my current set up. I have created a new custom theme with the following regions. [Code Block] page.tpl.php [Code...
I'm trying to get PHP to move an uploaded file from the tmp directory to somewhere permanent on my webserver. It seems s...
I'm using a timestamp in my PHP script to handle time in hours, minutes and seconds. Timestamps also record the date, bu...
Is there a way to return a non-associative array as a result of a CI database query? Say, I have this table: [Code Block...
In old mysql() code, to escape a string, I did this: [Code Block] I am changing my code to mysqli, but what I want to kn...
I come from python background and the python datatype which is similar (a dictionary) is an unordered set of key value p...
I have a select query in PHP program. [Code Block] From this query i need to extract two data sets: (Both the data sets ...
I have a database setup in MySQL with three columns. The first column is 'idnum' that auto increments the users id numbe...
How can I order the results of my CodeIgniter query by 'model' column values? My code: [Code Block]
I'm using CodeIgniter and have a problem with converting a raw query to a query builder script: [Code Block] I tried to ...
Is it possible to do the following? [Code Block] Doesn't seem to work. BTW i'm on PHP 5.3.5.
Showing 6013 to 6024 of 7059 articles