I am using the following line inside my PHP code:
echo"<td><a href='EditAdminRestaurantes.php?id=1' data-ajax='false'><img src='editicon.png' width='31' height='31'></a> </td>";
When the PHP file is called at the browser, the resulting URL is:
http://../EditAdminRestaurantes.php?id=1
What I a need is to change the value after the ?id= param, I need to put there the PHP variable `$row[0], but when I insert the code for that, then the URL is not the expected.
This is my code for that:
echo"<td><a href='EditAdminRestaurantes.php?id='".$row[0]." data-ajax='false'><img src='editicon.png' width='31' height='31'></a> </td>";
And the resulting URL is:
http://../EditAdminRestaurantes.php?id=
Any help is welcome.`
echo $row[0];what does it show?