PHP - How to check by giving data in form to database fields

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
avmohankumar
Forum Newbie
Posts: 14
Joined: Fri Jun 08, 2007 7:20 am

PHP - How to check by giving data in form to database fields

Post by avmohankumar »

Dear friends,
i have the big doubt, i have to check the data, where it is available in database. i have stored some data in mysql database table. By giving the value in the form, it has to show that data or else "the data are not presented".
How can write in php and control in Javascript.

Please Help me,

Regards,
avmohan
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Do your select query, check the number of rows returned. If the row count is 0, show your message, otherwise show your data.

As for javascript... I say get your bearings on the PHP side of things first, then move into the client side of things later.
Post Reply