用于在数据库中检索图像的代码。 [英] code for retrieving image in database.
本文介绍了用于在数据库中检索图像的代码。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这适用吗?
is this applicable?
展开 | 选择 | Wrap | 行号
推荐答案
手册说什么?
Nope ...
你的代码中有一些错误,(第一)
Nope...
You have a few mistakes in your code, (first) the
Link 变量应作为第二个参数; (第二个) last_insert_id()不能在SELECT中使用,只能在INSERT中使用; (第三)如果你想要一行,那么在中是没有意义的。
这里,如果你的 form_no 是auto_increment然后这段代码应该工作:
Link variable should go as a second parameter; (second) last_insert_id() cannot be used in SELECT, only in INSERT; (third) there''s no point in while if you want a single row.
Here, if your form_no is auto_increment then this code should work:
展开 | 选择 | Wrap | 行号
这篇关于用于在数据库中检索图像的代码。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文