网络营销电子商务研究中心  
How to buy the best prescription safety glasses in Canada? Let's study!
Go Back   网络营销电子商务研究中心 > 服务器与数据库 > MySQL
User Name
Password
 
FAQ Members List Calendar Cheap Glasses

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   IP: 106.110.158.188
Old 2014-10-27, 10:28 AM
Adelphia Adelphia is offline
初级会员
 
Join Date: 2012-01-04
Posts: 1
Adelphia 现在声名狼藉
Default 如何再sql语句中加入变量?

如何在SQL中加入变量 "SELECT * FROM user WHERE ll_user=$id"; 这里如何加入ID变量 这么写总不对 //ll_user 是字符串 $id 内容是 dove 如果是 "SELECT * FROM user WHERE ll_user='dove' " 就没问题 用变量要如何写?
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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

Prescription-glasses.com offers prescription glasses online at discount prices.
All times are GMT +8. The time now is 09:17 PM.


Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.