I just cannot get this solved and after way too much time on this, I'm here for help.
Here's my code snippet:
while ($row = mysql_fetch_assoc($result)) {
$domain = $row["domain"];
$domainwww = "www.".$domain;
//$domainwww = "www.google.com";
$sql2 = "SELECT url_id, url
FROM urls
WHERE url='".$domainwww."'";
My problem is that my query $sql2 returns no rows when I have $domainwww set to:
$domainwww = "www.".$domain;
[when I echo $domainwww is prints just fine]
However if I comment that out to hard code the value of $domainwww like:
$domainwww = "www.google.com";
The query works just fine. What am I missing?
thank you. Jeff