Jump to content

Recommended Posts

Posted

Salut! De o perioada mi-a aparut o eroare php pe care am incercat sa o si rezolv, dar nu prea reusesc. Asa ca am decis sa va cer ajutorul dumneavoastra..

Error: Fatal error: Cannot redeclare get_member_type() (previously declared in /opt/lampp/htdocs/3i/personal.php:19) in /opt/lampp/htdocs/3i/personal.php on line 19

Poate ca stiti voi din ce cauza a aparut, si cum se poate rezolva..

Linia 19:

function get_member_type($l, $m)
{ 
	global $member_types; 
	$x = $member_types[$m];
	                        
	return $x;

}

 

Captură-ecran.png

  • Moderators
Posted

Iti da eroarea asta pentru ca ai dat un include de mai multe ori la acel fisier. Foloseste include_once sau requiere_once inloc de include sau requiere.

  • Upvote 1

PHP Developer - Not available for freelancing right now

Daca ai de gand sa postezi la categoria IPB, nu uita sa citesti regulamentul: Link regulament

  • gaby changed the title to Eroare PHP: cannot redeclare function

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.