:evilgrin: you've got that right!
Thanks for the warm welcome.
You'll be pleased to know I've developed a new strategy for learning - rather than assume within a few days I'll be able to do productive and useful things...I'm just gonna learn my "Teach yourself SQL" manual fully and ignore useful stuff until I'm fully informed! I'm already getting used to writing 'select' lol!
The only difficulty I have is accidentally using a '£' symbol instead of a '$', but I'll get used to it!
As a side note (and going beyond my comfortable knowledge area), I noticed this script that I customised. I'm just a little confused by the odd bracket I've highlighted...I always thought brackets are closed eventually?:
<?
mysql_connect("localhost", "user", "pword") or die(mysql_error[COLOR="Red"]([/COLOR]));
mysql_select_db("dbname") or die(mysql_error[COLOR="Red"][B]([/B][/COLOR]));
$query = "SELECT * FROM staff";
$result = mysql_query($query) or die(mysql_error[COLOR="Red"][B]([/B][/COLOR]));
while($row = mysql_fetch_array($result)){
echo $row['surname']." - ".$row['staffid'];
echo "<br/>";
}
?>
Just a curiousity really!