使用真正的转义字符串插入日期和时间? [英] Insert date and time using real escape string?
本文介绍了使用真正的转义字符串插入日期和时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨!如何使用real_escape_string插入日期和时间?
我尝试过:
Hi! how to insert date and time using real_escape_string?
What I have tried:
$query = "insert into tbltopics
set categories = '".$con->real_escape_string($_POST['categories'])."',
message = '".$con->real_escape_string($_POST['message'])."',
date = ? postedby = '".$con->real_escape_string($_SESSION['Username'])."'";
推荐答案
query = 插入tbltopics
set categories ='。
con> real_escape_string(
con->real_escape_string(
_POST [' categories'])。< span class =code-string> ',
message ='。
_POST['categories'])."', message = '".
这篇关于使用真正的转义字符串插入日期和时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文