Ah, thanks. I’m more interested in the ‘users’ table. But… do you understand what you’re doing? I mean, can you read the PHP?
The first step is to fill $search.
The client fills it in here:
<input type="text" name="search" placeholder='Skriv in sökord...'/>
In the following code you don’t ever read that value everywhere.
Somewhere in your code you need the line:
[php]$search = $_POST[‘search’]; [/php]
From that point on what your users typed in the form ( in the input named ‘search’ ) is available to you in $search. ( Note, it’s not checked, it could be anything )
Thanks for an image of your databasemanager. It’s not very helpful to me. What I meant was, look in the ‘users’ table and see if there’s a field named ‘besk’ there too. Otherwise the query needs to be rewritten. ( or at least the ‘users’ part of the query yields no results ) ( made me laugh, like asking :“What kind of car do you have” and get a picture of a wheel as an answer
)
Errormessages and warnings have useful information, they point to parts of the code where things go wrong. It’s always a good startingpoint for debugging.
Also, comment out all the code you don’t understand and then line-by-line uncomment it to see what it does and if the problem is inthere. Trying to grok a large block of code can be a bit disorienting.
Good luck! ;D