i have database that having 2 table which is event , venue.
the event table hold eventTitle , eventID and venueID.
the venue table hold venueID , venueName and location.
this is my sql query .
$sqlEvent = "SELECT * FROM te_events , te_venue ORDER by eventTitle
WHERE te_events.venueID = te_venue.venueID
";
but there is an error u have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'WHERE te_events.venueID = te_venue.venueID' at line 2
what i want to do is display the venuename and location in the page by using php script.
after i remove 'where' clause, everything works find but the event is repeated.