php - While returning no results -


i've got following query in existing script - it's not returning value though should based off what's in database. there plenty of things in database should grabbing - there.

don't see wrong - barely anymore :) see anything?

$query = "select id xtags tag_id = '$tagid' order rand() limit 2"; $result = mysql_query($query) or die(mysql_error());  while($row = mysql_fetch_array($result)){              $query = "select * xtable id = '$row[id]'";             $result = mysql_query($query) or die(mysql_error());             $row2 = mysql_fetch_assoc($result);             echo $row2[title];  } 

$result being used inside loop , outside, try making new variable inside , not reusing outside one.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -