Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Multiple Query question!

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #38141
    schart
    Participant

    So what I’m doing exactly is making a search page. I want to be able to search for the wall post’s content, and the name of the user who posted it. Now I could line them up like


    *Content*

    *Content*

    *Content*



    *Username*

    *Username*

    *Username*

    … But why would I do that if I could mix them together so the most accurate will display on the top?
    I’m currently using this query to list information:

    $query = mysql_query("SELECT * FROM wallposts WHERE content LIKE '%$searchq%'");
    while ($row = mysql_ [...]

    … Any way I can use multiple, like WHERE content OR username LIKE … ?

    – Thank’s :) !

Viewing 1 post (of 1 total)
  • The forum ‘Back End’ is closed to new topics and replies.