well, here is the page:
http://www.coachmitchell.com/archives.php
as you can see, the problem is that some of my "text" fields are not showing up.
now it's a database run site - mysql - and the fields that you see may or may not use html - he seems to like flashy colors n what not along with various size fonts etc.
anyway, here's the code - anyone have any ideas as to what my problem is?
/*
one thing to note is that this is in
a if statement, and $q is the keyword
for the archives if there is any,
if not it just uses 0 and 60 as first
and second
*/
//ok there is a q, now count
$counted = strpos(strtolower($text[$i]), $q);
//set first and second to be used
$first = ($counted - 10);
$second = ($counted + 50);
$textd = fix_string(strtolower(remove_html($text[$i])));
$textd = str_replace($q, "<u><b>$q</b></u>", $textd);
echo "<a href=viewarchive.php?id=".$a_id[$i]."&q=$q>
".substr($textd, $first, $second)."</a><br>\n";
edit -
the remove_html() function you see is currently empty (exception of using htmlentities()) - i was gonna use str_replace() to delete all the html tags from the various things - i can't have them getting all weird on me.
anyone have a better way of doing that? the str_replace() idea backfired on me.