Dear experties,
I want to display data from Mysql by keyword but my code doesn't work.
Maybe you have suggestion for this environment.
please...
HasNor
0
Light Poster
Recommended Answers
Jump to Postwould need to see the code to see what you are trying to accomplish.
Jump to Postif(isset($_POST['key']{ $key = $_POST['key']; $sql = "SELECT * FROM user WHEN name LIKE '{%$key%}'"; ....
you probably dont even need the {} and you may want to escape $key before you pop it in your query.
All 8 Replies
ryantroop
177
Practically a Master Poster
HasNor
0
Light Poster
HasNor
0
Light Poster
ryantroop
177
Practically a Master Poster
HasNor
0
Light Poster
ryantroop
177
Practically a Master Poster
HasNor
0
Light Poster
ryantroop
177
Practically a Master 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.