Skip to content

PHP convert Array to XML

I have an array like so: [0] => Array ( [Project] => Array ( [ExternalProjectID] => 53 [ProjectName] => Doon …

MySQL select user motto

I am stuck on this problem and I have been trying to solve for like 2 hours. I have a posts table which contains all posts. Each post has a column called ownerid which keeps the id of the owner of this post. And it also contains a column called groupid. What I want to have is to select all

Post date format and select date format from the database

I have a textbox that displays the current date in format: d-m-Y When I save this the date will written to my database like: Y-m-d. For example: the current date is: 02-06-2016. My script writes this to the database as: 2002-06-16. I am using the following code to save the data to my database: What do I need …

PHP Unset Session Variable

I’m a noob programmer so I apologies in advance for any obvious mistakes. I’ve spent the past week creating a product database kinda thing. I’ve got too the point where I can add products using a form,…

How to CRUD using PDO Connection?

I want to CRUD using PDO Connection I know how to create insert update and delete using msql_query() but I have no idea how to do that with PDO Connection. Answer Below is the example of that

how to set environment variables in apache xampp ?

I would like to add some environment variables in apache xampp in windows. I already tried the following : adding this in httpd.conf or, run this script but that doesn’t seem to work when I echo phpinfo(), there isn’t ENVIRONMENT variable in the environment section Answer I know this is an old pos…