e-mazed Posted February 17, 2012 Share Posted February 17, 2012 Link to comment Share on other sites More sharing options...
Paul Swanson Posted February 17, 2012 Share Posted February 17, 2012 (Phew, that was a lot of scrolling to get to the reply area! ) Your error is occurring because you haven't connected to the database yet. $dbc is the database connection link, which is required parameter of mysqli_real_escape_string(). Link to comment Share on other sites More sharing options...
e-mazed Posted February 17, 2012 Author Share Posted February 17, 2012 Ok i will take a look - strange as though my registration page works fine and connects to the database, i will go through the files again looking for it Link to comment Share on other sites More sharing options...
Paul Swanson Posted February 17, 2012 Share Posted February 17, 2012 You have to include the connection script or code on every page that uses it. That's because web pages are stateless. You either have to pass data from one page to the next, or store it on one page and retrieve it on the next. Link to comment Share on other sites More sharing options...
e-mazed Posted February 17, 2012 Author Share Posted February 17, 2012 Paul thanks so much - I hate to bother you with an other error but its saying that i have issues with TZ timezone, I don't believe anywhere in the book we addressed this...thxs a million It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PST/-8.0/no DST' instea Link to comment Share on other sites More sharing options...
Jonathon Posted February 17, 2012 Share Posted February 17, 2012 in your config put date_default_timezone_set('supported time zone goes here'); http://www.php.net/manual/en/timezones.php Link to comment Share on other sites More sharing options...
Recommended Posts