ASP.NET/PHP Function Comparison

  • Thread starter Thread starter Jeremy McPeak
  • Start date Start date
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.
 
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!
 
Back
Top