Hi Roman,
I'm not sure if I understand what you want to do - but if you try to set
your PHP-Variable with JavaScript it couldn't work.
JavaScript is Clientside interpreted and PHP is Serverside interpreted, that
means your PHP-Code is done before the JavaScript-Code.
So the Webserver reads your $color Variable and sees that it is set to
"<script><!--document.write(screen.colorDepth) file://--></script>"
This value is obviously not in your database. Then the Webserver sends the
resulting HTML to your browser.
> $color = "<script><!--
> document.write(screen.colorDepth)
> file://-->
> </script>";
>
> $query = mysql_query("select id from color where color = '$color' ");
> $a = mysql_num_rows($query);
Greetings
Kristin Schesonka
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php