Jump to content

midwestdesignfirm

New Members
  • Posts

    5
  • Joined

  • Last visited

midwestdesignfirm's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I am getting an undefined index that refers to this part of the code: $session_id = $_COOKIE[""]; $action = $_GET['action']; if ($action == "add" && !empty($HTTP_POST_VARS["artid"])) { $artid = $HTTP_POST_VARS["artid"]; do i need to change $HTTP_POST_VARS["artid"]; to $_GET["artid"] Thank you in advance.
  2. Our sys admin upgraded to the most recent version of php and it broke many of our websites that we host. From the research that I have done, Function ereg_replace() is depreciated and no longer works in this version of PHP. originally the line of code was: $bio = ereg_replace("\n", "</p><p>", $row["bio"]); When i change it to: $bio = preg_replace("\n", "</p><p>", $row["bio"]); I get a new error: Warning: preg_replace(): Empty regular expression in/home/....../public_html/filename.php on line 70 what am i missing? Thank you in advance for any assistance.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.