<html><body bgcolor="#FFFFFF"><div>The problem is the OP never performs a Fetch of the data returned by the Query...</div><div><br></div><div>From the VoIP-info page for Cmd MYSQL</div><div><br></div><span class="Apple-style-span" style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); font-size: 12px; "><strong>MYSQL(Query</strong>&nbsp;resultid ${connid} query-string<strong>)</strong>&nbsp;<br><br>Executes standard MySQL query contained in query-string using established connection identified by ${connid}. Result of query is stored in ${resultid}.&nbsp;<br><br><strong>MYSQL(Fetch</strong>&nbsp;fetchid ${resultid} var1\ var2\ ...\ varN<strong>)</strong>&nbsp;<br><br>If any rows are available to select,&nbsp;<strong>${fetchid} is set to 1</strong>&nbsp;and a single row is fetched from a result set contained in ${resultid}. The return fields are assigned to ${var1}, ${var2} ... ${varN} respectively. If no rows are left to select,&nbsp;<strong>${fetchid} is set to 0</strong>&nbsp;and ${var1}, ${var2} ... ${varN} remain unchanged.&nbsp;</span></body></html>