Search results

  1. Salvatos

    [OFF][20-50 credits]Give me a suggestion

    You have a table maker but no form maker. Maybe you could even combine both, I think it could be useful to some. Cookies could also be useful (login, preferences, etc.). And web counters (in particular those that do not add multiple clicks or refreshes from the same user).
  2. Salvatos

    How to delete multiple MySQL rows...?

    I think that should work but I have no guarantee. // First get the number of rows you have $slavesel = mysql_query("SELECT * FROM slaves"); $result = mysql_num_rows($slavesel); $randomdel = rand(2,$result); // Select your random amount of rows to delete $limit_top = $result; // Set your...
  3. Salvatos

    MySQL: Getting a newly created entry's id

    Thanks a lot! To be honest I didn't even know about LAST_INSERT_ID() (still a beginner) so I'll have a look at it and according to your quote it's gonna be exactly what I should have done from the start. Added to your rep!
  4. Salvatos

    MySQL: Getting a newly created entry's id

    Hi I don't know if I can do what I'm asking for and if I can, I don't know where to find the info. To make it short, I have a script that creates a database entry but needs to refer to it right after. But I cannot know the info it will insert in advance. How can I get that entry's id? I...
  5. Salvatos

    "Returning the favour ;)" Hi, I just noticed the rep and that I haven't posted on the thread to...

    "Returning the favour ;)" Hi, I just noticed the rep and that I haven't posted on the thread to say thanks for the info, so consider it done now! Thanks for both ;)
  6. Salvatos

    PHP Nuke Module Treasury V1.1

    I'm assuming you already checked if the include path (../config.php) is correct, so we're gonna try something. It was suggested to me by someone here a long time ago when I couldn't get includes to work, it could be the same problem here. Create a php.ini file and put it in the same folder (I...
  7. Salvatos

    CRON job

    Standard: select Every Hour and write this command: php -q /home/your_username/folder/file.php "-q" prevents it from sending you a result e-mail everytime. Change your_username to your username and then complete the file path (you may want to put it in /user/etc/) Advanced: Command: php -q...
  8. Salvatos

    error pages

    Well I'd say go for both to be sure... To give you an idea, I have my main site at salvatos.x10hosting.com and a subdomain ilmaril.x10hosting.com. As far as I know, if I set my error pages only for salvatos(...).com, they won't show up if someone accesses my site via ilmaril(...).com. But if...
  9. Salvatos

    error pages

    In your cPanel, you have the "Advanced" section and, in it, Error pages. Click it, choose your domain if you have many, then choose the type of error page you wish to create. Then make your code and you're done! It's available on all of x10Hosting's plans as far as I know.
  10. Salvatos

    Basic HTML and Images - Why does it NOT WORK!!!

    I really don't know, but one thing that struck me while browsing the html source is that you open two <body> tags (which I have never seen before) and only close one. Maybe that could be messing something up in some browsers and not others...
  11. Salvatos

    Some PHP Help

    To be honest I have never worked with cookies so I can only give you an overview, but your main page (or rather your members.php include) could look like this: <? if (logged in cookie is set) { // echo the log out link } else { // echo the login form } ?> This way, every time your...
  12. Salvatos

    Header Output Errors

    Well login.php (and most main phpBB pages) will call includes/page_header.php, which will in turn call for the template file overall_header.tpl (or in some cases simple_header.tpl), which will set the page header and display it. So if you work from phpBB pages and add your own stuff (headers)...
  13. Salvatos

    More info about the rand() function ?

    Yea the edit button has strangely disappeared for me too... Well in former posts, not on this one apparently ^^
  14. Salvatos

    Header Output Errors

    Your website's header may also be colliding with phpBB's one.
  15. Salvatos

    PHP Registration Script Not Working

    I've always been told that session_start(); should always be the first thing in your page, so I don't know if putting it in an if works. But the problem is probably the lack of $ here: if (!errorMessage) {
  16. Salvatos

    A big project help

    As far as I can see (although your indentation is not making it easy ^^ ), your else tag is not closed (that's why the end of PHP is not expected).
  17. Salvatos

    php Progress bar

    You mean during a download? (I don't know how but I figure that info would help others help you. My guess is you have to use Flash to do that, though.)
  18. Salvatos

    Javascript Confirm dialogue box help please

    You're missing a quote on this line, it can't be good: var val2 = getDocumentById("quantity).value; As for the rest, my poor JS experience does not report anything else.
  19. Salvatos

    Php

    Yep I mentioned Flash 'cause I know some use it but I don't like the idea ^^ And well Dan, you got me curious too :P
  20. Salvatos

    Php

    As far as I know that can be used with PHP as well as HTML or anything, but what you use to make it is actually JavaScript, although some people do it with Flash. I don't think you can do it strictly in PHP but JavaScript has those functions triggered by events that can be used with other...
Top