key_uk wrote:
but when I go and search for something now, it returns a blank page.
Do you have error_reporting turned on in php.ini (or in the script)? Ask Google about error_reporting and display_errors. It should be turned on only on development machine - not the real server. Also, do you use "or die(mysql_error())" while running your query? If not, do it - [man]mysql_error[/man] (development as well).
key_uk wrote:
and for the cdinformation.php I have Im abit stuck, how would I echo each song? and is there anything else I need to add to this page?
It depends on how you store information on songs in a given cd.
<?
mysql_connect("*******", "*******", "*******") or die(mysql_error());
mysql_select_db("*******") or die(mysql_error());
if (isset($_GET['cd_id']))
{
//definitely lacks mysql_query here
//and another while loop with mysql_fetch_array
echo $result['cd_song'];
}
else
{
echo "No cd specified";
}
?>
The query should look similar to
SELECT track_name, track_artist, track_number FROM tracks WHERE cd_id = 'id_from_get' ORDER BY track_number
In the above example only words in capital letter are SQL, other words are names of columns and tables (id_from_get must be replaced with data from GET processed by mysql_real_escape_string) which almost for sure are different in your database.