Warptweet Posted March 22, 2007 Share Posted March 22, 2007 I get a Parse Error everytime I try adding this code to my page: $article_num = "1"; include("rate-this.inc.php"); I get this error: Parse error: parse error, unexpected T_STRING in /home/warp/public_html/gm/db-parms.inc.php on line 4 Here is db-parms.inc.php <?php $host = "localhost"; $usr = "warp_gm"; // your database USERNAME $pwd = "abc123"; your database PASSWORD $db = "warp_gm"; // your database name $table = "rate"; // database table name to be used // rating display parameters and images used $num_stars = 10; $oksho = "images/llama.gif"; $semisho = "images/llama-half.gif"; $noksho = "images/llama-no.gif"; ?> Does anyone know whats wrong? :9 Link to comment https://forums.phpfreaks.com/topic/43796-solved-parse-error-strange/ Share on other sites More sharing options...
papaface Posted March 22, 2007 Share Posted March 22, 2007 You havent commented out the line.... should be: <?php $host = "localhost"; $usr = "warp_gm"; // your database USERNAME $pwd = "abc123"; //your database PASSWORD $db = "warp_gm"; // your database name $table = "rate"; // database table name to be used // rating display parameters and images used $num_stars = 10; $oksho = "images/llama.gif"; $semisho = "images/llama-half.gif"; $noksho = "images/llama-no.gif"; ?> Link to comment https://forums.phpfreaks.com/topic/43796-solved-parse-error-strange/#findComment-212617 Share on other sites More sharing options...
Warptweet Posted March 22, 2007 Author Share Posted March 22, 2007 Thank you so much! God, some of you members I wish I could just fit you inside my pocket for help whenever I want Link to comment https://forums.phpfreaks.com/topic/43796-solved-parse-error-strange/#findComment-212625 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.