php - How to loop the query in this case? -


i have been trying loop query first value.

when same command in workbench values. doing wrong here? answers appreciated!

global $db; $stmt12 = $db->query('select `value` overriddenpropertyvalues parentguid "' . $itemguid . '";'); $propertyvaluerow = $stmt12->fetch(); while ($propertyvaluerow != null) { 

you fetching 1 value ->fetch(). that's why receive 1 value.

example here:

$query = $db->prepare('select `value` `overriddenpropertyvalues` parentguid :like');  $query->execute([':like' => $itemguid]);  $stmt->bind_result($value);  while ($query->fetch()) {     echo $value."<br/>" } 

Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -