-
Posts
557 -
Joined
-
Last visited
Never
Everything posted by unidox
-
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
-
How do I merge 2 things together. Like: $var1 = "pat"; $var2 = "rick"; I want to combine $var1 and $var2 to make patrick.
-
Is there anyway to take away the last letter from text?
-
I dont think so, unless its disabled in php.ini
-
Thanks, anything I should add?
-
Try to experiment with sessions now, so you can stay logged in.
-
If I were you I would not use md5, or atleast salt it and add some custom encryption to it.
-
Works Private Room doesnt allow me to post shouts though.
-
I know, I havnt done those pages yet.
-
Please ask a question...
-
Your only defining the query's, remove the var, and use if() to determine if it is going to delete or not.
-
Cant enter captcha box...(0 is maxlength) And in ff you still cant post...
-
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.
-
Make an iframe, then just refresh the frame every 1 sec.
-
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?
-
[SOLVED] loging in to accounts using hashed passwords
unidox replied to thedecline's topic in PHP Coding Help
Yea, look at my recent topic. The user system. -
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?
-
I could prob do for 30-50
-
lol, I like that
-
Try this: $query = "SELECT * FROM `quebec_thread` WHERE `title` LIKE '%$filter%' AND `forumid` = '18'";
-
Your best bet would google for free webmail scripts and use it as reference.
-
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.
-
Hes your client, you accepted the offer. You have to do it, best bet would be google.