xmas12 Posted July 11, 2009 Report Share Posted July 11, 2009 Sveiki. Es izmantoju Ownmen reģistrācijas script un ielogošanās un es to script pieliku klāt savam dizianma. agraak viss gaaja bet tagad ejot reģistrācijas lapā tad mna uzmetas šāds.. Fatal error: Cannot redeclare quote_smart() (previously declared in C:\Xamp\htdocs\nav2\include\functions.php:12) in C:\Xamp\htdocs\nav2\include\functions.php on line 25 Un šeit ir function fails: <?php // Izlogoties if(isset($_GET['darbiiba']) and $_GET['darbiiba'] == "logout") { mysql_query("UPDATE lietotaaji SET online='N' WHERE id={$_SESSION['id']}"); unset($_SESSION['id']); session_destroy(); } //quote_smart funkcija function quote_smart($value) { // Stripslashes if (get_magic_quotes_gpc()) { $value = stripslashes($value); } // Quote if not a number or a numeric string if (!is_numeric($value)) { $value = "'" . mysql_real_escape_string($value) . "'"; } return $value; } ?> mby kaads var paliidzeet! Quote Link to comment Share on other sites More sharing options...
Val Posted July 11, 2009 Report Share Posted July 11, 2009 būsi vairākas reizes pievienojis include 'functions.php' kautkur savā kodā. Quote Link to comment Share on other sites More sharing options...
Indian Posted July 11, 2009 Report Share Posted July 11, 2009 vai arī 2 funkcijas ar vienu un to pašu nosaukumu Quote Link to comment Share on other sites More sharing options...
xmas12 Posted July 11, 2009 Author Report Share Posted July 11, 2009 Nē Val bija tasiisniiba, vnk function.php man jau bija index failaa incluudota.. Quote Link to comment Share on other sites More sharing options...
Indian Posted July 11, 2009 Report Share Posted July 11, 2009 Nē Val bija tasiisniiba, vnk function.php man jau bija index failaa incluudota.. nu tas tieshi tev tur tad notika - divas funkcijas ar vienadu nosaukumu tika deklaretas Quote Link to comment Share on other sites More sharing options...
Val Posted July 12, 2009 Report Share Posted July 12, 2009 aber loģiski. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.