| View previous topic :: View next topic |
| Author |
Message |
Cryoma Member of the Year
Reputation: 198
Joined: 14 Jan 2009 Posts: 1819
|
Posted: Wed Aug 11, 2010 2:25 pm Post subject: Holland or some admin |
|
|
| Code: | $sql = mysql_query("SELECT count(*) FROM cheatengine.cephpbb_posts c WHERE poster_id = ".$_SESSION['id']." LIMIT 1;", $cef);
$posts = mysql_fetch_array($sql);
$posts = $posts[0];
$sql = mysql_query('SELECT * FROM `cef_users` WHERE `user_id` = '.$_SESSION['id'].' LIMIT 1;', $mysql['connection']);
$user = mysql_fetch_array($sql); |
Is $posts actual post count including RS?
|
|
| Back to top |
|
 |
Monkeys I post too much
Reputation: 29
Joined: 20 Jul 2006 Posts: 2411
|
Posted: Wed Aug 11, 2010 2:34 pm Post subject: |
|
|
No, it's postcount.
(if you look at the query it gets all your posts, and counts the rows, not posts)
_________________
Get a lid on that zombie,
he's never gonna be alri-i-ight.
Oooh get a lid on that zombie,
or he's gonna feed all night.
Last edited by Monkeys on Wed Aug 11, 2010 2:35 pm; edited 1 time in total |
|
| Back to top |
|
 |
Cryoma Member of the Year
Reputation: 198
Joined: 14 Jan 2009 Posts: 1819
|
Posted: Wed Aug 11, 2010 2:35 pm Post subject: |
|
|
| Shit, I don't see how he got actual post count based on this source code.
|
|
| Back to top |
|
 |
Monkeys I post too much
Reputation: 29
Joined: 20 Jul 2006 Posts: 2411
|
Posted: Wed Aug 11, 2010 2:36 pm Post subject: |
|
|
Sorry, my sarcasm wasn't clear enough.
I editted in the explanation, though.
It's your total post count. As it simply counts rows instead of valid posts.
_________________
Get a lid on that zombie,
he's never gonna be alri-i-ight.
Oooh get a lid on that zombie,
or he's gonna feed all night. |
|
| Back to top |
|
 |
C-Dizzle Grandmaster Cheater
Reputation: 89
Joined: 16 Mar 2008 Posts: 623
|
Posted: Wed Aug 11, 2010 2:36 pm Post subject: |
|
|
| You're remaking cef quest? Cool.
|
|
| Back to top |
|
 |
Cryoma Member of the Year
Reputation: 198
Joined: 14 Jan 2009 Posts: 1819
|
Posted: Wed Aug 11, 2010 2:38 pm Post subject: |
|
|
| Monkeys wrote: | Sorry, my sarcasm wasn't clear enough.
I editted in the explanation, though.
It's your total post count. As it simply counts rows instead of valid posts. |
Oh alright thanks, now I can make sense of this.
|
|
| Back to top |
|
 |
Orfa Expert Cheater
Reputation: -1
Joined: 25 Aug 2008 Posts: 199 Location: Bangledesh, AKA New New York
|
Posted: Wed Aug 11, 2010 2:41 pm Post subject: |
|
|
OMG I just saw two naked little girls on Omegle :\
_________________
| Chuck Norris wrote: | | Whenever I shit in my pants, I hide the pants under my sister's bed. |
|
|
| Back to top |
|
 |
|