Skip to content

Tag: php

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…

How to print an external page

I am trying to print an external source by clicking on a button. I found multiple scripts on the internet but none of them are working. So my question is, how can I print a specific page by clicking …