Jump to content

bis_codex

New Members
  • Posts

    1
  • Joined

  • Last visited

bis_codex's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I created a database with the name 'food-order', on the search bar i can only search for files on one of the table, how can i search for all the items within the database 'food-order' not a specific table <?php //sql query to get category based on search keyword $sql = "SELECT * FROM tl_category AND apartment_rent WHERE title LIKE '%$search%' OR description LIKE '%$search%' OR location LIKE '%$search%'"; // execute the query $res = mysqli_query($conn, $sql); // count rows $count = mysqli_num_rows($res); // check whether category is available or not if($count>0){ // category is available while($row=mysqli_fetch_assoc($res)){ // get the details $id = $row['id']; $title = $row['title']; $price = $row['price']; $description = $row['description']; $location = $row['location']; $image_name = $row['image_name']; ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.