Hi all,
ok, Im kind of new to PHP, but was doing ok until I hit this problem. I am trying to build a script that queries two databases to check the existence of a phrase(its use to store project names).
I figure the flow would be as follows:
1. User enters Enters phrase into form ($phrase)
2.Check Database 1: Does $phrase exist (exact match, NOT case senstive)
If YES: FAIL got to Step 5
If NO: PROCEED to Step 3
3. Check Database 2: Does word exist
If YES: FAIL go to Step 6
If NO: PROCEED to Step 4
4. Display "You can call your project that"
5. Display "Phrase is in use by another project"
6. Display "Phrase has already been reserved for use"
Can anyone help me build this script? Please keep it simple as I get lost easy!
Thanks
Alicia
xxx
ok, Im kind of new to PHP, but was doing ok until I hit this problem. I am trying to build a script that queries two databases to check the existence of a phrase(its use to store project names).
I figure the flow would be as follows:
1. User enters Enters phrase into form ($phrase)
2.Check Database 1: Does $phrase exist (exact match, NOT case senstive)
If YES: FAIL got to Step 5
If NO: PROCEED to Step 3
3. Check Database 2: Does word exist
If YES: FAIL go to Step 6
If NO: PROCEED to Step 4
4. Display "You can call your project that"
5. Display "Phrase is in use by another project"
6. Display "Phrase has already been reserved for use"
Can anyone help me build this script? Please keep it simple as I get lost easy!
Thanks
Alicia
xxx