[Solved] show results with same username php

[ad_1]

you have two mistakes

1- SQL syntax error, correct syntax is

$sql = "SELECT id, name, description FROM all_scores WHERE username="".$username.""";

2- the variable $username is overwritten by the username of the database
try this:

$sql = "SELECT id, name, description FROM all_scores WHERE username="".$_SESSION["username']."'";

0

[ad_2]

solved show results with same username php