Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1.  
  2.  
  3. <?php
  4. include "outdoorkids_functions.php";
  5. include "sites/default/outdoorkids_sqllink.php";
  6.  
  7.  
  8.  
  9.  
  10.  
  11. $order_id = $_REQUEST["order_id"];
  12.  
  13. $query = SQL_QUERY_ODK20002("SELECT * FROM outdoor_orders WHERE order_id = '$order_id'");
  14.  
  15. $result = $query['result'];
  16.  
  17. //die(var_dump(mysql_num_rows($result)));
  18.  
  19. echo "step1";
  20.  
  21. while ($row = mysql_fetch_assoc($result)){
  22. echo "STEP2";
  23. }
  24.  
  25. echo "STEP3";
  26.  
  27.  
  28. FUNCTION SQL_QUERY_ODK20002($query){
  29. include "sites/default/outdoorkids_sqllink.php";
  30. $result = mysql_query($query,$connection) or die("Couldn't Execute query " . mysql_error() . " \$result: " . var_dump($result));
  31. $count = mysql_num_rows($result);
  32. $row = mysql_fetch_assoc($result);
  33. $return = array("result" => $result, "count" => $count, "row" => $row);
  34. return $return;
  35. }
  36.  
  37.  
  38.  
  39. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement