Welcome to Discuss Everything Forums...

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.


 

Your Message

Click here to log in

What color is our footer?

 
 

You may choose an icon for your message from this list

Additional Options

  • Will turn www.example.com into [URL]http://www.example.com[/URL].

Rate Thread

You may rate this thread from 1-star (Terrible) to 5-stars (Excellent) if you wish to do so.

Topic Review (Newest First)

  • 06-07-2013, 06:07 PM
    touchdown

    help count database using php urgent 10 point. need code not explanation?

    Help count database using php... urgent 10 points?
    heres my table
    id equipment
    1 a
    2 b
    3 c
    4 a

    the output will be
    a = 2
    b = 1
    c = 1
    i want to put them in to array... heres my code that only read a.
    $result2 = mysql_query("SELECT count(*) FROM workorder WHERE equipment LIKE '$equip' AND equipment =a' AND startact BETWEEN '$from' AND '$to'");

    $rrra=$row[0];

    echo="a".$rrra;

    how to add more count to read? i need code. not explanation please

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •