Two DD write the same loop code, where one dd is displayed as blank
$ztzs = $dbc->prepare ("select * from Naszt where 1=1 and Zttype= ' Qnap"); $ztzs->execute ();
Fetch ()) {?> "target=" _blank "> " >
Fetch ()) {?> "target=" _blank "> " >
On the page when one DD is more than displaying any data!
Reply to discussion (solution)
Prepare ("SELECT * from Naszt where 1=1 and Zttype= ' Qnap"); $ztzs->execute ();? >
Fetch ()) {?> "target=" _blank "> " >
Fetch ()) {?> "target=" _blank "> " >
How about this?
In addition, where 1=1 this kind of thing can be a way?
When the first round while ($row = $ztzs->fetch ()) ends, the result set is empty (the result set pointer points to the end)
So the second round has no output
You need to wrap the result set pointer to the start!
If your database class does not provide a record positioning feature, write it yourself according to the database you are using.
Like Mysql_data_seek.
In addition, where 1=1 this kind of thing can be a way to do it ....
When the first round while ($row = $ztzs->fetch ()) ends, the result set is empty (the result set pointer points to the end)
So the second round has no output
You need to wrap the result set pointer to the start!
If your database class does not provide a record positioning feature, write it yourself according to the database you are using.
Like Mysql_data_seek Soga, thank you.