Pages

Monday, November 19, 2012

Activate CURL in php.ini

I had a project that needs to use CURL, I found everything I need for curl to run thanks to google :) but I keep receiving this kind of notice. 

Notice: Use of undefined constant CURLOPT_SSL_VERIFYHOST - assumed 'CURLOPT_SSL_VERIFYHOST

So I searched more and found that I need to activate the CURL extension.

To activate the CURL extension, you need to locate your php.ini.

I found mine in this location.

Sunday, November 18, 2012

Update/Edit MySQL data using PHP

I stumbled upon this kind of scenario in one of my projects. Just want to share this way of editing MySql data using PHP.

I have a file named get_info.php that has a combobox with the data I needed to edit.

Tuesday, November 13, 2012

Add data to MySQL using PHP


This is just a simple example adding data to MySql using PHP. Hope this helps. :)


In the add.php file, the form named "add" will carry the data to the add_info.php