Webeng
  • Member for 5 years, 8 months
  • Last seen more than 3 years ago
  • Anywhere and Everywhere
Stats
343
reputation
130k
reached
1
answer
9
questions
Loading…
About
<?php
  require('life_config.php');//obtaining $alive value

  $sql = "UPDATE my_life SET drink=:drink, passion=:passion,
  lifestyle=:lifestyle, ongoing=:ongoing WHERE :alive";
  $stmt = $conn->prepare(sql);

  $stmt->bindParam(':drink', 'Green Tea');
  $stmt->bindParam(':passion', 'web development');
  $stmt->bindParam(':lifestyle', 'two days of jiujitsu rolling / week');
  $stmt->bindParam(':onging', 'research');
  $stmt->bindParam(':alive', $alive);

  $stmt->execute();//Life update complete
?>
3
gold badges
6
silver badges
17
bronze badges
1
Score
4
Posts
40
Posts %
0
Score
7
Posts
70
Posts %
0
Score
4
Posts
40
Posts %
0
Score
2
Posts
20
Posts %
0
Score
2
Posts
20
Posts %
0
Score
1
Posts
10
Posts %