Skip to content
WJunction - Webmaster Forum

What is wrong with this code?

Status
Not open for further replies.
I have these 2 lines in my code,
PHP:
$getTotalHosts = mysql_query("SELECT * FROM mirror WHERE uid = '$file_id'")  or die(mysql_error());
$getCompleteHosts = mysql_query("SELECT * FROM mirror WHERE uid = '$file_id'" and status in (2,3)) or die(mysql_error());

I get in the error_log these error:
PHP Parse error: syntax error, unexpected T_STRING in /home/username/public_html/domain.com/complete.php on line 25

Line 25 is the $getCompleteHosts..
Somebody please can tell me where is the mistake?

Regards.
 

2 comments

PHP:
$getCompleteHosts = mysql_query("SELECT * FROM mirror WHERE uid = '$file_id' AND status IN (2,3)") or die(mysql_error());
 
Status
Not open for further replies.

About the author

C
Senior Member · Joined
1,005
Messages
11
Reactions
38
Points
Grow your business

Advertise on WJunction

Connect with an established international community of webmasters, hosting providers, developers and online entrepreneurs.

  • Premium & Premium+ Sticky
  • Dedicated section banners
  • Site-wide banner advertising
Explore advertising options
Back
Top Bottom