Parse error: syntax error, unexpected T_STRING, expecting ‘,’ or ‘;’ in D:\Hosting\5209817\html\members.php on?

Question by : Parse error: syntax error, unexpected T_STRING, expecting ‘,’ or ‘;’ in D:\Hosting09817\html\members.php on?
I’m getting a Parse error: syntax error, unexpected T_STRING, expecting ‘,’ or ‘;’ in D:\Hosting09817\html\members.php on line 24. This is the file: // Connects to your Database
mysql_connect("host",

"user", "password") or die(mysql_error());
mysql_select_db("database") or die(mysql_error());

//checks cookies to make sure they are logged in
if(isset($ _COOKIE['ID_my_site']))
{
$ username = $ _COOKIE['ID_my_site'];
$ pass = $ _COOKIE['Key_my_site'];
$ check = mysql_query("SELECT * FROM users WHERE username =

'$ username'")or die(mysql_error());
while($ info = mysql_fetch_array( $ check ))
{

//if the cookie has the wrong password, they are taken to the

login page
if ($ pass != $ info['password'])
{ header("Location: login.php");
}

//otherwise they are shown the admin area
else
{
echo "

Secret Soccer Page

“;
echo “

action="http://poll.pollcode.com/kAdf">

width="500" style="background-

color:#EEEEEE;color:#000000;font-family:'Verdana';font-

size:13px;" cellspacing="0" cellpadding="2">

bgcolor="white" colspan="2" align="right">

color="black">pollcode.com free

polls

Who is

the funniest guest star?

align="center" style="padding:2px;">

name="answer" value="1">Amanda

name="answer" value="2">Mexdude

name="answer" value="3">Lacy

value="Vote">  

value="View">

“;
echo “
Welcome to the Secret Soccer Page! This page will

give you up to date (hopefully) live streams from teams such

as Besiktas JK (Turkey), Chicago Fire (USA), and other popular

ones such as Barcelona and others.”;
echo “
Go to home page”;
echo “Logout’;
}
}
}
else

//if the cookie does not exist, they are taken to the login

screen
{
header(“Location: login.php”);
}
?>
now i got Parse error: syntax error, unexpected T_ECHO, expecting ‘,’ or ‘;’ in D:\Hosting09817\html\members.php on line 25
i deleted the post that someone told me wasn’t php

Best answer:

Answer by roybob00
You have an unterminated string constant. That’s why it’s asking for “;” When you use echo, you start the string with a quotation mark. You ended it with your first instance of the quotation mark, just after method=. You will need to escape all quotation marks \” in order for the parser to recognize it as a valid PHP string.

Know better? Leave your own answer in the comments!

How can I use add-on domain feature in Cpanel to show my website?

Question by stupidity: How can I use add-on domain feature in Cpanel to show my website?
Hi, since the add-on domain shows up on the public_html of my site, where is the “public_html” area of my add on domain?

What I can see inside are only 2 directories:website and cgi.bin. Any help would be really appreciated thanks!

Best answer:

Answer by jack
Dose the version of Cpanel your using not have a menu or GUI?

What version of Cpanel are you using?

Know better? Leave your own answer in the comments!

CPanel Addon Domains: Host Multiple Domains on One Host

www.weberinternetmarketing.com Here is how to easily add an addon domain in your cPanel hosting such as with HostGator. With it you can host unlimited domains with just one hosting account. It’s easy to do and from the outside, including the search engines, there is no difference than having multiple shared hosting accounts. From an SEO point of view, addons are no less or more effective than multiple shared hosts.

ASP.NET Free Hosting pt3

Ok…this video i will get the database on the form and test it out before we deploy it later on…not soo well at first but i think i got it. Also i will modify the connection string so our data can be accessed via the internet…Enjoy :=)

Setting email accounts in Cpanel-WHM Hosting – cpanel video Series 3

Setting email accounts in Cpanel-WHM Hosting – cpanel video Series 3. visit www.resalefactory.com for free gold membership and download fresh stuff with resale and private label rights.
Video Rating: 0 / 5

Host Dry Carpet SPOT REMOVER 8 FL OZ NEW SHIPS FREE

Free blog with purchase of Hostgator .01 cent first month hosting 100 adsense
US $0.01 (1 Bid)
End Date: Tuesday Feb-07-2012 13:00:29 PST
Bid now | Add to watch list

Free blog with purchase of Hostgator .01 cent first month hosting 100 adsense
US $0.01 (1 Bid)
End Date: Tuesday Feb-07-2012 15:00:40 PST
Bid now | Add to watch list

FREE Domain coupon with Unlimited Web Hosting!
US $0.10 (0 Bid)
End Date: Tuesday Feb-07-2012 16:12:03 PST
Buy It Now for only: US $0.99
Bid now | Buy it now | Add to watch list

Why does the cpanel backup script cause “2006 – MySQL server has gone away” error?

Question by : Why does the cpanel backup script cause “2006 – MySQL server has gone away” error?
Every single night the cpbackup.pl causes the MySQL server to stop working. I get

2006 – MySQL server has gone away
Why does Cpanel/WHM cause this? How can I fix this?

Best answer:

Answer by Charlie Åström
Make sure none of your databases are corrupt. In WHM goto SQL Services / Repair a Database and repair them all.

If you send a query (specially via compressed packets) to the server that is larger than the max_allowed_packet, it drops the connection without providing a good error message. A packet too large is handled the same way as a bogus packet – there’s no knowing if the connection is still good or what is going on, so the easiest way for the server is just to drop the connection and move along.

The easy way to avoid this problem is to ensure that max_allowed_packet is set bigger in the mysqld server than in the client and that all clients uses the same value for max_allowed_packet.

Increase the value of max_allowed_packet at the server level to 128M. You add this line in your my.cnf file:
set-variable = max_allowed_packet=128M

Add your own answer in the comments!

Unmetered MASTER Reseller Hosting $4.99 Monthly WHM cPanel Zamfoo

Unmetered Alpha Master Reseller Hosting $8.99 Monthly WHM cPanel Zamfoo
US $4.99 (0 Bid)
End Date: Sunday Feb-05-2012 17:02:18 PST
Buy It Now for only: US $8.99
Bid now | Buy it now | Add to watch list

PARKER WATTS FLUID AIR PNEUMATIC LUBRICATOR L60612WHM8
US $159.99
End Date: Sunday Feb-05-2012 18:16:18 PST
Buy It Now for only: US $159.99
Buy it now | Add to watch list

AC Adapter Supply Cord for IBM 02K6673 92P1025 WHM
US $14.61
End Date: Monday Feb-06-2012 7:14:25 PST
Buy It Now for only: US $14.61
Buy it now | Add to watch list

Sign up for a free hosting plan with FreeHostia.com

See how you can sign-up for a free hosting account with FreeHostia.com, the Chocolate plan: freehostia.com . With FreeHostia’s Chocolate plan you get all this for free: 250 MB disk space, 6 GB bandwidth, 3 POP3/IMAP E-mails, 1 MySQL Database, 10 MB Dabase space, 1-click Script Installs (Joomla, Wordpess, XOOPS, phpBB and many more). And there are no forced ads.
Video Rating: 4 / 5