I successfully scripted an fetch array while loop on a table called example.

What's the name of the function that will return the name of the array that was created by the fetch array while loop?

What's the name of the function that will turn the number of rows in an array?

Thanks

$res = mysql_query("SELECT firstname, lastname FROM mytable");
while($row = mysql_fetch_assoc($res)){
    echo "My First Name: ".{$row['firstname']};
    echo "My Last Name: ".{$row['lastname']};
}

modify it and test and see :)

Thank-you very much to ShawnCplus and evstevemd. You've improved my thinking and been of great assistance.

Until Later,

Niche

Thank-you very much to ShawnCplus and evstevemd. You've improved my thinking and been of great assistance.

Until Later,

Niche

I'm glad I'm of help :)
U're Welcome

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.