Answer the question
In order to leave comments, you need to log in
How to get variable from url?
There is a url site.ru/fox
Tell me
how to display all the data from the database in php where id = fox?
More specifically, how to get the value of (fox)?
Answer the question
In order to leave comments, you need to log in
select * from 'table name' where id='fox' PHP
documentation will help you further
In the root of the site in the .htaccess file you write this
RewriteEngine on
RewriteRule ^/([^/]+)/?$ index.php?id=$1 [L,QSA]
"SELECT * FROM users WHERE id=".$_GET['id']
People, are you serious? Did everyone forget about SQL injections?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question