Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function get_url()
- {
- $host="localhost";
- $user="********";
- $pass="********";
- $db_name="********";
- $link=mysql_connect($host,$user,$pass);
- mysql_select_db($db_name,$link);
- $sql = mysql_query("SELECT * FROM `URL`") or die("Base error");
- $list_url = array();
- while($row = mysql_fetch_array($sql))
- {
- //echo $row['URL'];
- array_push($list_url, $row['URL']);
- }
- return $list_url;
- }
- $a = get_url();
- echo $a[0];
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement