Jump to content

PunjabHaker

Members
  • Posts

    33
  • Joined

  • Last visited

    Never

Everything posted by PunjabHaker

  1. I got this error: Warning: Invalid argument supplied for foreach() in E:\Web Design\rolex\test.php on line 7 Warning: Invalid argument supplied for foreach() in E:\Web Design\rolex\test.php on line 7 Warning: Invalid argument supplied for foreach() in E:\Web Design\rolex\test.php on line 7 0 :( The column is products and i have 2 rows on it with 2 products, each product has a price and i want to calculate the total price, Thank you very much
  2. Hello I have 2 columns on table cart column 1 = 230; column 2 = 250; i do that: [code] <?php include("sqlconnect.php"); $totalprice = "0"; $ok = mysql_query("select `price` from `cart`"); while(list($price)=mysql_fetch_row($ok)){ $totalprice = $price; $totalprice++; } print $totalprice; ?> [/code] I need it to show the total price 480. How can i do it ? Please help me, i need urgently Thanks very much
  3. [code]print " <a href='#' onclick="."window.open('download.php?id=$id','','width=500, height=400');return false"." title='$title'>$title</a> "; [/code] where i'm wrong ? i'm trying to open new link but it doesn't work. please help  ???
  4. I tried that:[code] <form method="post" action="site that i post to"> <input type="hidden" name="page" value="vsignup1"> <input type="hidden" name="username" value="panjaby"> <input type="submit" value="submit"> </form>[/code] When i push submit, it shows me the same error. I can't understand why it doesn't accept cookies ? It works only through oficial page, i tried with curl and with <form html and it doesn't work :( Any suggestion please ?
  5. [b]Still doesn't work  :([/b] I'm trying to register account through my web page: [code]<?php $agent = "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)"; $LOGINURL = ""; //here is a web site, doesn't matter $pstcfk = 'page=vsignup1'; $reffer = "$site"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$LOGINURL); curl_setopt($ch, CURLOPT_USERAGENT, $agent); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS,$pstcfk); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_REFERER, $reffer); curl_setopt($ch, CURLOPT_COOKIEFILE, "cookie.txt"); curl_setopt($ch, CURLOPT_COOKIEJAR, "cookie.txt"); $result = curl_exec ($ch); print $result ?>[/code] I got the same error: [b]Configuration Error: Your browser is not cofigured to accept cookies or some third party privacy software running on your system is blocking cookies from our servers.[/b]
  6. I have a script that post something on a site and then return me the next page results The site i make the post is with ".cgi" extension. I got this error: Configuration Error: Your browser is not cofigured to accept cookies or some third party privacy software running on your system is blocking cookies from our servers. I have tried with:[code] curl_setopt($ch, CURLOPT_COOKIEFILE, "cookies.txt"); curl_setopt($ch, CURLOPT_COOKIEJAR, "cookies.txt");[/code] And the same Is there any way to accept cookies in cURL ?
  7. [b]It prints me like that:[/b] site1 : user1 : pass1 site1 : user2 : pass2 site2 : user1 : pass1 site2 : user2 : pass2 [b]Question:[/b] How can i make it to print like site2 (not like site1) ?
  8. [b]passwords.txt contain:[/b] user1 pass1 user2 pass2 [b]sites.txt contain:[/b] site1 site2 [b]Code:[/b] <?php $handle = fopen("passwords.txt", "r"); $lines = file('sites.txt'); foreach ($lines as $line_num => $site) { while ($userinfo = fscanf($handle, "%s\t%s")) { list ($user, $pass) = $userinfo; print "$site : $user : $pass \n"; } } ?> [b]I need it to show me like that:[/b] site1 : user1 : pass1 site1 : user2 : pass2 site2 : user1 : pass1 site2 : user2 : pass2 [b]Question:[/b] Where i'm wrong ?
×
×
  • 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.