Ryan Barr
12-06-2004, 08:27 PM
Ok, I have this error on a open source thing I am coding. When setting up a new staff/admin user with the quick-form, it doesn't ask for name or e-mail. So when it is displayed in another table, it has name, username, and e-mail.
So the table is all distorted because name and e-mail are blank.
So I used this...
$er1 = $Show[First];
echo ereg_replace("", "N/A", $er1);
$er2 = $Show[Last];
echo ereg_replace("", "N/A", $er2);
$er3 = $Show[Email];
echo ereg_replace("", "N/A", $er3);
to replace the blank with N/A.... but then I get this error...
Warning: ereg_replace(): REG_EMPTY in /home/blizter/public_html/demo/shells/shell_salist.php on line 157
Warning: ereg_replace(): REG_EMPTY in /home/blizter/public_html/demo/shells/shell_salist.php on line 159
Warning: ereg_replace(): REG_EMPTY in /home/blizter/public_html/demo/shells/shell_salist.php on line 161
Warning: ereg_replace(): REG_EMPTY in /home/blizter/public_html/demo/shells/shell_salist.php on line 157
Warning: ereg_replace(): REG_EMPTY in /home/blizter/public_html/demo/shells/shell_salist.php on line 159
Warning: ereg_replace(): REG_EMPTY in /home/blizter/public_html/demo/shells/shell_salist.php on line 161
Warning: ereg_replace(): REG_EMPTY in /home/blizter/public_html/demo/shells/shell_salist.php on line 157
Warning: ereg_replace(): REG_EMPTY in /home/blizter/public_html/demo/shells/shell_salist.php on line 159
Warning: ereg_replace(): REG_EMPTY in /home/blizter/public_html/demo/shells/shell_salist.php on line 161
Warning: ereg_replace(): REG_EMPTY in /home/blizter/public_html/demo/shells/shell_salist.php on line 157
Warning: ereg_replace(): REG_EMPTY in /home/blizter/public_html/demo/shells/shell_salist.php on line 159
Warning: ereg_replace(): REG_EMPTY in /home/blizter/public_html/demo/shells/shell_salist.php on line 161
Warning: ereg_replace(): REG_EMPTY in /home/blizter/public_html/demo/shells/shell_salist.php on line 157
Warning: ereg_replace(): REG_EMPTY in /home/blizter/public_html/demo/shells/shell_salist.php on line 159
Warning: ereg_replace(): REG_EMPTY in /home/blizter/public_html/demo/shells/shell_salist.php on line 161
Warning: ereg_replace(): REG_EMPTY in /home/blizter/public_html/demo/shells/shell_salist.php on line 157
Warning: ereg_replace(): REG_EMPTY in /home/blizter/public_html/demo/shells/shell_salist.php on line 159
Warning: ereg_replace(): REG_EMPTY in /home/blizter/public_html/demo/shells/shell_salist.php on line 161
Warning: ereg_replace(): REG_EMPTY in /home/blizter/public_html/demo/shells/shell_salist.php on line 157
Warning: ereg_replace(): REG_EMPTY in /home/blizter/public_html/demo/shells/shell_salist.php on line 159
Warning: ereg_replace(): REG_EMPTY in /home/blizter/public_html/demo/shells/shell_salist.php on line 161
how do I replace a empty variable with N/A? hopefully using the ereg_replace or similar function?... thanks for any help
So the table is all distorted because name and e-mail are blank.
So I used this...
$er1 = $Show[First];
echo ereg_replace("", "N/A", $er1);
$er2 = $Show[Last];
echo ereg_replace("", "N/A", $er2);
$er3 = $Show[Email];
echo ereg_replace("", "N/A", $er3);
to replace the blank with N/A.... but then I get this error...
Warning: ereg_replace(): REG_EMPTY in /home/blizter/public_html/demo/shells/shell_salist.php on line 157
Warning: ereg_replace(): REG_EMPTY in /home/blizter/public_html/demo/shells/shell_salist.php on line 159
Warning: ereg_replace(): REG_EMPTY in /home/blizter/public_html/demo/shells/shell_salist.php on line 161
Warning: ereg_replace(): REG_EMPTY in /home/blizter/public_html/demo/shells/shell_salist.php on line 157
Warning: ereg_replace(): REG_EMPTY in /home/blizter/public_html/demo/shells/shell_salist.php on line 159
Warning: ereg_replace(): REG_EMPTY in /home/blizter/public_html/demo/shells/shell_salist.php on line 161
Warning: ereg_replace(): REG_EMPTY in /home/blizter/public_html/demo/shells/shell_salist.php on line 157
Warning: ereg_replace(): REG_EMPTY in /home/blizter/public_html/demo/shells/shell_salist.php on line 159
Warning: ereg_replace(): REG_EMPTY in /home/blizter/public_html/demo/shells/shell_salist.php on line 161
Warning: ereg_replace(): REG_EMPTY in /home/blizter/public_html/demo/shells/shell_salist.php on line 157
Warning: ereg_replace(): REG_EMPTY in /home/blizter/public_html/demo/shells/shell_salist.php on line 159
Warning: ereg_replace(): REG_EMPTY in /home/blizter/public_html/demo/shells/shell_salist.php on line 161
Warning: ereg_replace(): REG_EMPTY in /home/blizter/public_html/demo/shells/shell_salist.php on line 157
Warning: ereg_replace(): REG_EMPTY in /home/blizter/public_html/demo/shells/shell_salist.php on line 159
Warning: ereg_replace(): REG_EMPTY in /home/blizter/public_html/demo/shells/shell_salist.php on line 161
Warning: ereg_replace(): REG_EMPTY in /home/blizter/public_html/demo/shells/shell_salist.php on line 157
Warning: ereg_replace(): REG_EMPTY in /home/blizter/public_html/demo/shells/shell_salist.php on line 159
Warning: ereg_replace(): REG_EMPTY in /home/blizter/public_html/demo/shells/shell_salist.php on line 161
Warning: ereg_replace(): REG_EMPTY in /home/blizter/public_html/demo/shells/shell_salist.php on line 157
Warning: ereg_replace(): REG_EMPTY in /home/blizter/public_html/demo/shells/shell_salist.php on line 159
Warning: ereg_replace(): REG_EMPTY in /home/blizter/public_html/demo/shells/shell_salist.php on line 161
how do I replace a empty variable with N/A? hopefully using the ereg_replace or similar function?... thanks for any help
