Stumping Sql query... - Page 2

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

Re: Stumping Sql query...

Quoted text here. Click to load it

Sure. Here's the modified code:

  $value[0] = trim($value[0]);
  echo "|$value[0]|<BR>";
  $query="SELECT * FROM ImageList WHERE Name='$value[0]'";
  echo $query."<BR>";
  $result=mysql_query($query) or die(mysql_error());
  if ($result) { $InContext=mysql_fetch_assoc($result); echo
"|$InContext|<BR>"; }

It prints
SELECT * FROM ImageList WHERE Name='MaceTraverse'

Quoted text here. Click to load it

|<WBR>Mace<WBR>Traverse|<BR>SELECT * FROM ImageList WHERE

Well, I guess you nailed it. I don't know what those <WBR> are doing there,
but they have no business in my nice query !!!

Thanks Rik and Co.
Guillaume Dargaud

Site Timeline