Jump to content

Recommended Posts

He guys,

 

I've been searching the net for this piece of code, but I just can't figure it out. I'm not very good at PHP just got to the basics.

I'm making a webpage for a small company.

So I made some question to make it easier for me. There are some organisations involved and the are in categories so now I want to check how many organisations are in the specified categorie.

So I only need a script that first checks and filters the categorie and then checks how many organisations are in this categorie.

 

quite some story :P still I hope someone can help me.

 

Greetings,

F2k4

 

Link to comment
https://forums.phpfreaks.com/topic/141767-stuck-already-s/
Share on other sites

I'm using a mySQL database.

I'm backwards engineering, and working on the code (which I need a lil' help with)

I still don't have a usefull way of defining a category, I think a case or switch would do.

 

I'm using the mySQL field "oCat" (wich will contain a category number. ex: 1 = Health, 2 = Psychiatry, etc.)

now I would like to filter Health from this table and let php count the amount of rows it uses in the database.

so I'd suppose a num_rows would do the trick but how... I have no clue

 

So sorry, I can't really give any examples yet...

Link to comment
https://forums.phpfreaks.com/topic/141767-stuck-already-s/#findComment-742141
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.