Jump to content

xbl1

Members
  • Content Count

    214
  • Joined

  • Last visited

Community Reputation

0 Neutral

About xbl1

  • Rank
    Member
  1. Hi;I'd like to ask you a question;why my mouse cursor does not sit in the position of the leftmost and topmost of a bbcode form. Thanks.my form as following;bbcode form <form action="story_verify1.php" method="post" name="editform" onsubmit="return checkForm(this)"><table id="editform"><tr> <td id="story">My story</td></tr> <tr> <td> <input type="button" class="button" value="bold" name="bold" onclick="javascript:tag('b', '[b]', 'bold*', '[/b]', 'bold', 'bold');" onmouseover="helpline('bold')" /> <input type="button" class="but
  2. xbl1

    W3 Validator

    i pasted my website address to W3 to validate it, then it give me the error massage. But now, i get the source code from right click on the page, and validate it on the W3 again. It passed. <!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>Yourheadstone.com</title><style type="text/css">* {padding:0; margin:0;}body{ padding:0; border:0; background-image:ur
  3. xbl1

    W3 Validator

    Hi;I am implementing a search engin by php, and i alway to have a error massage when i validate my page by the W3 Validator, error massage as following, could any one help, thanks.end tag for "div" omitted, but OMITTAG NO was specifiedQuery was emptyYou may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">". my code <?php $rows = get_number_of_rows(); function get_number_of_rows(){ include("../condatabase.php"); mysql_query("SET NAMES 'utf8' COLLATE 'utf8_general_ci'"); $q=getsql("affair with t
  4. Hi;My problem is i could not print out value after i inserted echo "<div class=\"hints\">; and echo "</div>"; please see the highline .I am implementing an auto suggestiion for search engin.response.php<?php$q=$_GET["q"];include("../condatabase.php");$sql="SELECT content FROM articles WHERE content like '%".$q."%'"; $result = mysql_query($sql); $a[]=""; $m[]=""; while($row = mysql_fetch_array($result)){ $m.= $row['content']; } //$final = preg_match_all("/talking a[a-zA-Z]*/", $string); $term="/" . $q . "[a-zA-Z\s]*" . "/"; preg_match_all($term, $m,$f); $count=coun
  5. i will convert it into one dimension array
  6. but why i could not print out the 2 elements from the array of the final, it just print out the "Array" <?php$string="talking animails and get rid off talking about this facebook"; $term="talking a"; preg_match_all("/talking a[a-zA-Z]*/", $string,$final); $i=0; while($i<2){ echo $final[$i]; $i++; }?>
  7. Hi;How could i extract specific words out of a string and put into an array, please.Eg;$string="talking animails and get rid off talking about this facebook";$term="talking a";The final result will be:$final[]="talking animails, talking about ",
  8. Hi;How could i get rid off the repeat words from an array? Thankseg;$a[]="the , think , this , that , the , their , that , the , the , those";i just want the array reduce to "the, think, that,those".
  9. The following is respone.php, it works. <?phprequire_once('db.php'); include('classes/stem.php'); include('classes/cleaner.php'); if( !empty ( $_POST['search'] ) ) $string = $_POST['search']; function get_stemmer($string){ $stemmer = new Stemmer; $stemmed_string = $stemmer->stem ( $string ); return $stemmed_string; } $string=explode(" ",$string); $size=sizeof($string); $i=0; $stemmed_string=""; while($i<$size){ $word=get_stemmer($string[$i]); $stemmed_string .= " " . $word; $i++; } $
  10. the problem is the auto suggest is not working, when i type any of string into textbox, does not auto offer suggestion as google search engine does.i want to do as following: Whenever a keyup event on a textbox occur, a function in javascript is called which uses ajax to send the input in the textbox to the server The server receives the input and check for any matches in the database The matched result is sent back to the client side javascipt code, ajax, and then the result is shown in an absolute positioned div just under the input box.
  11. yes, there are some errors in his code, but i have fixed the search size and it works for searching string from database now, but i still not figure out about the form and javascript part----do the auto suggestion thing, anywhere thanks:)
  12. I am implementing a Ajax auto suggestion search from database. I find an example from http://www.roscripts.com/Ajax_autosu...abase-154.html . I have not problem with the php part about search from database, but i got a problem from the search from, i added a listerner to input tag, but it still not auto suggest anyword when i type any of word, Could any one help me, Thanks. <html> <head> <title>roScripts - Ajax auto-suggest</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <script src="lib/protot
  13. xbl1

    Zoom In Function

    Thanks for comeing here, i have knowed how to do it already
  14. Hi;I'd like to ask some advice how to have a built zoom in function for a picture like the following page, http://www5.mydavinci.com/Pesonalized-Art/...cil-Sketch.htmlthanks
×
×
  • Create New...