Jump to content

redcore

New Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Male
  • Location
    Central California

redcore's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. You could use a session variable... $_SESSION['lastpage'] = $_SERVER['PATH_INFO'];
  2. Yeah, it's sort of odd, I guess. I pass a string of field names ("tableA, tableB, tableC") to a query builder that returns the result in an array (automated). The downside is that is there's no opportunity to modify the resulting data, like converting MySQL datetime to PHP time() or something. My goal is to pass functions with the field names to modify any particular field I want. If you know a better way than this, that'd be great to hear Thanks!
  3. Hello everyone! I have a unique problem. Basically my ultimate goal is to be able to apply functions in a similar way array_map() does but without having to be in an array. Confusing right? So instead of calling a function like... do_something($var); I'd like to do this... unknown_function($var, 'do_something'); Does so-called "unknown_function" exist? Or can you just not call a function in this way for non-arrays? Sorry if this is confusing! Thanks for any help!
  4. bah, you rock sir! thank you very much, most appreciated
  5. Now first off, I AM aware that the largest number that can be converted with dechex is "4294967295" - and the number I need to convert IS indeed larger than that...but I need to get this number converted, so I'm interested in hearing ideas on a workaround. As it is now: $Value = "207375434645"; echo dechex($Value); Result: 488a0395 (wrong) Proper result: 30488a0395 (right) Any/all ideas are welcomed!
  6. Did you forget your connection entries? If there was a previous connection on the page, did you close that and then forget to reconnect? [code]mysql_connect("localhost", "$username", "password") or die(mysql_error()); mysql_select_db("$database") or die(mysql_error());[/code]
  7. Couldn't you have a "last_login" field in your SQL table...then when someone tries to login, if the current date is 2 weeks from the day they last logged in then it sets a 4 day cookie and moves on but if not then it tells them how many days until they are permitted access?
  8. PHP Designer 2007 is out now... http://www.mpsoftware.dk/phpdesigner.php The free one should do exactly what you want.
×
×
  • 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.