Advertisement
Guest User

Untitled

a guest
Mar 28th, 2015
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. <?php
  2. $link = mysql_connect("mysql.cba.pl", "libcurltest", "bnvbnv13");
  3. mysql_select_db("libcurltest_c0_pl", $link);
  4.  
  5. $axa = $_POST['aaa'];
  6. $bxb = $_POST['bbb'];
  7.  
  8. //ponizsze echo dziala
  9. echo "$axa $bxb";
  10.  
  11. //to result1 jest zjebane
  12. //$result1 = mysql_query("INSERT INTO table1 (ax, bx) values ( $_POST['aaa'] , $_POST['bbb'] )",$link);
  13.  
  14.  
  15. $result2 = mysql_query("SELECT * FROM table1", $link);
  16.  
  17. $num_rows = mysql_num_rows($result2);
  18.  
  19.  
  20. echo "$num_rows Rows\n"; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement