Ok, I'm using php and mysql. I have the mysql table and the php page connected and I'm trying to run this query: $query="SELECT * FROM users WHERE ID = $username AND Password = $password"; The aim is to search the table users for cases where ID matches with a variable called $username, and where Password matches a variable called $password - but I have evidence that it's coming back with 0 results. I guess it thinks i'm looking for cases where ID is "$username" and Password is "$password", so how do i write a select statement where it looks for the contents of variables?
Also does anyone know any code in either php or html to make a hyperlink/button that displays the source code of the site?
Also does anyone know any code in either php or html to make a hyperlink/button that displays the source code of the site?