Jump to content

Exoskeletor

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Everything posted by Exoskeletor

  1. use mysql_num_rows http://php.net/manual/en/function.mysql-num-rows.php maybe for your case this is what you need, but im not sure: $num_rows = mysql_num_rows($count);
  2. Hello guys, nice forum you have here, im a happy new member with a happy problem I have this code to get the Post results of a page and it works. my problem is that it doesnt work in pages that require login and cookies. how i can alter it in order to use cookies? for example for this page http://www.zazopoulossa.gr/index.php i need to send username and password, get the cookie and then send a new post message with the cookie. $postdata = http_build_query( array( 'keyword' => $code[$i] ) ); $opts = array('http' => array( 'method' => 'POST', 'header' => 'Content-type: application/x-www-form-urlencoded', 'content' => $postdata ) ); $context = stream_context_create($opts); $result = file_get_contents('http://www.zazopoulossa.gr/index.php', false, $context);
×
×
  • 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.