Jump to content

Chinese

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Everything posted by Chinese

  1. Hey all, I’m instilling myself, with pleasure, JavaScript and that’s a reason why I made a Firefox Add-On which is filtering the URLs out of the source text. I have already written this Code – it wasn’t so hard That’s it: var links = content.document.getElementsByTagName('a'); for (var i = 0; i < links.length; ++i) { alert(links[i].getAttribute('href')); }; After I read this article http://www.captain.at/programming/xul/ I’m interested in saving those links in a text-file, but I don’t know how to solve this problem. Do you know another way how to do this? Would you be so kind and helm me, please? I’m despairing … Thanks a lot, Chinese from Germany
  2. How did you include it?
  3. make sure whether theres no copyright http://refactormycode.com/codes/218-eval-encoded-file-decoder
  4. Chinese

    Need a frame

    1 create a new html-file 2 put your frame into it 3 write <?php include ("yourfile.html"); ?> into your sites wherever you want
  5. please use the syntax highlighting [code=php:0]your code [/code]
  6. Hey, at first I really like your board, imho it's fairly better than the german boards. Yes I'm from germany so i got a question. I developed a search engine and now im trying to find a solution, how im also able to find synonyms. Thats why i made a table with this syntax id | word | synonym 1 | car | 1 2 | automobile | 1 3 | 05 | 3 4 | 5 | 3 (just an example - the german one would be better, because i dont speak english-slang well) If i search "automobile" the result should include the results of "car", too - logical. But that's not a problem with this code. if ($search = trim($_GET['q'])) { if (!get_magic_quotes_gpc()) $search= addslashes($search); if (strlen($search) > 50) die('Interrogation too long'); require('verbindung.php'); $synonymquery = " SELECT word FROM `synonyme` WHERE wort != '$search[0]' AND ( synonym = ( SELECT synonym FROM synonyme WHERE wort = '$search[0]' ) OR id = ( SELECT synonym FROM synonyme WHERE word = '$search' ) OR synonym = ( SELECT id FROM synonyme WHERE word = '$search[0]' ) )"; $result = mysql_query($synonymquery); while ($suche = mysql_fetch_array($result) or die (mysql_error())) { // rest of the search } } Now my question: If i search two synonyms at once, it doesnt work. In this case "automobile 5" would be such a search-term. I thought at a foreach-loop, but the foreach-loop would search for "automobile" and then for "5" and not for "autombile 5". I hope youll get the sense. Would you be so kind to help me? thanks and best wishes from germany, Chinese
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.