Jump to content

stuck already :S


fr34k2oo4

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.