ASP.NET/PHP Function Comparison

J

Jeremy McPeak

I am new to ASP.NET. For the past few years, I have used PHP as my
server-side technology. I am wondering if there is any reference that will
show me any like functions/methods between the two languages. I am
specifically looking for a comparable mysql_fetch_object().

I started fooling around with ADO.NET, but I have not found a method that
will allow me to pull information from a datasource except by using the
number of the field (ugh). The mysql_fetch_object() function, while not the
best in the world, easier code to follow and easier maintenance.
 
J

Jeremy McPeak

mysql_fetch_object takes a result set and turns it into an object. The most
common usage is:

while ($queryInfo = mysql_fetch_object($result)) {
echo $queryInfo->fieldname;
}

I must have missed GetOrdinal. I will take a look at it. Thanks for your
help!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top