Jump to content

[SOLVED] Parse Error, strange?


Warptweet

Recommended Posts

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

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";
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.