Here after the link is worth ?userId for what is it?
<a href="edit_user.php?userId=<?php echo $row["userId"]; ?>" class="link"> <img alt='Edit' title='Edit' src='images/edit.png' width='15px' height='15px' hspace='10' /> </a> Here after the link is worth ?userId for what is it?
<a href="edit_user.php?userId=<?php echo $row["userId"]; ?>" class="link"> <img alt='Edit' title='Edit' src='images/edit.png' width='15px' height='15px' hspace='10' /> </a> Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .
php.net - An associative array of parameters passed to the script via a URL.
Example # 1 Example of using $ _GET
<?php echo 'Привет ' . htmlspecialchars($_GET["name"]) . '!'; ?> It is assumed that the user has entered the address http://example.com/?name=Hannes in the browser
The result of running this example will be something like this:
Привет Hannes!
This is passed to the get parameter userId (user id to be edited)
Read some article about http protocol, namely about GET parameters. for example , wiki
Source: https://ru.stackoverflow.com/questions/571048/
All Articles