Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Karaethon

  • Rank
    Advanced Member
  • Birthday 11/08/1978

Profile Information

  • Gender
  • Location
    United States
  • Interests
    Coding, Gaming, Girls

Recent Profile Visitors

263 profile views
  1. Karaethon

    Echoing all $_GET values

    I wasn't debugging so much as trying to verify that the app code was sending valid $_GET parameters. The app does all the data valiation, and I verified that side, I just needed to double check that what I 'thought' was being transmitted was what was actually being recieved. I don't have access to the recieving server so I was submitting to localhost to verify before actually submitting to server.
  2. Karaethon

    Echoing all $_GET values

    Ok, I was almost right on. I got it right except my foreach order was wrong. <?php foreach($_GET as $key => $value){ echo $key." = ".$value; } ?> is the correct way. sorry for wasting space on the forum.
  3. Karaethon

    Echoing all $_GET values

    I am testing my app to server transport to verify everything is working, I need to write a loop that takes each value sent via GET and/or POST and then echo each key:value back, how do I step through the $_GET or $_POST and extract each to echo? Something like this, but what? <?php /*I know this is not valid, is psedocoded*/ foreach($key in $_GET as $value){ echo $key." = ".$value; } ?>
  4. Karaethon

    Unable to use connection to MySQL

    I haven't made any system changes, only code changes, after undoing everything I still have no link. But like i said above, I'm giving eah class its own connection to the table it specifically uses. I would like the code reusability of a MySQL_Interface class but I can live with this a I can target specific table per class.
  5. Karaethon

    Selecting Oldest entries

    It seems to, except it doesn't like the limit statement. If I have the limit it barfs...
  6. Karaethon

    Unable to use connection to MySQL

    Thats what I can't figure out. I undid and rolled back my changes and it still won't work.... I decided to give each class its own mysqli_connect and live with it.
  7. Karaethon

    Selecting Oldest entries

    Is it (I'll bet the anwer is Yes) possible to SELECT the oldest entries in the table? "SELECT * FROM `vaults` WHERE `Status` = "Unsolved" ORDER BY `CREATED` LIMIT 75 Would this be correct?
  8. I'm suddenly having trouble using my connection to my MySQL database... (yes it was working but now...) I have the Connection created in an include file and stored in variable $DB, in the main file that includes the file containing the$DB there are other includes for classes. These classes are SUPPOSED to use $DB to connect to and SELECT/UPDATE/INSERT, but for a reason I cant figure out they suddenly stopped seeing $DB. it keeps saying its an undefined variable. If you need to see code I can post...
  9. Karaethon

    Cant figure out PHP/MySQL Error

    Hmm, yeah I kinda knew that, never really thought of how it would affect execution... In this case I dont think I could use AND though because the rtrim after completion could remove more than the AND? or maybe not it is only trimming from end....
  10. Karaethon

    Cant figure out PHP/MySQL Error

    Habit. I am used to thinking && instead of AND when writing code.
  11. Karaethon

    Cant figure out PHP/MySQL Error

    Good catch! I want to copy and paste my __construct code to show what I had and I noticed it was $LINK = mysqli.... instead of $this->LINK = mysqli.... I looked at it 500 times but kept missing it because I saw what I expected, not what was.
  12. I am getting Fatal error: Uncaught Error: Call to a member function real_query() on null with this code: public final function Retrieve($TABLE, $CRIT){ $_query = "SELECT * FROM `{$TABLE}` WHERE "; foreach($CRIT as $_field => $info){ $_query .= " `{$_field}` = `{$info}` &&"; } if($this->LINK->real_query(rtrim($_query, ' &'))){ return $this->LINK->store_result(); } else{ return json_encode(array("Error"=>$this->LINK->errno(), "Description"=>$this->LINK->error())); } } (LINK is my mysql_connect() result.) I have tried everything i can think of, ->query, going to mysqli_query, breaking it sown and using a $result variable, but nothing seems to work...
  13. Karaethon

    How do I...

    Hmm, ok.... Thanks I have never used cron before except what the host or premade site used, I don't know how to make my own. But NotionCommotion pointed out something I was too close to see... Everytime a puzzle is solved run the generator. facepalm.
  14. Karaethon

    How do I...

    I know that cron can run a script automatically at scheduled intervals but I have no knowledge of how to set this up. Both the cron AND the script. I can learn, obviously, but I have a question before diving in. Can I trigger an unsceduled run of the script from another script? Specifically, I have in mysql a database of number puzzles, the script will check the number of unsolved and generate new ones as needed to keep the number near the planned 1000 point. but if there is a surge of solves I want other script (user interacting script) to trigger the other script if the number drops to 100 or less. I don't want the user script hanging while puzzles are generated so i need to trigger the housekeeper script outside the userscript thread.
  15. Karaethon

    Is this valid syntax?

    CARP! I wrote countIf because all my searching of php documentation I couldnt find anything that let me search specific value.... I must have missed array_count_values, because it doesnt look for specific I moved on. I remember seeing it. arghhhh! all i needed was array_count_values(ARRAY)[VALUE IM LOKING FOR] ONE FREAKIN LINE!!!!

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.