I would like to print my usernames Into a list on my page. I've wrote my query correct im sure of that but i get this error:
Fatal error: Cannot redeclare get_users() (previously declared in C:wamp1wwwcms1user_list.php:70) in C:wamp1wwwcms1includesuser_list_functions.php on line 7
Here is the part of the user_list.php:70
function get_users($username){
echo $username;
}
here is my function : User_list_functions.php:7
function get_users($username) {
global $connection;
$query = "SELECT * FROM users_survey WHERE username = {$username} ORDER BY position ASC";
$username = mysql_query($query, $connection);
confirm_query($username);
}
Aucun commentaire:
Enregistrer un commentaire