The problem was that I did not have php4-mysql package installed.
I know this because I used synaptic package manager (type synaptic at the command line) which showed that php4-mysql was not installed.
I installed this and phpmyadmin works
I did not follow your advice falco - I did not need to edit the php.ini file.
But thanks anyway.