Php

Beginner PHP Tutorial – 115 – SELECT Part 1



Join our community below for all the latest videos and tutorials!

Website –
Discord –
GitHub –
Reddit –
LinkedIn –
Facebook –
Twitter –
Instagram –
Twitch -…

Similar Posts

22 thoughts on “Beginner PHP Tutorial – 115 – SELECT Part 1
  1. Ok.. And what if I want to log in as different user with different privileges. I tried to create new user in phpmyadmin but when I change name and password in php file it always end up with error

  2. hrd to tell from that but it looks likse you're using single inverted commas rather than backticks. it's a bit naughty but easier to leave them off –

    SELECT food, calories FROM food

    you don't need order by id, it's the default sort field.

  3. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''food' ORDER BY 'id'' at line 1

    $query = "SELECT 'food', 'calories' FROM 'food' ORDER BY 'id' ";

Leave a Reply

Your email address will not be published. Required fields are marked *