drastixnz Posted March 22, 2007 Share Posted March 22, 2007 I have this error Parse error: parse error, unexpected T_STRING in /var/www/html/egroupware/cds/conex.php on line 21 In line 21 which is in read below Help please. what is the problem??? <?php /******************************************************************************\ * CDS-PhP 3.0 * * http://cdsphp.sourceforge.net * * This file written by Pablo Capeluto <pcapeluto@gmail.com> * * MSN: pcapeluto@hotmail.com * * Montevideo Uruguay * * -------------------------------------------- * * This program is free software; you can redistribute it and/or modify it * * under the terms of the GNU General Public License as published by the * * Free Software Foundation; either version 2 of the License, or (at your * * option) any later version. * * Spanish to Engilsh Translation Paul Dracevich pdracevich@gmail.com * \******************************************************************************/ ?> <?php function Conectarse() { if (!($link=mysql_connect("10.1.1.4","egroupware",""egroupware""))) { echo "Error connecting to the data base."; exit(); } if (!mysql_select_db("serviceEstructura",$link)) { echo "Error selecting the data base."; exit(); } return $link; } # Datos de la empresa que usa el software. $miEmpresa="IDE.net Grupo Informático"; $miDireccion="Galería del Libertador Local 28"; $miTelefono="096 705869"; $miCorreo="service@idegi.com"; $miSlogan="Grupo informático"; $miLogo="logo.jpg"; ?> Quote Link to comment Share on other sites More sharing options...
btherl Posted March 22, 2007 Share Posted March 22, 2007 You have two double quotes around "egroupware". Try: if (!($link=mysql_connect("10.1.1.4","egroupware","egroupware"))) Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted March 22, 2007 Share Posted March 22, 2007 You have too many quotes around the second 'egroupware'. Ken Quote Link to comment Share on other sites More sharing options...
drastixnz Posted March 22, 2007 Author Share Posted March 22, 2007 Thank you all *A newbie mistake once again* Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.