i'm getting the exact result that i want from the tables using following query in phpmyadmin.
INSERT INTO resultTable( item, division, epf, person )
SELECT item.name AS item, person.full_name AS personName, person.epf_no AS epf, division.name AS division
FROM item
JOIN person ON person.item_id = item.id
JOIN division ON division.id = person.div_id
WHERE item.name LIKE '%desk%
i need to get the same result when the user search for a word via my user interface written in php.. database connection is ok..but, it's very complicated for me as i'm new to both mysql and php. this is the error..
mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:..
please help me. it's better if you can give the code to be written in the code block 'mysql_fetch_array()' thank you.