Re: [PHP] Array not working

2003-02-18 Thread Ernest E Vogelsinger
At 08:45 18.02.2003, Chris Blake said:
[snip]
   //  THIS IS LINE 27
  //print them out to page
  echo $row['ClientID'].['ClientName'].['Distance']. 'hr';
[snip] 

Try

echo $row['ClientID'].$row['ClientName'].$row['Distance']. 'hr';



-- 
   O Ernest E. Vogelsinger
   (\)ICQ #13394035
^ http://www.vogelsinger.at/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Array not working

2003-02-17 Thread Chris Blake
Greetings all,

My database has one table with three fields i.e. ClientID, ClientName
and Distance .

I`m trying to get all the field data printed to a form but whenever I
try to add the ClientID and Distance fields to the code below it
bombs out with the following error :

Parse error: parse error in /home/data/ClientWebs/chrisplay/main.php on
line 27

Full code is below :

?php
  //Connect to DB  
  include(inc_ConnectDB.php) ;

  //Make SQL Statement
  $SqlGetClient = Select * from Client ;
  $ResGetClient = mysql_query($SqlGetClient) ;


  //If any errors then print `em out
  if (!$ResGetClient)
   {
   echo(PError performing query:  . mysql_error() . /P);
 exit();
   }

  //While there are records to fetch.
  while ( $row = mysql_fetch_array($ResGetClient) )
  {
   //  THIS IS LINE 27
  //print them out to page
  echo $row['ClientID'].['ClientName'].['Distance']. 'hr';
  } 
?  

Muchos grassy-arse for any assistance.. 


-- 
Chris Blake
Office : (011) 782-0840
Cell : 083 985 0379
It is reported that somewhere in the world, every 15 seconds, a woman
gives birth to a child. She must be found and stopped.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php