Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $host="localhost"; // Host name
- $username="root"; // Mysql username
- $password="52565"; // Mysql password
- $db_name="web"; // Database name
- $tbl_name="RS"; // Table name
- mysql_connect($host, $username, $password) or die(mysql_error());
- mysql_select_db($db_name)or die(mysql_error());
- $sql="SELECT * FROM $tbl_name WHERE nazev='$stranka'";
- echo $sql;
- $sql = mysql_fetch_array($sql);
- echo $sql;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement