Made In China Talk  

Go Back   Made In China Talk > E-Commerce > E-Commerce > Internet Marketing
Directory Register FAQ Members List Calendar Mark Forums Read 中文

select then insert in php

Thread Tools Display Modes
Old 07-12-2018, 04:48 PM
click click is offline
Senior Member
Join Date: Dec 2008
Posts: 80,089
Feedback: (0)
Default select then insert in php

i want select then insert in php code but my code do nothing. public function deliverOrders($id_d){ $p=$this->db->prepare("select saldo from admins where name='".$_SESSION['name']."'"); $orders=$p->fetchAll(PDO::FETCH_OBJ); return $orders; if ($orders < 1000){ echo""; } else{ $q=$this->db->prepare("update orders_foods set status=1 where id=?"); if($q->execute([$id_d])){ echo""; } else{ echo"window.location.href='index.php?page=orders'; ...
Pay Per Click Forum
Made In China Talk
Pay-Per-Click Advertising
Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

| Business Forum | Toronto Chinese

All times are GMT +9. The time now is 12:00 AM.

All rights reserved. Copyright © 2007 Made In China Talk