Jump to content

unidox

Members
  • Posts

    557
  • Joined

  • Last visited

    Never

Everything posted by unidox

  1. I am getting this error: Catchable fatal error: Object of class stdClass could not be converted to string in /home/purecp/public_html/beta/admin/process.php on line 22 This is line 22 of process.php: $q = mysql_query("SELECT * FROM `pcp_users` WHERE `username` = '$user'") or die (mysql_error()); I dont know how to fix. Thanks
  2. unidox

    Merge

    How do I merge 2 things together. Like: $var1 = "pat"; $var2 = "rick"; I want to combine $var1 and $var2 to make patrick.
  3. Is there anyway to take away the last letter from text?
  4. I dont think so, unless its disabled in php.ini
  5. Thanks, anything I should add?
  6. Try to experiment with sessions now, so you can stay logged in.
  7. If I were you I would not use md5, or atleast salt it and add some custom encryption to it.
  8. Works Private Room doesnt allow me to post shouts though.
  9. I know, I havnt done those pages yet.
  10. Please ask a question...
  11. Your only defining the query's, remove the var, and use if() to determine if it is going to delete or not.
  12. Cant enter captcha box...(0 is maxlength) And in ff you still cant post...
  13. lol, If you want someone to make a script, we cant do for free. If you dont wanna pay, then do it yourself. Stop being so selfish, man up, and search.
  14. Make an iframe, then just refresh the frame every 1 sec.
  15. unidox

    while

    This was my original code: if (($_POST['sort'] == "1") && ($lvl <= 2)) { $q2 = mysql_query("SELECT * FROM `pcp_users` WHERE level = '2' AND conf = '1'"); $q = mysql_query("SELECT * FROM `pcp_users` WHERE level = '2' AND conf = '1' LIMIT $start, $limit"); } elseif (($_POST['sort'] == "2") && ($lvl <= 3)) { $q2 = mysql_query("SELECT * FROM `pcp_users` WHERE level = '3' AND conf = '1'"); $q = mysql_query("SELECT * FROM `pcp_users` WHERE level = '3' AND conf = '1' LIMIT $start, $limit"); } elseif (($_POST['sort'] == "3") && ($lvl <= 4)) { $q2 = mysql_query("SELECT * FROM `pcp_users` WHERE level = '4' AND conf = '1'"); $q = mysql_query("SELECT * FROM `pcp_users` WHERE level = '4' AND conf = '1' LIMIT $start, $limit"); } elseif (($_POST['sort'] == "4") && ($lvl <= 5)) { $q2 = mysql_query("SELECT * FROM `pcp_users` WHERE level = '5' AND conf = '1'"); $q = mysql_query("SELECT * FROM `pcp_users` WHERE level = '5' AND conf = '1' LIMIT $start, $limit"); } elseif (($_POST['sort'] == "5") && ($lvl <= 6)) { $q2 = mysql_query("SELECT * FROM `pcp_users` WHERE level = '6' AND conf = '1'"); $q = mysql_query("SELECT * FROM `pcp_users` WHERE level = '6' AND conf = '1' LIMIT $start, $limit"); } elseif ($_POST['sort'] == "6") { $q2 = mysql_query("SELECT * FROM `pcp_users` WHERE conf = '2'"); $q = mysql_query("SELECT * FROM `pcp_users` WHERE conf = '2'"); } else { $q2 = mysql_query("SELECT * FROM `pcp_users` WHERE level >= '$lvl' AND level != '1' AND username != '$user' AND conf = '1'"); $q = mysql_query("SELECT * FROM `pcp_users` WHERE level >= '$lvl' AND level != '1' AND username != '$user' AND conf = '1' ORDER BY `$order` ASC LIMIT $start, $limit"); } and I am trying to turn it into a while like this: if (!$_POST['sort']) { $q2 = mysql_query("SELECT * FROM `pcp_users` WHERE level >= '$lvl' AND level != '1' AND username != '$user' AND conf = '1'"); $q = mysql_query("SELECT * FROM `pcp_users` WHERE level >= '$lvl' AND level != '1' AND username != '$user' AND conf = '1' ORDER BY `$order` ASC LIMIT $start, $limit"); } else { if (!is_numeric($_POST['sort'])) { exit(); } $q = mysql_query("SELECT * FROM `pcp_groups`"); $sort = 0; while ($r = mysql_fetch_array($q)) { $sort++; $level = $r['level']; if (($_POST['sort'] == $sort) && ($lvl <= $level)) { $q2 = mysql_query("SELECT * FROM `pcp_users` WHERE level = '$level' AND conf = '1'"); $q = mysql_query("SELECT * FROM `pcp_users` WHERE level = '$level' AND conf = '1' LIMIT $start, $limit"); } } } but how do I change if (($_POST['sort'] == $sort) && ($lvl <= $level)) { to elseif?
  16. unidox

    Project

    I am a PHP developer and I am in need of a project manager, so I can keep on time, and my clients can view the progress of their project. There is no price limit. Anyone have ideas?
  17. Try this: $query = "SELECT * FROM `quebec_thread` WHERE `title` LIKE '%$filter%' AND `forumid` = '18'";
  18. Your best bet would google for free webmail scripts and use it as reference.
  19. I can help you with the code, if you would like me to create it from scratch it will cost you. But if you need help, then I can.
  20. Hes your client, you accepted the offer. You have to do it, best bet would be google.
×
×
  • 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.