Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. scrivener227

    Change image on serten time!

    Well . . . you're wanting this to display in an HTML page, right? Just call the image using HTML tags within an echo: $myDate = "1/1/2003"; // target date $today = (date ("n/j/Y")); // today's date if ($myDate == $today) { // display one-time graphic echo...
  2. scrivener227

    Change image on serten time!

    Just check the date against your target date every time the page is accessed: $myDate = "1/1/2003"; // target date $today = (date ("n/j/Y")); // today's date if ($myDate == $today) { // display one-time graphic } else { // standard behavior } Now . . ...
  3. scrivener227

    Storing a variable/avoiding ?x=100 on every link

    To begin with, I'd ask your server administrator to include index.php in the server directory index. That way you don't have to worry about the redirect from index.htm. You're running this in a frameset, so the URL doesn't show any of the GET data. I don't even see it appearing in the status...
  4. scrivener227

    Storing a variable/avoiding ?x=100 on every link

    I'm not sure I'm completely following you on this. It might help to see a snippet of your code, if that's possible. I get the feeling that you can do what you want easily in a standard form submission, but you want to retain the onChange in the pulldown, right?
  5. scrivener227

    Windows MYSQL Server crash when sending query

    BigBadDave, I can't say that I know why it's crashing ( maybe the space between the limit args?), but I know that saying "LIMIT 0,10" is the same as "LIMIT 10" Why not give that a try and see what happens. Good luck. --Jeff
  6. scrivener227

    Storing a variable/avoiding ?x=100 on every link

    Sessions is definitely the way to go. If you haven't used sessions yet, they're really pretty simple. On every page that must use this information---before sending out any headers---write session_start(); You must declare your session variables with the syntax used below (I like to put mine in...
  7. scrivener227

    insert to mysql isnt working

    The first thing I notice regarding the MySQL calls is that you're hitting your MySQL server as root with no password. If that's how your server is set up, okay . . . I hope it's a test server and not something publicly available. On each of your calls, just put in an echo statement to use as a...
  8. scrivener227

    read cookie expire date?

    The only way I know to do it is to set that data in the value. Set the cookie like this: $stime = (date ("n/j/Y g:i")); setcookie ("cookieName", "cookieValue, set=$stime, exp= set + 3600", time()+3600); and then read the cookie with echo $cookieName; You'll...
  9. scrivener227

    converting perl to php

    I haven't converted a guestbook, but I've converted several database-integrated web apps from Perl to PHP. I've found that the conversion went quite smoothly. Many functions and control structures remained virtually unchanged. Some things became simpler (my makeshift switch in Perl rolled over...
  10. scrivener227

    I have a small problem... I'm maki

    I'm probably missing something here, but according to your last post . . . given your directory structure, you should be using require "../../kategorier.php" because it's two directories up. That seems too simple AND it doesn't explain why your absolute path didn't work. Did you try...
  11. scrivener227

    Reading data from <textarea>

    I don't think you can do that with JavaScript. There's no object I know of that you can grab for each line or for the EOL. Your best bet--if your situation allows it--is to get the textarea as it is submitted and use Perl to break apart the lines. --Jeff
  12. scrivener227

    CGI and Perl setup errors

    I'm flying a bit blind (not working on a Win 98 right now) but I'll still put in my two cents . . . You may have already done this, but I'm not sure from what's in your post. The instructions in the link you included had you use FrontPage to set permissions on the cgi folder. Have you used...

Part and Inventory Search

Back
Top