Jazajay
Active Member
Hay peeps been at it for too long and for the life of me I can't get this to work.
It's like I'm looking at it, it's shouting out at me but I can't see or hear it.
What I want to do is split output from a db at ,<br />. But all I'm getting is nothing, no errors, no warnings no output. Simple I know but I just can't see it and yes the data does have several of them in, 8 to be precise, and the cleaning function is not stripping them out either.
I know I could stick it in a loop but I just want it to work first.
Cheers for any help. It will be appreciated trust me.
Jaz
It's like I'm looking at it, it's shouting out at me but I can't see or hear it.
PHP:
$str=preg_split("/,<br \/>/",cleanUpdate($_GET['update']));
$var1="";$var2="";$var3="";$var4="";$var5="";$var6="";$var7="";$var8="";
if(!empty($str[0])){$var1=ucfirst($str[0]);}
if(!empty($str[1])){$var2=ucfirst($str[1]);}
if(!empty($str[2])){$var3=ucfirst($str[2]);}
...
What I want to do is split output from a db at ,<br />. But all I'm getting is nothing, no errors, no warnings no output. Simple I know but I just can't see it and yes the data does have several of them in, 8 to be precise, and the cleaning function is not stripping them out either.
I know I could stick it in a loop but I just want it to work first.
Cheers for any help. It will be appreciated trust me.
Jaz