View Single Post
Old 01-25-2004, 01:15 PM   #2 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,726
redhead is on a distinguished road
Exclude a string ??
Something like:
Code:
$text = "";
$res = mysql_query("SELECT * FROM some_table WHERE (id = \"$SOME_ID\")", $DB_LINK);
while($row = mysql_fetch_array($res))
  $text .= str_replace("some text", "", $row);
mysql_free_result($res);
echo $text;
Or are you thinking more in the terms of only selecting items, where the text is not pressent ?
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote