cyberRobot Posted December 17, 2014 Share Posted December 17, 2014 I am now getting some data with a error message off Notice: Undefined index: SELECT * FROM applicant WHERE `Firstname` LIKE 'booth' OR `Lastname` LIKE 'booth' in C:\wamp\www\search2.php on line 72. the data is 100% but its getting some It should be $searchq = $_GET['search']; Not $searchq = $_GET["$sql"]; Link to comment https://forums.phpfreaks.com/topic/293146-notice-undefined-variable-searchq-in-cwampwwwsearch2php-on-line-17/page/2/#findComment-1499861 Share on other sites More sharing options...
Chris721 Posted December 17, 2014 Author Share Posted December 17, 2014 fixed it, found the problem Link to comment https://forums.phpfreaks.com/topic/293146-notice-undefined-variable-searchq-in-cwampwwwsearch2php-on-line-17/page/2/#findComment-1499862 Share on other sites More sharing options...
Chris721 Posted December 17, 2014 Author Share Posted December 17, 2014 I changed to $searchq = $sql; and it now works Link to comment https://forums.phpfreaks.com/topic/293146-notice-undefined-variable-searchq-in-cwampwwwsearch2php-on-line-17/page/2/#findComment-1499863 Share on other sites More sharing options...
cyberRobot Posted December 17, 2014 Share Posted December 17, 2014 and it now works I'm glad to hear it works! Link to comment https://forums.phpfreaks.com/topic/293146-notice-undefined-variable-searchq-in-cwampwwwsearch2php-on-line-17/page/2/#findComment-1499864 Share on other sites More sharing options...
Chris721 Posted December 17, 2014 Author Share Posted December 17, 2014 thank you for the help, learning as I go Link to comment https://forums.phpfreaks.com/topic/293146-notice-undefined-variable-searchq-in-cwampwwwsearch2php-on-line-17/page/2/#findComment-1499865 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.