Parse error: syntax error, unexpected T_ELSE in /srv/www/vhosts/xn--szkoagm-qjb.pl/httpdocs/userbar/index.php on line 44
szukałem ale nie umie znaleźć błędu;/
<? { include_once("config.php"); include_once("core/dbsimple/Generic.php"); include_once("core/player_data.php"); $cDB = DbSimple_Generic::connect($config["cdb"]); $cDB->setErrorHandler('databaseErrorHandler'); $cDB->query("SET NAMES ?",$config["db_encoding"]); $row = $cDB->selectRow("SELECT * FROM `characters` WHERE `name`=? ",$charname); $host = "http://www.yourhost.com/userbar"; // Change this to your host $url = $host.$dir.$row['name'].".png"; $urlm = $host.$dir."mini/".$row['name'].".png"; $reset = $host.$dir; echo ' <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr><td> <div align="center"> <img src="'.$url.'"><br /> <table> <tr><td width="180px">Userbar:</td><td><input type="text" style="width:400px;text-align:center" value="'.$host.'/userbar/ub.php?name='.$charname.'"></td></tr> <tr><td width="180px">Userbar (Forum Link):</td><td><input type="text" style="width:400px;text-align:center" value="[img]'.$url.'[/img]"></td></tr> </table><br /> <img src="'.$urlm.'"><br /> <table> <tr><td width="180px">Mini Userbar:</td><td><input type="text" style="width:400px;text-align:center" value="'.$host.'/userbar/ub_mini.php?name='.$charname .'"></td></tr> <tr><td width="180px">Mini Userbar (Forum Link):</td><td><input type="text" style="width:400px;text-align:center" value="[img]'.$urlm.'[/img]"></td></tr> <tr align="center"><td colspan="2"><br /><input type="submit" value="Submit" onclick="java script:location.href='.$host.'"></td></tr> </table> </div> </div> </td></tr></table> '; }else{ echo ' <b>Put in the caracter name to get the links to the generated avatar and signature:</b><br><br> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251"> <FORM ACTION="" METHOD="GET"> <input type="hidden" name="page" value="10" /> <INPUT name="name" TYPE="text"> <INPUT TYPE="submit" VALUE="Find Character"> </FORM> <br> <HR>'; ?>