insert values into database using pdo

Codes here !

Moderators: macek, egami, gesf

borhansafa
New php-forum User
New php-forum User
Posts: 1
Joined: Sat Feb 02, 2013 6:54 pm

insert values into database using pdo

Postby borhansafa » Sat Feb 02, 2013 7:00 pm

Hi I am a beginner php programmer and I have created a web form and it has validation as well. What I am trying to do is to put a pdo code into the script which will help me to insert the values into the database. The code you can find below..

https://www.dropbox.com/sh/6x9k3oo3t9zc3fz/OZtUYJAOKp

php9
New php-forum User
New php-forum User
Posts: 13
Joined: Fri Feb 22, 2013 2:20 am

Re: insert values into database using pdo

Postby php9 » Fri Feb 22, 2013 2:53 am

Post the code in this thread and I'll take a loot. PDO is a great library to use because it supports Prepared Statements (for SQL Injection prevention).

seandisanti
php-forum Fan User
php-forum Fan User
Posts: 838
Joined: Mon Oct 01, 2012 12:32 pm

Re: insert values into database using pdo

Postby seandisanti » Fri Mar 01, 2013 12:35 pm

Is it giving you an error? if so what error? if not, what is it returning that is different than you want or expect? "this is what i want, here's my code" is unfortunately not quite enough information


Return to “mySQL & php coding”

Who is online

Users browsing this forum: No registered users and 3 guests