What I am trying to do is: I have a table called Stations, and it has 100 columns. I want to select all records from Stations and randomly select 1 record and echo the random record.
Here is what I have got so far:
<?PHP
$connect = mysql_connect("***", "****", "****") or die("Connection Failed");
mysql_select_db("***");
$query = mysql_query("SELECT * FROM Stations ORDER BY RAND() LIMIT 1");
WHILE($rows = mysql_fetch_array($query)):
$Station = $rows['Station1'];///seems it will only show Station1 Column I have Station1 to Station100 was not sure how to add rest of Stations
endwhile;
?>