<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> resultid ${connid} query-string<strong>)</strong> <br><br>Executes standard MySQL query contained in query-string using established connection identified by ${connid}. Result of query is stored in ${resultid}. <br><br><strong>MYSQL(Fetch</strong> fetchid ${resultid} var1\ var2\ ...\ varN<strong>)</strong> <br><br>If any rows are available to select, <strong>${fetchid} is set to 1</strong> 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, <strong>${fetchid} is set to 0</strong> and ${var1}, ${var2} ... ${varN} remain unchanged. </span></body></html>