user avatar
user avatar
user avatar
Webeng
  • Member for 5 years, 1 month
  • Last seen more than 3 years ago
  • Anywhere and Everywhere
Stats
855
reputation
104k
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
?>
1
gold badge
11
silver badges
25
bronze badges
23
Score
16
Posts
55
Posts %
23
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