Jump to content

sasa

Staff Alumni
  • Content count

    2,804
  • Joined

  • Last visited

  • Days Won

    1

sasa last won the day on November 28 2014

sasa had the most liked content!

Community Reputation

2 Neutral

About sasa

  • Rank
    Prolific Member
  • Birthday 06/01/1963

Profile Information

  • Gender
    Male
  • Location
    Hrvatska
  1. sasa

    Encryption

    change $_POST["SHA1('pass')"] to SHA1($_POST['pass'])
  2. hee line 29 ($i = 0;) move after if statemans to line 36. and before foreach loop insert $i = 1;
  3. sasa

    Pass randomized array to other users

    in MySL you can use 'ORDER BY RAND(N)' where N is seed for generate random numbers. If you use same N order is been same
  4. sasa

    llitile help plz.

    you can use <button type="submit"><img src="img_url"></button>
  5. sasa

    Array Result to Databse

    change line 40 to ('$_POST[name1]','$_POST[age2]','$pic[0]')";
  6. sasa

    PHP REGISTRATION PROBLEM

    in line 21 define new variable for checkin is form valid <?php include("include/left_bar.php"); $chk = TRUE; ?> in line 27 - 28 add <?php if (isset($_POST["submit"])&&(empty($fname))) { echo"<center><em><div id='form'>Please Your Frist Name Is Required<br></div></em></center>"; $chk = FALSE;}?> same for another fields and in line 21 of 2nd file add if($chk) $submit=mysql_query("INSERT INTO users(fname,lname,username,email,password,phone,gender)VALUES('$fname','$lname','$username','$email','$password','$phone','$gender')") or die("REGISTRATION NOT COMPLETED Thanks");
  7. sasa

    PayPall litle Help pliz..

    move submit line inside form and close form tag somet6hing like this { echo "<tr>"; echo "<td align='center' width=40>". $row['Art']. "</td>"; echo "<td align='center' width=80>". $row['d']. "</td>"; echo "<td align='center' width=80>". $row['De']. "</td>"; echo "<td align='center' width=80>". $row['Lo']. "</td>"; echo "<td align='center' width=80>". $row['R']. "</td>"; echo "<td align='center' width=80>". $row['nt']. "</td>"; echo "<td align='center' width=80>". $row['Ln']. "</td>"; echo "<td align='center' width=80>". $row['sn']. "</td>"; echo "<td align='center' width=80>". $row['Fn']. "</td>"; echo "<td align='center' width=80>". $row['rdj']. "</td>"; echo "<td align='center' width=80>". $row['stanje']. "</td>"; echo "<td align='center' width=80>". $row['cena']. "</td>"; echo "<td align='center' width=80>". $row['artnr']. "</td>"; // echo '<td><button type="submit" src="shopping-cart-icon-614x460.png" width="30" height="30" id="btn_9" class="Button3" ></button></div> <form id="form_'.$row["artnr"] .'" action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_self" style="margin:0;position:absolute;left:279px;top:1146px;width:220px;height:96px;"> <input type="hidden" name="bn" value="shoping.cart"> <input type="hidden" name="cmd" value="_cart"> <input type="hidden" name="business" value="feder-matic@europe.com"> <input type="hidden" name="item_name" value="Druckfedern"> <input type="hidden" name="item_number" value="' . $row["artnr"] . '"> <input type="hidden" name="currency_code" value="EUR"> <input type="hidden" name="amount" value="1.00"> <input type="hidden" name="add" value="1"> <input type="hidden" name="quantity" value="1"> <input type="hidden" name="no_shipping" value="0"> <input type="hidden" name="no_note" value="1">'; echo '<td><button type="submit" src="shopping-cart-icon-614x460.png" width="30" height="30" id="btn_9" class="Button3" ></button>'; echo '</form>'; echo "</tr>"; } echo "</table>"; } mysql_close($db_con); ?> i change form id to. it's must bi uniq
  8. sasa

    Multi Dimensional Array combinations

    try <?php function comb($a){ $out = array(); if (count($a) == 1) { $x = array_shift($a); foreach ($x as $v) $out[] = array($v); return $out; } foreach ($a as $k => $v){ $b = $a; unset($b[$k]); $x = comb($b); foreach ($v as $v1){ foreach ($x As $v2) $out[] = array_merge(array($v1), $v2); } } return $out; } $test = array(array('red', 'blue', 'green'),array('small', 'med', 'large'),array('car', 'truck', 'van')); $x = comb($test); print_r($x); ?>
×

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.