Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by queryguy

  1. queryguy

    Count as 1 on same name

    $pq="pmid, count(*) from cmp group by pmid"; $pqresult = mysql_query ($pq); while($pqlist = mysql_fetch_array($pqresult)) { echo "$pqlist[]pmid]"; } hmm.. I got no results display, any helps?
  2. queryguy

    Count as 1 on same name

    This code will count the numbers of rows each name have and add up. $pqfinal=0 $pq="select * from cmp where cid='$cid'"; $pqresult = mysql_query ($pq); while($pqlist = mysql_fetch_array($pqresult)) { $q="select * from cmp where pid='$pqlist[pmid]'"; $results = mysql_query...
  3. queryguy

    multiple keywords search problem

    Any helps?
  4. queryguy

    multiple keywords search problem

    this error will only occurs when I entered 2 keywords to search, with one keyword, it display results without problems.
  5. queryguy

    multiple keywords search problem

    You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'OR items LIKE '%%' and listid LIKE '%1%' and listed LIKE '1 this is all it displayed
  6. queryguy

    multiple keywords search problem

    $terms = explode(&quot; &quot;, $_GET[&quot;items&quot;]); $query = &quot;SELECT * FROM warehouse WHERE&quot;; $numterms = count($terms); for($b = 0; $b < $numterms; $b++) { $terms[$b] = trim($terms[$b]); if($b > 0) { $query .= &quot; OR&quot;; } $query .= &quot; items LIKE '%&quot...
  7. queryguy

    close browser update database

    thanks please keep me update
  8. queryguy

    close browser update database

    Hi experts, is there a way to update my database upon closing the browser without any popup window? For example like a chat room, when you close the browser it update the database and let other know you have left the chat room. I tried onunload but it doesn't seem to work... maybe the closing...
  9. queryguy

    Hello, How can display the list

    I don't understand what is this? $cltdescr=$row&quot;cltdescr&quot;; What is $cltdescr you are referring to?
  10. queryguy

    Hello, How can display the list

    =ohh.. so I have to insert the line? $query=&quot;SELECT * from clienttypetable order by cltdescr&quot;; $rsclt=mysql_query($query,$conn); $list = mysql_num_rows($rsclt); while($i < $list) { $row = mysql_fetch_array($rsclt); $cltid=$row[&quot;cltid&quot;]...
  11. queryguy

    Hello, How can display the list

    thanks for the reply but on the form field should I change anything? or remain the same? <input type=&quot;checkbox&quot; name=&quot;book[]&quot; value=&quot;love&quot;> <input type=&quot;checkbox&quot; name=&quot;book[]&quot; value=&quot;business&quot;> <input type=&quot;checkbox&quot...
  12. queryguy

    close browser update database

    so which script language can do server side commands ? But how about those java applet script? like a java applet chat room, when the user left (Close the browser) it can update? How they do it?
  13. queryguy

    close browser update database

    Hi experts, is there a way to update my database upon closing the browser without any popup window? For example like a chat room, when you close the browser it update the database and let other know you have left the chat room. I tried onunload but it doesn't seem to work... maybe the closing...
  14. queryguy

    Hello, How can display the list

    Hello, How can display the list of checked checkbox according to database value? So when the uses want to edit the info, he/she knows that which are the one already being check. ok this is my form <form action=&quot;submit.php&quot; method=&quot;post&quot;> <input type=&quot;checkbox&quot...
  15. queryguy

    Contain certain digit script

    Oh now it works, because my ip changed. Sorry for the trouble and thanks for the help.

Part and Inventory Search

Back
Top