hi.. everyone..
This is a sql query problem that I have uncounted and have been in the same script for hours. But Still I couldn't get it to work.
I need to get a image from database and its type should be one of a value from my $designation array. The query should check $designation array's value with database and if its match with one of a value in database then query can retrieve one row.
This is my designation array. its value I use for image type in my db.
$designation = array ( 'Managing Director', 'Manager', 'Director', 'The Principal', 'Deputy Principal', 'Proprietor', 'Assistant Manager', 'Head Master');
My problem is how can I check these value exit in my table and how can I make a query for this. In query where condition is confusing to me...
any comments are greatly appreciated.
Thank you..