<?php
$conn = mysql_connect('localhost', 'mysql_user', 'mysql_password');
if (!$conn) {
die('Could not connect: ' . mysql_error());
}
mysql_select_db('database');
$result = mysql_query('select URL from table');
if (!$result) {
die('Query failed: ' . mysql_error());
}
echo mysql_result($result, 0); // outputs
mysql_close($conn);
?>
0
solved How to get a particular cell from MySQL table using PHP? [closed]