Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. Yes it is, I've seen 54 a day but he hasn't posted recently so it probably dropped a lot.
  2. There may be a tutorial online on how to do exactly what you want, but I would advise you to go step by step following little tutorials from either tizag.com or w3schools.com so you can actually learn what's going on. I have a feeling if you follow a big one you will just CnP the code and not even read the descriptions. If you can't figure something out, post it here and we'll help you out.
  3. Yes, it's called sessions. If the session exists then don't increase count.
  4. You need to pass these names somehow. Are you posting this to itself or another page? Anyway, I would put each field name in double array and pass it.
  5. I listen to classic rock and nu-metal.
  6. Can you explain this more? Are you saying you set the primary key to VAR_CHAR and want to change it to INTEGER AUTO_INCREMENT? It's not very common, but you can have primary keys that aren't INTEGERS. You can also have primary keys that are a combination of fields.
  7. Please read this. sleep — Delay execution.
  8. Fir me it's information I was going to look for soon... Well it came to me by itself. Magical...
  9. For executing only 2k people at a time use LIMIT. Write a recursive function that passes in the start/finish positions and increment them by 2k. If you can keep track of how long 2k records takes to process you can do something like this in pseudo: sleep() = (1 hour - time already executed). For your second problem, write to a log file and you can watch the -tail of it in actual run time (you have to do some research cause I forget the command for this). Hope this helps.
  10. Maq

    contact form

    Well if it's on your server and it's not recognizing it, it's probably because you're not in the right directory or you're not calling the correct page. Match the directory with the URL you're using.
  11. Please don't write like that. If English isn't your native language then that's fine, but obviously it is. Quite frankly you sound like a joke and I'm surprised that anyone has even responded to your thread.
  12. If not, there's open ssh which is free.
  13. Do you have it? Does your host allow you to connect with it? It's the same credentials as FTP, I think it may be a different port #, SSH's default port is 22.
  14. Does this field exist in your table?
  15. So is this from a drop down menu or something? How do you pass this variable to this page? What's the output when you print out $data['theme']? We need more information...
  16. You also have: SELECT * FROM `theme`; which is always going to grab the first style. If you want a random theme or the user to chose it you need to have something like: SELECT theme_style FROM theme WHERE theme = $user_choice; Please put error reporting on by putting the following at the top of your script: ini_set ("display_errors", "1"); error_reporting(E_ALL);
  17. Please echo out your $data['theme'] to make sure it's the correct path. Also, do you have display errors turned on?
  18. Maq

    contact form

    I already did. If you want a source for tutorials I would go to either tizag.com or w3schools.com. They are both excellent for finding basic scripts/tutorials with correct standards.
  19. Maq

    contact form

    I think this is a bigger task than what you think. If you need help with specific parts I'll be glad to help. Some pointers: 1) Submit to itself for error checking. 2) If it validates use the send mail function to send the values of the fields. 3) What kind of DB is it? MySQL I assume, there are plenty of tutorials and threads on how to store this info.
  20. Sorry, but I don't think anyone is really going to read all that code. You might want to: 1) Post only the relevant code. 2) Elaborate on your issue(s) a little more. 3) Use code tags! (I see you attempted to, but miserably failed!)
  21. If you have SSH access you could take a look at all the processes, 'ps -ef' and find the mail server process. Get the process id and kill it, 'kill 1234'. Problem is that if any messages are queued I think they will be sent regardless.
  22. Maq

    contact form

    This is simple but takes some time. Do you have anything done yet? If yes, please post it so we don't waste our time rewriting existing code.
  23. For example, if you want to temporarily set errors to display on your page for debugging and whatnot, you could put at the top of your script: ini_set ("display_errors", "1"); error_reporting(E_ALL);
  24. You could assign a cookie that expires in 24 hours.
  25. It's in your php.ini file. It's the display_errors attribute, i believe it should be set to 0 for it not to display errors.
×
×
  • 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.