etsted Posted May 1, 2014 Share Posted May 1, 2014 $username = $row['u_name']; $avatar = $row['avatar']; $gender = $row['gender']; $lastlogin = $row['lastlogin']; // count all of their videos, images and audios function select_images($tabell){ global $username; $sql = "SELECT COUNT(id) FROM $tabell WHERE username='$username'"; } $num_images = select_images("images"); causes Cannot redeclare select_images() (previously declared in C:wampwwwsearch.php:165) Link to comment Share on other sites More sharing options...
thescientist Posted May 1, 2014 Share Posted May 1, 2014 and? (fyi, you can't have two functions with the same name) Link to comment Share on other sites More sharing options...
Ingolme Posted May 2, 2014 Share Posted May 2, 2014 Either you have already declared that function in another file, or you're including this file twice. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now