another silly newbie question
i want to select the table date from one of my databases, and am not exactly sure how to work it. i was going to adapt this query to do it.
Code: Select all
<?php
mysql_connect("localhost","database","password");
$query1 = "SELECT * FROM table WHERE username='$login' and password='$password'";
$result1 = mysql_db_query(database,$query1);
while($row = mysql_fetch_object($result1))
;
}
?>Code: Select all
<?php
mysql_connect("localhost","database","password");
$query1 = "SELECT date FROM maintenance";
$result1 = mysql_db_query(radius,$query1);
while($row = mysql_fetch_object($result1))
;
}
?>here is my database structure
database is called radius, the tables in there i need is manitenance and the field i need from there is called date.
be great if some one could help
o and there are no special perameters, i just want it to be dispalyed all the time whether ure logged in or not.