Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. For now, most people the conditional statements as haku mentioned. You can check to see if certain browsers are being used to change your CSS, HTML, etc...
  2. $results = SELECT * FROM (tbl_people LEFT JOIN tbl_people ON tbl_people_events.pid = tbl_people.pid) LEFT JOIN tbl_events ON tbl_people_events.eid = tbl_events.eid; while ($data = mysql_fetch_array($results)) { //Display your table using $data['name'] etc... You would also need another field for the dates. I haven't tested this code it probably doesn't work but it should give you an idea.
  3. You could use a regular expression preg_all_match(); to find all single digit numbers. I think there's a parameter that keeps track of the count. Although, there may be an easier way with javascript...
  4. Is this homework...? Anyway this is simple, you first have to join all the tables. Then all you do is display the data in a table, probably by using HTML. Make sense?
  5. So when you extract it for comparing then use strtolower() if not then use it as it's stored.
  6. Haha, Chuck Norris is a such a goon!
  7. Best part about your workspace is all the pepsis laying around, lol.
  8. Sweet, congrats! Jealous...
  9. If you do $string=strtolower($string); it should store all lower case. But if it doesn't for some reason then everytime you take it out of the data base, make it lower. Example: $string = strtolower($data['user_name']);
  10. Have you got it to work, or at least attempted to solve this? If so, post your code again...
  11. Yeah sorry, I was just trying to throw something out there to help him out. Like I said, I'm not a regex expert.
  12. Could you provide the code that you put the data in?
  13. fmod ($dividend ,$divisor); Returns the remainder, if 0, it's obviously divisible.
  14. I'm not a regex expert, but try this regular expression: $pattern = "/\b[^@\s]+@\S+?\.[a-z]+\.?[a-z]+\b/i"; It will match emails even if they have () or around them.
  15. I can't find it either. Last night I tried to log on and for about 15 minutes it said they were doing forum maintenance...
  16. Free? I like OSCommerce just because I have to deal with it all the time. It's also a very good system that has good online "support".
  17. Maq

    Drop Down

    array_revere();
  18. $string = str_replace(" ", " ", $string); Look for 2 spaces and replace with 1...
  19. If I understand you correctly then do a query for the user. Say, select logged_in from $db_user_table WHERE user = user (trying to log in); If logged_in = 1 then {all ready logged in from another IP} else{Welcome!}. Hope this helps...
  20. Why don't you check by IP and if the logged_in value is 1 then there is someone logged in from that same IP? For your query: $results = mysql_query("SELECT logged_in FROM $db_user_table WHERE logged_in_ip = '$ip_address'"); $data = mysql_fetch_array($results); For your elseif statement: elseif($data['logged_in'] == 1) { //user all ready logged in from this IP }
  21. They even give you a test info to make sure you set it up correctly (Page 6).
  22. Yes I see now. There could be multiple issues causing this. Like I said in my previous post, could you post this portion of the code?
  23. There has to be more code or some kind of API because that only provides the format for each part of the CC process...
  24. http://us3.php.net/date $today = date("F j, Y, g:i a"); // March 10, 2001, 5:16 pm
  25. Everything looks fine to me. Do you know what the image name was? Cause I see the image "Weblogousp.jpg", which is your main logo/banner and it looks fine. Although there is a pretty big gap between the logo at the top and the navigation. Is this what you're talking about?
×
×
  • 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.