Jump to content


  • Content count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About emptry

  • Rank
  1. I am trying to make a multi preg_replace, not sure if thats the correct function. I want this outcome [link]www.mynewhomepage.com(My new homepage)[/link] to become <a href=mynewhomepage.com>My New homepage</a> I have made this code, which dosent give me what i want $string = 'i have made a new homepage visit [link]http://myhomepage.dk(My New homepage)[/link]'; $find = array('#\[link\](.+)\[\/link\]#iUs', '#\((.+)\)#iUs'); $replace = array('<a href=$1>', '</a>'); $result = preg_replace($find, $replace, $string); echo $result; And it give me this outcome: http://myhomepage.dk> Can anyone guide me or help me in the right direction of what i am doing wrong? :) Thanks and happy summer for you :) preg-replace
  2. emptry

    My page is not showed in google search

    Yiir, is that the right way to code a homepage?
  3. emptry

    My page is not showed in google search

    what about all my content in the front, category, product.php? So i should breakup index.php into header.php menu.php and include them to each page ?
  4. emptry

    My page is not showed in google search

    index.php contains: "basic script, java and php" In this file i also have standard meta, index.follow, author, copyright.. all the meta tags which is not unique. Then i got html output.. Header menu INCLUDE FILE footerinfo fotter So they are the same for each page. When i include a page, eks. front.php i got this as the first in the file <title>Kvalitetsprodukter til underpriser - Dagenshug</title> <meta name="keywords" content="dagenshug, dagens, dagens hug, deals, tilbud"> <meta name="description" content="Dagenshug tilbyder salg af kvalitetsprodukter til underpriser, nyt tilbud hver dag og uden at gå på kompromis med kvaliteten"> and then some php script and then the HTML output. a new section.. When i include category.php i got: <title>Udsalgsprodukter til skarpe priser! - Dagenshug.dk</title> ...... and so on..
  5. emptry

    My page is not showed in google search

    I found the bug I was include("googleanalystic.php") in my file at the very top, so i got "script" tag before the header .. i have alle my php code <?php bla bla bla ?> and then <head> </head> <body> in my body i am including alle my page byt the $_GET['site].php ..and i all php files eks. produtcs.php, category.php i got <title> and <meta description> - That's not good, if remove them from the php files and put them in the index.php, how i change title and descript when the user go to a new php file? .. omg, that was a bad explaning, do you understand my friend ?
  6. emptry

    My page is not showed in google search

    But what is the error ? .. eks. it displays an error on my doctype ? .. which I found correct ?
  7. emptry

    mysqli sql trouble

    Jacques1: Sorry my friend, i do not agree with you. I'm using mysqli, with great succes, and i dont find it complicated, how come you think that ?
  8. Hello, Do we have a SEO epert among us? if so, can you help me with som basic SEO? - My page is not being showed on "Ceramide Capsules" when i using this checker https://serps.com/tools/rank-checker/ it can't find it.. https://dagenshug.dk/produkt/Elizabeth-Arden-Ceramdie-Capsule none of my products can be find, and if you seach on my company name "Dagenshug" Then i'm nr. 4 ! What i'm a doing wrong ? ..
  9. emptry

    Save user search words in live search

    Hm... that's was my fear..
  10. emptry

    Save user search words in live search

    haha my friend. i havn't made the script, because i dont know how i should make it I can make it so it will store every single letter.. but that's not what i want But here is my code for the live search $(function() { $("#searchword").keyup(function(){ var text = $(this).val(); if (text != ' ') { $('#result').html(" "); $.ajax({ type: 'post', url: 'livesearch.php', data: { 'search': text }, success: function(dataReturn) { $('#result').html(dataReturn); } }); } }); }); And in my PHP $s = mysqli_query($mysql_link, "SELECT * FROM dagenshug_product WHERE product_name LIKE '%".$_POST['search']."%'"); while ($search_result = mysqli_fetch_array($s)) { print_r($search_result['product_name']); }
  11. Hello Freaks, I working on a little snippet, a live search with MySQL. Now i think it could be nice to store/save which searchword the user, did the search on. Example: User search on My new book Then i want to store that to my databse. The problem is with my script right now, where i trig the ajax on keyup. Then it will store. M My My My N My Ne...... and so on, how can i come around this and only store the hole line ..?
  12. emptry

    RewriteRule not working on all words

    Problem sovled! - Clearing the browser.. totaly! helped .. so now it works
  13. emptry

    RewriteRule not working on all words

    I just visit the site with a different browser.. and ... NO PROBLEMO! ! WHAT ! So i think i need to empty the cache in Chrome ? ... but, then hit CTRL+F5, then it shoudl empty the cache, right ?
  14. emptry

    How to display SQL Sum query in html?

    is the coloum int ? With html ? .. I would use php and echo/print it
  15. emptry

    RewriteRule not working on all words

    That is so wierd!

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.