vBulletin Modifications

Validating Information before entering it into the database

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > General vBulletin Section > vBulletin Hacker Forum

Reply
 
LinkBack Thread Tools
Old 05-20-2007, 05:53 PM   #1
Coder
BamaStangGuy's Avatar
Join Date: Jun 2006
BamaStangGuy is on a distinguished road

Default Validating Information before entering it into the database

I am working on a Lyrics Database Script for vBulletin. What I would like to do is to check to make sure that an artist doesn't exist before entering it into the database. If the artist's name has not been added then it should proceed with the query. If the artist name already exists then it needs to give an error stating that.

Will I have to $db->query_read to get the artists and then check that the artist name the user has put into the artist name field does not exist? Is that the best way?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 05-20-2007, 06:31 PM   #2
Coder
BamaStangGuy's Avatar
Join Date: Jun 2006
BamaStangGuy is on a distinguished road

Default

I found a solution




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-20-2007, 07:01 PM   #3
Michael Biddle
Staff
Michael Biddle's Avatar
Join Date: Feb 2005
Real Name: Michael Biddle
Location: Anaheim
Michael Biddle is on a distinguished road

Default

Post for future refrence
__________________
Support will ONLY be offered through forums
Michael Biddle / vBHackers.com
vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Crawlability Network: vBulletin SEO | vBulletin Hackers




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
restore database mohammed General vBulletin Support 6 03-24-2007 08:56 PM
Install Error on new server | Please help! [.:.Batista.:.] General vBulletin Support 6 01-08-2007 03:41 PM
Help - Reading from database Se7eN General vBulletin Support 5 11-17-2006 02:24 PM
Cache System Explanation (datastore) Ken Iovino vBulletin Modification Tutorials 19 05-13-2006 04:56 PM


All times are GMT -3. The time now is 10:29 AM.


SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. (Patent Pending)