Little question with MySQL and multiple rows
#1

Well, I'm starting my MySQL ban system and I'd like to know how do I use multiple rows using mysql_num_row.

Thanks (;

@EDIT: I use StrickenKid's
Reply
#2

You need to be more specific. The mysql_num_rows function returns an integer of how many rows your [select] query returns.

Example: You have an accounts table with 2 accounts, you execute the query "SELECT * FROM accounts" and it'd return 2 from mysql_num_rows.
Reply
#3

But how do I use both rows? In an array? query[2][20][25]; quite weird;
Reply
#4

If you used the other MySQL plugin I'd be able to help you.
Reply
#5

How would it be on if I used G-sTyLeZzZ's ?
Reply
#6

Well, problem shot.

In my AdminRecord System, I had to create two lines, cid (characterid) and cidi (character id index) to make a loop and look throught all the records. Anyways thanks Calg00ne.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)