Jump to content

Ads

Members
  • Posts

    162
  • Joined

  • Last visited

    Never

About Ads

  • Birthday 02/19/1992

Contact Methods

  • MSN
    trail_of_nightmare@hotmail.com

Profile Information

  • Gender
    Male
  • Location
    Adelaide, Australia

Ads's Achievements

Member

Member (2/5)

0

Reputation

  1. Ads

    PHP notice

    I just want to get rid of it The most easy and painless way possible
  2. Ads

    PHP notice

    For this particle example I have a lot of variables, as it is a flag system for the members. Do i have to code each Variable in, or is there an easier way to do it.
  3. Ads

    PHP notice

    Hey I updated my WAMP server the other day and I am getting al of these Errors now. Notice: Undefined variable: ac in C:\wamp\www\xxxxx\newupdates.php on line 15 And there is about 25 of them on one page, and they are all over the place. Undoubtly it is my poor coding, but how come it never showed up before, and the site itself still works. Any help would be great, I basically wont to get rid of these
  4. >.< I meant Script Sorry, not string. Apparently I fail at spelling. I have however checked all my Database links and they are all working as they should be.
  5. Its only since I added the Remember Me Feature and altered the Log in string that it has had an issue with Sessions. I did have output_buffering turned on, after turning it off, and running the code locally, it still works but takes a lot longer to load, not sure if that is a sign of anything. I added that code in, and it didn't seem to show anything up.
  6. I have a Login Script with a Remember me Function. The Script works flawlessly on my local server but when I upload it doesn't work on my web server. From what I can tell its a Session issue, When I log in, I make a session with the user ID, in which is used to pull all there information on other pages. On my local host it makes the sessions and everything is dandy, but on the web server it doesn't seem to make the session. Can anyone shed any light on this, I'm clueless once again
  7. Ads

    PHP setcookie

    Thanks for your Help, once again you have saved me for a nightmare of over looking the simple facts. I was adding A style Sheet and an Apple icon in the Config file, Which the Cookie setting didn't like, It seems to all work now, Thanks
  8. Ads

    PHP setcookie

    When I try and set the cookie on the Server I get this Error: Warning: Cannot Modify header information - headers already sent by (output started at /home2/*******/Public_html/config.php:3) in /home2/*******/public_html/authenticate.php on line 58 Line 3 of COnfig.php is just an Open php tag. and Line 58 of Authenticate is the setcookie command. I echoed out the $_POST['rem'] and $mem['userid'] both come out as the values that they should. When I run it Locally it sets the cookie with the right value, when run on the server it doesn't set anything.
  9. Hey Guys, I am trying to set a cookie so that when I registered user returns it Auto Logins them in. I am able to accomplish this on my Local server but as Soon as I upload to a web server to test it, it doesn't work. Is anyone able to shed some light on this for me. $usass = $mem['userid']; if (isset($_POST['rem'])) { $year = 3600*24*365; setcookie ("id" , "$usass", time()+$year); } if the code for setting the cookie, and the code for checking the cookie is Below if(isset($_COOKIE['id'])) { $_SESSION['userid'] = $_COOKIE['id']; print "<script>"; print " self.location='loggedin.php';"; // Comment this line if you don't want to redirect print "</script>"; }
  10. Worked Perfectly, Thanks
  11. Is there a way to Reset a Database Field to its defualt value, using php? I want to be able to do this without Manually setting the number I want to field to update to?
  12. Ah Sorry. $id = $_REQUEST['id']; $db = mysql_query("SELECT * from weps where id=$id"); $a=mysql_fetch_array($db); Name: <input type='text' name='name' value=$a[name]>
  13. I am Pulling the name of an item from the Database into a Text Field, However if the name from the Database is more than one word it only Displays the First word and Curts off the Rest of the words. Do i need to add a PHP Command to tell it to not do this?
  14. Ads

    User Location

    Sadly that did not work, I think the Problem Lies with the global $page; As if i set page to equal anything right above the sql statment it works fine.
×
×
  • 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.