Hello guys how can i use this script for LAVAIR script i need this function for my chat ...
HERES IS JUST EXAMPLE FROM BRUMI SOURCE
CODE<?php
include("config.inc.php");
header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); header("Content-type: text/html; charset=ISO-8859-1"); echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>"; echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\"\"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">"; echo "<html xmlns="http://www.w3.org/1999/xhtml">";
echo "<head>";
echo "<title>$stitle</title>";
echo "<link rel=\"StyleSheet\" type=\"text/css\" href=\"theme/theme.css\" />";
echo "</head>";
echo "<body>";
echo " ";
$Connect = mysql_connect("$server","$user","$pass");
mysql_select_db("$dbname");
$result=mysql_query("select * from members where username='$username' and password='$password'");
$number_of_rows = mysql_num_rows($result);
if ($number_of_rows>0)
{
include("check.inc.php");
}
if ($ok>0)
{
include("online.inc.php");
?>
Redirection
<?php $query = "delete from chatusers where username='$username'"; $result = mysql_query($query); //send the query! echo " "; echo "<a title=\"Enter\" href=\"chatindex.php?username=$username&password=$password\">Continue</a>"; echo " "; } echo " "; echo "</body>"; echo "</html>"; ?>===============================================