On 11-Jun-01 Vladimir Kravtsov wrote:
> <html>
> <head>
> <body>
> <?php require('../common.php');
> connectdb();
> mysql_select_db(xtopsites);
> $validated=1;
> $sql = "select id, siteurl, sitename, from sitesats where validated =
> "$validated""; // Line 8
^ ^ - escape your quotes, \"$validated\";
change to single quotes, '$validated'; or
since it's numeric, drop the quoting altogether.
>
> When I run this I get: Parse error: parse error in
> c:\inetpub\wwwroot/php/X-TopSites/admin/admin.php on line 8
> I want it to select the id, siteurl, sitename (in a table called sitesats)
> of any site which is not validated (I made it so validated=1 and not
> validated=2)
>
> What's wrong here?
> Thanks alot :)
>
>
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php