Jump to content

sasa

Staff Alumni
  • Posts

    2,804
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by sasa

  1. you insert email in 1st try block

    in this query

     $mysqli->query("INSERT INTO coming_soon_emails VALUES('email', SUBSTRING(MD5(UUID()),FLOOR(RAND()*25),5), UNIX_TIMESTAMP())");

    you try to insert string 'email' not value of variable $email

    if you tray to insert variable $email it didn't work to because $email is inserted before in try block

    change your 2nd query to UPDATE or 1st to SELECT

  2. try

    <?php
    $url = 'http://www.amazon.co.uk/gp/offer-listing/B002PLB2F4/?condition=new';
    $html = file_get_contents($url);
    preg_match_all('~<ul class="sellerInformation">.*?(alt="|<b>)([^"<]+)("|<)~is', $html, $matchesarray);
    print_r($matchesarray[2]);
    ?>

×
×
  • 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.