hi there,
i'm trying to set up a page to display the following info: name, relationship, image name, img align, description, and a personal quote. not all of the fields will have entries (specifically description and quote), and i have a couple of ifs set up to keep them out. i can keep description out, but quote is causing problems. an example of the txt file i'm using (i'm working on the mysql later) is as follows:
name;rel;img;align;description;quote
name;rel;img;align;description;quote
with line breaks to separate. here's the if i'm using (it's not great, i know):
$quote = eregi_replace("\n", " ", $quote);
/* make sure there's a quote */
if( $quote != "" && $quote != " \n" ) {
print("<p class=\"quote\">\"$quote\"</p>");
} else {
print(" ");
}
i'm not sure if i'm just missing something simple, or if i should try something else altogether... i'm not sure if it's a line break, or something else. i've tried isset() too, and it still wouldn't work. thanks.
[dave]