Page 1 of 1

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

Posted: Fri Jun 08, 2007 7:31 am
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

Posted: Fri Jun 08, 2007 12:56 pm
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.