Webeng's user avatar
Webeng's user avatar
Webeng's user avatar
Webeng
  • Member for 6 years, 9 months
  • Last seen more than 5 years ago
  • Anywhere and Everywhere
Stats
895
reputation
121k
reached
2
answers
27
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
?>
2
gold badges
12
silver badges
26
bronze badges
26
Score
16
Posts
55
Posts %
26
Score
5
Posts
17
Posts %
0
Score
17
Posts
59
Posts %
0
Score
8
Posts
28
Posts %
0
Score
7
Posts
24
Posts %
0
Score
6
Posts
21
Posts %
Top posts
View all questions and answers