search MySQL database and variable conversion using PHP + source code

0 121

today i was working on a project to verify a customer code in mysql database everything was well and code works without error but  no result shown in output at last after hours of struggling i find out that id has sent as text instead integer to query , coz normally when we create input box in html form its contect is text ,  in case if you face with such problem in your action file when you want to assign posted value to an variable before that convert in to integer or any variable that you are going to search it in database lets suppose we have 2 files first index.html which is include a text box to enter customer id which we need to be verified

the second file name is verify.php which will receive form posted value and will verify it whether is there any customer registered with such id or not



ارسال یک دیدگاه

آدرس ایمیل شما منتشر نخواهد شد.