when i click in the search button it must display whatever i type in
andyy121
-9
Junior Poster
Recommended Answers
Jump to Postandyy121:
mysql_real_escape_string
will require a database connection.I would suggest you approach from a different angle
if (isset($_POST['keyword'])){ $keywords = strip_tags(trim($_POST['keywords'])); echo $keywords; // remove the '' } else { echo "Keywords is empty"; }
Jump to Postcomment line 2, everything will run proeplry then
//$keywords =mysql_real_escape_string(htmlentities(trim($_POST['keywords'])));
Jump to Post@andyy121
Did you read
Squidge
question?mysql_real_escape_string will require a database connection.
Do you have a db connection?
Jump to Postline 2 comment it
$keywords =mysql_real_escape_string(htmlentities(trim($_POST['keywords'])));line 3 add new line
$keywords =$_POST['keywords'];Line 20 change as follow
echo "$error,</br>";
Jump to Post@andyy121:
Quite frankly with the attitude you come on to the forum with i have given up caring.People on here have help you and pointed you in viable directions, and yet you seem to think everyone on here owes you something.
If it was possible i would have you …
All 18 Replies
andyy121
-9
Junior Poster
Squidge
101
Newbie Poster
andyy121
-9
Junior Poster
andyy121
-9
Junior Poster
andyy121
-9
Junior Poster
andyy121
-9
Junior Poster
urtrivedi
276
Nearly a Posting Virtuoso
andyy121
-9
Junior Poster
andyy121
-9
Junior Poster
andyy121
-9
Junior Poster
andyy121
-9
Junior Poster
LastMitch
andyy121
-9
Junior Poster
urtrivedi
276
Nearly a Posting Virtuoso
Squidge
101
Newbie Poster
andyy121
-9
Junior Poster
Squidge
101
Newbie Poster
iamthwee
commented:
Damn right, tell it how it is
+14
andyy121
-9
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.