腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
奥秘
:
mysql_fetch_row
(
res
)
mysql
、
c
我们可以替换下面的while循环吗:row =
mysql_fetch_row
(
res
); printf("%s \n", row[0]); printf("%s
浏览 17
提问于2017-07-01
得票数 0
3
回答
如何在使用PHP/MYSQL进行循环时检查下一行的值?
php
php while ($temp =
mysql_fetch_row
($
res
2)) echo "<br>currentRow
浏览 0
提问于2012-11-08
得票数 0
回答已采纳
1
回答
选择多行
c++
、
mysql
、
mysql-connector
=0) { } m_fields = (WORD)mysql_num_fields(
res
); { } my
浏览 2
提问于2011-03-11
得票数 0
1
回答
Mysql C API:命令不同步;现在不能运行此命令
mysql
、
c
“命令不同步;现在不能运行此命令” boolean MYSQL_
RES
*
res
; char(
res
= mysql_store_result(&db))) { return(row =
mysql_fetch_row
(
res
)))
浏览 12
提问于2019-06-02
得票数 0
3
回答
将多个行和列表数据转换为字符串
php
、
html
、
sql
php { echo "<option value=$fullnamephp { $fullname=$
res
[0].$
res
浏览 5
提问于2014-02-17
得票数 0
1
回答
php显示类别和子类别
php
、
mysql
、
while-loop
、
do-while
好的,现在我有两个表categories和subcategories,如下所示 id description id title现在,子类别的'catid‘将具有类别'id’的值,我希望对我的类别和子类别进行分组和循环,并如下所示显示它 subcat subcat
浏览 0
提问于2011-03-14
得票数 0
回答已采纳
1
回答
mySQl选择查询不显示第一行数据
c++
、
mysql
cout << " You have selected the option 1" << endl; if ((row1 =
浏览 2
提问于2016-04-28
得票数 0
回答已采纳
3
回答
For-循环不返回所有值
php
、
mysql
我需要从我的数据库中选择几个日期,我按如下方式选择它们: $dates =
mysql_fetch_row
(mysql_query("SELECT DISTINCT date FROM participants
浏览 2
提问于2013-03-26
得票数 0
回答已采纳
2
回答
使用jquery动态生成选择框时,选择框选项值不完美
php
、
jquery
phpwhile($data =
mysql_fetch_row
($
res
))echo "<option
浏览 0
提问于2012-11-23
得票数 0
回答已采纳
1
回答
返回意外的值(MAX(id))
php
、
mysql
、
echo
使用的代码(已建立数据库连接):$cur = mysql_query("SELECT MAX(id) FROM trades");while($cur >= 0) { echo "ERROR!";} $row = mysql_fetch_a
浏览 0
提问于2012-08-05
得票数 0
回答已采纳
4
回答
在PHP中检查
mysql_fetch_row
返回的数组中的值
php
、
sql
$
res
=mysql_query('SELECT `order` FROM `competitions`'); { }
浏览 0
提问于2011-08-01
得票数 0
1
回答
带夹板的MySQL C API :释放字段和行
mysql
、
c
、
api
、
splint
在我可以找到的关于使用can的所有示例中,调用的唯一释放函数是mysql_free_result,但行和字段从未被释放: while ((row =
mysql_fetch_row
(result)))编辑:好的,因为当没有更多行时,
mysql_fetch_row
返回null,我假设它也会从前一行的每个循环中释放所有内存。但我怎么能告诉夹板这个?EDit 2:以下是
mysql_fetch_row
的实现(Version5.5)。没有分配内存,函数将指向下一行。因此,所需要的是一个夹板注释,用于告诉Splint没有分配内存,而是共享的函数。MYS
浏览 3
提问于2014-08-11
得票数 0
回答已采纳
2
回答
为这两个PHP类制作接口?
php
、
class
、
interface
我有这两个PHP类{ { $r=mysql_query("select * from menuitems"); $
res
[]=new MenuItemrw=
mysql_fetch_row
($r)) $
res</e
浏览 0
提问于2012-03-19
得票数 2
回答已采纳
1
回答
C:不同函数中的mysql_store_result()和
mysql_fetch_row
()
mysql
、
c
在不同的函数中使用函数mysql_store_result()和
mysql_fetch_row
()有问题。如果我这样做一切都很好: MYSQL *connection; MYSQL_ROW row;int main
浏览 3
提问于2013-06-17
得票数 1
回答已采纳
3
回答
php不使用SQL;结果为空
php
、
mysql
、
database
or die("Unable to select the database"); $
res
= mysql_query("SELECT fn from links WHERE id=$scaped"); echo $
res
; ?
浏览 1
提问于2012-03-25
得票数 0
回答已采纳
3
回答
登录后,从db中为各自的用户提取数据。
php
、
html
、
mysql
、
css
、
sql
$pwd."'") or die(mysql_error()); if($
res
) $_SESSION['id']=$
res
['id']; } { echo "user name and password
浏览 2
提问于2016-10-18
得票数 1
回答已采纳
2
回答
如何在一定条件下用php隐藏<li>标签?
php
、
html
php $qry="SELECT RegDeadline FROM admin where username='root'";$row =
mysql_fetch_row
($
res
); if(strtotime($today)>strtotime($Dealine
浏览 2
提问于2015-10-25
得票数 0
2
回答
将sql结果集转换为string,php
php
、
mysql
、
mysqli
我有两个php脚本,比如"first.php“,它调用另一个php,带有GET值的"second.php”脚本。GET方法值是从数据库检索的字符串。$someString = mysqli_query($connectionName,"SELECT someString from db where id=1"; 'mywebsite.com/PHP/second.php?data
浏览 2
提问于2015-12-01
得票数 1
回答已采纳
3
回答
两个表数组之间的比较
php
、
mysql
、
arrays
、
for-loop
$
res
1=mysql_query(**query for table1**);$
res
2=mysql_query(**query for table2**);{ { $r2=<e
浏览 0
提问于2013-01-26
得票数 0
回答已采纳
2
回答
如何在Rust中索引C数组?
arrays
、
rust
、
ffi
我有一个C函数返回一个指针:type MYSQL_ROW = *const *const c_char; fn
mysql_fetch_row
(
res
: MYSQL_
RES
_REF) -> MYSQL_ROW;let row_p = match
浏览 5
提问于2015-01-20
得票数 6
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
对象存储
即时通信 IM
云直播
活动推荐
运营活动
广告
关闭
领券