<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/11596" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2006-04-02T07:59:31-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/11596</id>

		<entry>
		<author><name><![CDATA[KillerBoy]]></name></author>
		<updated>2006-04-02T07:59:31-04:00</updated>

		<published>2006-04-02T07:59:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=61579#p61579</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=61579#p61579"/>
		<title type="html"><![CDATA[Help needed]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=61579#p61579"><![CDATA[
ok guys iam trying to make my script done but it wont give the way i wanted <br>i wanted a search system which will find the users starting ore where the name is in <br>like !user test<br>and the php file is ok and give me the result what i need when i vissit it true my inetx<br>like<br>testing test <br>it give me more then 1 result now i wanted to put the result true my eggdrop into my irc channel but i wont work <br>it only gives me 1 username but there are 3 users who got test in there name<br>those are the scripts but not working ok<div class="codebox"><p>Code: </p><pre><code>&lt;?phperror_reporting(7);define ('LF', "\n");// DEFINE YOUR MYSQL INFORMATION HERE!$server="localhost";$dbuser="user";$dbpass="pass";$db="database";mysql_pconnect($server,$dbuser,$dbpass);mysql_select_db($db);$username=$_GET["username"];$usernfo=mysql_query("SELECT * FROM users WHERE UPPER(nickname) LIKE UPPER('%$username%') "); while($user=mysql_fetch_array($usernfo)) {  echo   LF, $user[nickname],  LF, $user[joindate],  LF, $user[posts];  }     ?&gt;</code></pre></div>And the tcl<div class="codebox"><p>Code: </p><pre><code>set url "http://localhost/ircscripts/user.php"set agent "Mozilla"package require httpbind pub "-|-" !user getstatusproc getstatus { nick host handle channel text } {        global chan url agent putlog "$text"if {$text != ""} {                           set query "$url?username=$text"          set page [http::config -useragent $agent]                          set data [http::geturl $query]                          set data2 [http::data $data]                           set lines [split [::http::data $data] \n]                          set ok [lindex $lines 1]  set date [lindex $lines 2]                          set nickname [lindex $lines 1]  set posts [lindex $lines 3]                          upvar #0 $page state                          set max 0                          http::cleanup $data                           foreach line [split $data2 \n] {                           if {$ok != ""} {                                putquick "PRIVMSG $channel :\00307,01 \002\[User\] \00307,01 \002$nickname : \00314,01Status \00307,01$posts JOINED AT $date"                                              } else {                                putquick "PRIVMSG $channel :\00307,01 \002\[User\] \00307,01 \002$text not found"                         }                         }                 } }</code></pre></div>please let me finnish thanxs alot<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7563">KillerBoy</a> — Sun Apr 02, 2006 7:59 am</p><hr />
]]></content>
	</entry>
	</feed>
