The code I have tried is:
while ($row = mysql_fetch_array($query)) {
echo "<img src='images/pigs/".$row['id'].".jpg' alt='' border='0' class='floatLeft' /> "
"<strong>Name: </strong> ".$row['name'].
"<br/> <strong>Sex: </strong> ".$row['sex'].
"<br/> <strong>Age: </strong> ".$row['age'].
"<br/> <strong>Added On: </strong> ".$row['added'].
"<br/> <strong>Colour: </strong>".$row['colour'].
"<br/> <strong>Details: </strong>".$row['details'].
" ";
"<br/>"
;}
which just gives me the error "Parse error: parse error, expecting `','' or `';'' in C:\wamp\www\pigs2\details.php on line 38"
the code for line 38 is:
"<strong>Name: </strong> ".$row['name'].
I've tried several slight variations of the code, but can only seem to get it working when I just use the image OR just the information.
I'm not too sure what you mean by
All of the image files will be named using the id field (primary) in the database, at the moment I only have a small number of records for the building and testing process.