The Little Guy
11-05-2006, 08:37 PM
Here is what I currently have:
$sql2 = mysql_query("SELECT * FROM images WHERE user_id='$_SESSION[id]'")or die(mysql_error());
$row2 = mysql_fetch_array($sql2);
print_r(explode("", $row2['image_name'], -1));
I am searching the DB for the image names, and then putting them into an array. Once I get that done, I will switch out print_r with a variable, then I will save that variable into a session. But right now I am getting this error I don't know what it means:
Warning: explode() [function.explode]: Empty delimiter. in C:\Program Files\xampp\htdocs\portfolio\check_login.php on line 16
$sql2 = mysql_query("SELECT * FROM images WHERE user_id='$_SESSION[id]'")or die(mysql_error());
$row2 = mysql_fetch_array($sql2);
print_r(explode("", $row2['image_name'], -1));
I am searching the DB for the image names, and then putting them into an array. Once I get that done, I will switch out print_r with a variable, then I will save that variable into a session. But right now I am getting this error I don't know what it means:
Warning: explode() [function.explode]: Empty delimiter. in C:\Program Files\xampp\htdocs\portfolio\check_login.php on line 16