51
neda_barna
search code
  • 2007/9/19 7:33

  • neda_barna

  • Just popping in

  • Posts: 63

  • Since: 2007/9/5 4


hi
i write search for my dictionary
and now i want use in XOOPS
but i dont know what code i must change until use this in xoops
please help me and say me waht code must changes
for example in when i get a word in a textbox ($c= "$_GET[word]";) in XOOPS what must write??
this is search.php
&#65279;<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">


<head>


<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />


<title>Untitled Document</title>


</head>



<body> 


<?php
$c
"$_GET[word]";


$query="SELECT * FROM tb2,tb4";


if(
trim($_GET[word])!='')


{
   

$query $query " WHERE word LIKE '"trim($_GET[word]) . "%' AND tb2.idF=tb4.idF AND grace='".true."' ";


}


   
$link mysql_connect("localhost","root","");


   if(!
$link) die("couldn't connect to mysql");


   
mysql_query("SET NAMES 'utf8'"$link);


   
mysql_query("SET CHARACTER SET 'utf8'"$link);


   
mysql_query("SET character_set_connection = 'utf8'"$link);


  
//$db_connection_string=mysql_connect("localhost","root","") or die("error :".mysql_error());


   
$database "dic1";


   
mysql_select_db($database) or die("coundn't open $database");


   
$result=mysql_query($query);


 
$my 0;


  
$bgcolor "#E0E0E0"// light gray

    
echo '<br><p dir="rtl"><font face="Tahoma" size="4"><b>'list of word'</b></font></p><br>';

echo 
'<div align="center"><center><table border="0"  bordercolor="#111111" width="80%">
          <tr bgcolor=#E0E0E0 align= center>
         
       <td><font face="Tahoma" size="2"><b>example</b></font></td>
      <td><font face="Tahoma" size="2"><b>meaning</b></font></td>
      <td><font face="Tahoma" size="2"><b>word</b></font></td>'
;
while (
$line mysql_fetch_array($resultMYSQL_ASSOC))
  {
  if (
$bgcolor == "#E0E0E0"){
            
$bgcolor "#FFFFFF";
        }else{
            
$bgcolor "#E0E0E0";
        }
$my $my 1;
     echo(
"<tr bgcolor=".$bgcolor."><td align= center>");

     echo 
' <font face="Tahoma" size="2">'.$line["example"].'</font>';

    echo(
"</td><td align= right>");

    echo 
' <font face="Tahoma" size="2">'.$line["meaning"].'</font>';

    echo(
"</td><td align= right>");
   
    echo 
' <font face="Tahoma" size="2">'.$line["word"].'</font>';

    echo(
"</td><td align= right>");
   
    echo(
"</td></tr>");
 }
if(
$my==0)

$query " INSERT INTO `tb6` ( `wait` ) VALUES ( '" $_GET[word] . "');";
mysql_query($query);

}
 echo(
"</table></center></div><center><br>");
//echo "</table>";
mysql_free_result($result);
mysql_close($link);
include (
'wait.php');
?>
</body>
</html>



52
neda_barna
Re: simple samples
  • 2007/9/17 9:25

  • neda_barna

  • Just popping in

  • Posts: 63

  • Since: 2007/9/5 4


but news module isnt short
i want simple example and
i want description of that
do you have description of dev news module?



53
neda_barna
simple samples
  • 2007/9/17 9:13

  • neda_barna

  • Just popping in

  • Posts: 63

  • Since: 2007/9/5 4


hi
i read some text and i know what must dev module
but i want some sample of dev module
please tell me some simple sample and description of dev module
thx



54
neda_barna
Re: development module
  • 2007/9/12 7:51

  • neda_barna

  • Just popping in

  • Posts: 63

  • Since: 2007/9/5 4


thx you help me so much

if you find any document that description abuot class and block and admin please send for me



55
neda_barna
Re: html code in xoops
  • 2007/9/12 7:47

  • neda_barna

  • Just popping in

  • Posts: 63

  • Since: 2007/9/5 4


i use kde



56
neda_barna
Re: development module
  • 2007/9/12 4:58

  • neda_barna

  • Just popping in

  • Posts: 63

  • Since: 2007/9/5 4


please tell me everyone know address that description advance dev module



57
neda_barna
Re: html code in xoops
  • 2007/9/12 3:58

  • neda_barna

  • Just popping in

  • Posts: 63

  • Since: 2007/9/5 4


note i use debian



58
neda_barna
Re: html code in xoops
  • 2007/9/12 3:43

  • neda_barna

  • Just popping in

  • Posts: 63

  • Since: 2007/9/5 4


hi i test gedit and quanta+
but h dont see good result
i dont know waht must i do
please help me



59
neda_barna
html code in xoops
  • 2007/9/11 8:51

  • neda_barna

  • Just popping in

  • Posts: 63

  • Since: 2007/9/5 4


hi
i wanted using template in my module
then i create templates folder and html file
but when i write code in this <{}>
it has error becouse i dint see any thing in my site
i read in this sitehttp://www.kaotik.biz/tutorial/tutorial_part_2.html
that write this:
NOTE: Make sure you write this in code view if you are using a wysiwyg editor such as dreamweaver!

but i havent dreamweaver.im in linux and write this code in gedit
know what must i do?
thx



60
neda_barna
Re: development module
  • 2007/9/11 7:01

  • neda_barna

  • Just popping in

  • Posts: 63

  • Since: 2007/9/5 4


thx so much that was so usefull
now,i underestand what is module
but it was Building a simple module
and now i want learn buliding advance module
do you have any thing like this
i want learn how to make claas ,block,...




TopTop
« 1 ... 3 4 5 (6) 7 »



Login

Who's Online

158 user(s) are online (123 user(s) are browsing Support Forums)


Members: 0


Guests: 158


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits