Jump to content

Karaethon

Members
  • Posts

    160
  • Joined

  • Last visited

About Karaethon

  • Birthday 11/08/1978

Profile Information

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

Recent Profile Visitors

1,971 profile views

Karaethon's Achievements

Advanced Member

Advanced Member (4/5)

1

Reputation

  1. Yeah, that's why I want to generate the file only if the user clicks save. Hmm, IDK if I can do this, the final output isn't ever on the server, the user javascript posts to the different php files the server and assembles the final output on user side. I found this idk if it will do what I need, but I'll play with it.
  2. I have, on my site, a server output page (after the user has completed certain steps the server generates data to display for the user). For security purposes the server cannot retrieve this data after the page is left, it is gone for good (unless the transaction ID from paypal is supplied), so I want to make a button that dumps the data to a text file the user can then save or print. While the page is active I could retrieve the data from the server again, so... can javascript do this on client side (if so please give me an example of how) or should I just requery the server and get it to create the text file and then send it to the user?
  3. I was looking for "script timeout" or "timeout_[something]" I passed right over execution_time. Doh!
  4. Argh, I combed the php documentation and missed it. Thank you.
  5. I am testing an idea and I want to run through thousands of iterations of the testing script. It is not a complex script but is complex proccessing (using password_hash) and it timesout out on the 64th iteration, is there an ini_set command or simething I can put in the start of the testing file to change the timeout only for the proccessing of this script?
  6. I need to reset my autoincrement value, I had a minor goof in my insert code and it ws inserting data wrong, i have fixed it but im now over 1000 rows in and all error posts are deleted, its not a big deal on a bigint but i want to start over at the beginning for my own OCD issues. how/can this be done?
  7. Yeah, thats what I ended up doing. and why hate 'snippets'? thats what they are, pieces of html that by themselves are just a piece of the whole page. like footer, header, menu, etc. what would you call them? pieces? chunks? (truffle shufle)
  8. This thread has evolved into a PDO lesson (for me), should I start a new topic specifically for my PDO questions?
  9. Its kinda silly. I have code snippets, pieces of code that i use often in several places, so i save them as .snip, when I include them they run php code but i needed to call one via ajax and it wasnt running php code because it wasnt .php i finally realized that giving it a ohp extension was the logical, least effort, option.
  10. ok, been playing with pdo... i get a good connection (i believe, because no errors are being thrown) but my attempt to query is not working... <?php include '../includes/dbconn.inc'; $player = $link->prepare("SELECT * FROM players WHERE PlayerID=?")->execute(['1']); echo $player; echo $player->fetch(); ?> is failing, at first echo $player is: 1 at fetch error is thrown: 'Call to a member function fetch() on boolean whats going on?
  11. No, I meant if the table has col1, col2, col3... do I have to make the PDO query in the same order? i understand that it will bind my values regardless of where they are in the array, I just want to know do I have to put the INSERT order to match the table order. i.e: INSERT INTO table (col1, col2, col3) VALUES ( :arg1, :arg2, :arg3) where the data was [arg1=>'test1', arg2=>'test2', arg3=>'test3'] OR could I use INSERT INTO table (col3, col1, col2) VALUES ( :arg3, :arg1, :arg2) where the data was [arg1=>'test1', arg2=>'test2', arg3=>'test3']
  12. Alright, I've been reading the article and I have a question you might know the answer to: When using a PDO prepared statement to INSERT via an assosiative array do I need to put the inserted columns in the array in the same order they are in the table?
  13. Yeah, I did once it was working. the final version of that function is in a class here where i was asking for help with a diffeent part.
  14. Ok... so I googled PDO and found a phpdelusions.net about it, will this be a good introduction for me?
×
×
  • 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.