troubleshooting Question

Error when modifying the link

Avatar of Ahmad Jaber
Ahmad JaberFlag for Côte d'Ivoire asked on
12 Comments1 Solution25 ViewsLast Modified:

Hello and happy new year everyone!

Another question on security.

Everything works fine when I access my page:


but if I try to modify like this:


There I am faced with this error:

Note: Convert table to string in ... / titles.php on line 31

Here is my code and line 31 is $SEL->execute(array("key" => $key));

      $key = $_GET['key'];
      $sql = "SELECT * FROM tab_produits WHERE libelle_tag = :key";
      $SEL = $pdo->prepare($sql, array(PDO::ATTR_CURSOR => PDO::CURSOR_FWDONLY));
      $data = $SEL->fetch(PDO::FETCH_ASSOC);
      if($SEL->rowCount() != 0) {
         echo $data["libelle_".LANGUE]." - ".$data["contenance_".LANGUE].$MaLang;
      } else {
         echo NOS_RECOMMANDATIONS.$MaLang;

I specify that the modification of the link in the browser is to test the reliability of the code.

Can you help me solve and understand the problem please?

thanks in advance

Join our community to see this answer!
Unlock 1 Answer and 12 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 12 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros