Oracle and PHP help

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
wncgnet
Forum Newbie
Posts: 1
Joined: Fri Nov 14, 2003 12:57 am
Location: Orlando, Florida

Oracle and PHP help

Post by wncgnet »

Hi Group,

I am a new member here and new to PHP. I have read through most of the manual that comes with PHP and searched in it for my answers. I am running PHP on a Sun Box with Oracle 8i using Apache 1.3.9
My question: I want to create a form to accept a users Fname, Lname, and email for a newsletter and store this in the database, when they sign up for the newsletter though I want to be able to check and confirm that they haven’t already been added to the database (prevent duplicate entries). I have done this in Perl so it’s not entirely new to me, however doing it in PHP is. If anyone could take a minute to give me a sample of code to do this I would greatly appreciate it.

Regards,
C
User avatar
devork
Forum Contributor
Posts: 213
Joined: Fri Aug 08, 2003 6:44 am
Location: p(h) developer's network

Post by devork »

check this out php tutorials -> oracle
http://hotwired.lycos.com/webmonkey/programming/php/
you can also find help about oracle functions from php manual http://www.php.net/doc
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

and you can enforce the uniqueness of the data entered on db level. I'm not familiar with Oracle so it's up to you to read the manual ;)
User avatar
devork
Forum Contributor
Posts: 213
Joined: Fri Aug 08, 2003 6:44 am
Location: p(h) developer's network

Post by devork »

rest of queries are according to oracle, a little practise will do the trick :)
Post Reply