NurAzije Posted August 11, 2009 Share Posted August 11, 2009 Hi all,I am trying to bind a non-Latin parameter in a prepare statement but I can not get it work, here is my code: $db_connection = new mysqli("localhost", "user", "dbpass", "dbname"); $statement = $db_connection->prepare("SELECT sometext FROM pages WHERE url = ?"); $url = "čćšđž"; $statement->bind_param("s", $url); $statement->execute(); $statement->bind_result($sometext); $statement->fetch(); $statement->close(); print $sometext; Even id I have this record in the DB, it returns me nothing. When I use the same query on phpMyAdmin it works.Can anyone help please? Link to comment Share on other sites More sharing options...
This topic is now archived and is closed to further replies.