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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by joeisbatman

  1. joeisbatman

    How do I retrieve a random row from a table?

    Easy answer: SELECT * FROM tbl_name WHERE your_conditions ORDER BY rand()
  2. joeisbatman

    Mysql Config/Spawn more processes

    I need to know what governs the creation of mysql processes, and how I can limit them. I've got a linux server running Mysql/Php to host a popular website... It averages about 150 requests per second. The hardware is a dual athlon MP with 1 gig of ram. Every so often say once every other day...
  3. joeisbatman

    session_id() returns "" [very impt!]

    One addition... My code looks like this: (someone please please please help. I'm dieing.) <?php session_start(); echo session_id(); ?> One comment that I should have mentioned in the origional post-- I've tested the webpage when the client has cookies both on and off. This fact should...
  4. joeisbatman

    session_id() returns &quot;&quot; [very impt!]

    What POSSIBLE SCENARIO makes the session_id() function return null???? I have a website where <i>SOMETIMES</i> when you visit the main page, your session_id() is blank. This causes a problem, for it means that session_start() is not maintaining the session for subsequent pages. The problem...
  5. joeisbatman

    sessions not holding SessID

    Hi everyone, This is a weird problem that does not happen to everyone on my website, and it occurs seemingly randomly. I use the default method of cookies to propagate a session. Sometimes, I find that this cookie DOESN'T STORE THE SESSION ID! The cookies name is by default PHPSESSID, and if...
  6. joeisbatman

    session variable getting registered twice

    I am having a very similar problem and would like to hear how this one gets resolved, please if anyone can help that 'd be great!!! thanks Joe
  7. joeisbatman

    Yet another PHP beginner that can't use the header function

    I think everyone is diagnosing this wrong. This code works for me: ---------TOP OF PAGE HERE--------------------- <? session_start(); header(&quot;Location: http://www.yahoo.com&quot;); ?> ---------------------------------------------- Make sure you're not doing this: -----------TOP OF...
  8. joeisbatman

    HOW SESSION DATA WORKS

    Hi folks, When I'm looking at my server, I notice whenever someone starts a new session a tiny file gets created... This file has whatever session variables have been registered in it. MY QUESTION IS: Does session data get stored to ram? Will extensive use of session data gobble up ram, or...
  9. joeisbatman

    Asp on a Linux server?

    Well program secrets put things in very good persepective, but i have a helpful tip. I was in the same boat you were in a few weeks ago. If you are not familiar with SQL stuff, as was the situation for me and are going to mySQL/PHP (which I did), use this lil script called PHPMYADMIN. It...
  10. joeisbatman

    session nightmare

    Dude fellas, sorry ignore this post. I just jumped out of bed to discover that this post doesn't make coherent sense (too tired maybe?). Of course my variable wasn't going to change cuz I kept resetting it back to 5. Solving this simple example isn't near helping me with my larger problem...
  11. joeisbatman

    session nightmare

    The php manual has conflicting data on this issue, and I keep hearing different things from everyone. I have one variable that I need to be constantly updated. Using session variables how can I keep this variable updated? I find that a if I do- session_start(); $foo =5; session_register('foo)...
  12. joeisbatman

    Database planning

    Dave thanks for your post it was very informative! --joe
  13. joeisbatman

    database design-- no one responding :(

    I've made this post in a few of the databse forums to no avail, I'm hoping someone here can gimme their two cents: I'm making a website, and I'm fairly new to databases. My friend and I are butting heads on which is the best way to design my database. My database has members which are kept...
  14. joeisbatman

    database planning

    I'm making a website, and I'm fairly new to databases. My friend and I are butting heads on which is the best way to design my database. My database has members which are kept track in the database using a Unique ID#. Each &quot;member&quot; has a bunch of columns of data associated with it...

Part and Inventory Search

Back
Top