Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
RevCMS Help
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Meap" data-source="post: 350666" data-attributes="member: 1553"><p>Ive almost fixed my chatlogs to work with the azure structure but I'm stuck on this last bit for searching for the username, because in the azure chatlogs structure, it enters the user id and I cant think how to make it pull the username in this line of code, </p><p>[CODE]<?php</p><p> </p><p>$searchResults = null;</p><p>if (isset($_GET['timeSearch']))</p><p>{</p><p> $_POST['searchQuery'] = $_GET['timeSearch'];</p><p> $_POST['searchType'] = '4';</p><p>}</p><p>if (isset($_POST['searchQuery']))</p><p>{</p><p> $query = filter($_POST['searchQuery']);</p><p> $type = $_POST['searchType'];</p><p> </p><p> $q = "SELECT * FROM users_chatlogs WHERE ";</p><p> </p><p> switch ($type)</p><p> {</p><p> default:</p><p> case '1':</p><p> </p><p> $q .= "user_id = '" . $query . "'";</p><p> break;</p><p> </p><p> case '2':</p><p> </p><p> $q .= "message LIKE '%" . $query . "%'";</p><p> break;</p><p> </p><p> case '3':</p><p> </p><p> $q .= "room_id = '" . $query . "'";</p><p> break;</p><p> </p><p> case '4':</p><p> </p><p> $cutMin = intval($query) - 300;</p><p> $cutMax = intval($query) + 300;</p><p> </p><p> $q .= "timestamp >= " . $cutMin . " AND timestamp <= " . $cutMax;</p><p> }</p><p> </p><p> $searchResults = mysql_query($q);</p><p>}</p><p>?>[/CODE]</p><p>any ideas? If more is needed I can post the whole chatlogs file I have for the HK?</p></blockquote><p></p>
[QUOTE="Meap, post: 350666, member: 1553"] Ive almost fixed my chatlogs to work with the azure structure but I'm stuck on this last bit for searching for the username, because in the azure chatlogs structure, it enters the user id and I cant think how to make it pull the username in this line of code, [CODE]<?php $searchResults = null; if (isset($_GET['timeSearch'])) { $_POST['searchQuery'] = $_GET['timeSearch']; $_POST['searchType'] = '4'; } if (isset($_POST['searchQuery'])) { $query = filter($_POST['searchQuery']); $type = $_POST['searchType']; $q = "SELECT * FROM users_chatlogs WHERE "; switch ($type) { default: case '1': $q .= "user_id = '" . $query . "'"; break; case '2': $q .= "message LIKE '%" . $query . "%'"; break; case '3': $q .= "room_id = '" . $query . "'"; break; case '4': $cutMin = intval($query) - 300; $cutMax = intval($query) + 300; $q .= "timestamp >= " . $cutMin . " AND timestamp <= " . $cutMax; } $searchResults = mysql_query($q); } ?>[/CODE] any ideas? If more is needed I can post the whole chatlogs file I have for the HK? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
RevCMS Help
Top