Webeng's user avatar
Webeng's user avatar
Webeng's user avatar
Webeng
  • Member for 7 years, 6 months
  • Last seen more than 5 years ago
  • Anywhere and Everywhere
Stats
403
reputation
167k
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
7
silver badges
17
bronze badges
2
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 %