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 <[email protected]> * * MSN: [email protected] * * 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 [email protected] * \******************************************************************************/ ?> <?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="[email protected]"; $miSlogan="Grupo informático"; $miLogo="logo.jpg"; ?> Link to comment https://forums.phpfreaks.com/topic/43779-solved-parse-error-parse-error-unexpected-t_string/ 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"))) Link to comment https://forums.phpfreaks.com/topic/43779-solved-parse-error-parse-error-unexpected-t_string/#findComment-212554 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 Link to comment https://forums.phpfreaks.com/topic/43779-solved-parse-error-parse-error-unexpected-t_string/#findComment-212555 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* Link to comment https://forums.phpfreaks.com/topic/43779-solved-parse-error-parse-error-unexpected-t_string/#findComment-212563 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.