Ask a Question related to ASP.NET General, Design and Development.
-
Jeremy McPeak #1
ASP.NET/PHP Function Comparison
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.
Jeremy McPeak Guest
-
Comparison using mysql
Can i use the "LIKE" operator on a date in mysql? I want to compare the information by the different months Thanks Wesley -
String Comparison
im having trouble comparing two strings togeather. this code always returns false. please help! -
Comparison of unices
Hi I'm thinking of pushing my CV out to a few recruitment agencys I'm looking for a source describing the differences between the major unices... -
Mac - PC Comparison
How does a Mac G3 333mhz compare to a 800 mhz P3 PC? -
raw vs. ufs comparison
Hi there! someone wrote: It does. When using the raw device, any I/O is done synchronously. When using UFS, only metadata is written... -
Jeremy McPeak #2
Re: ASP.NET/PHP Function Comparison
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!
"George Ter-Saakov" <we@hotmail.com> wrote in message
news:eTFRwhxPDHA.2256@TK2MSFTNGP11.phx.gbl...that> Do not know what mysql_fetch_object() does.
> But if you are talking about SqlDataReader you can use GetOrdinal.
>
> MyValue = dataReader.GetString(dataReader.GetOrdinal("MYCOLU MN"));
>
>
> George.
>
>
> "Jeremy McPeak" <jeremy[nospam]@wdonline.com> wrote in message
> news:%23ZYPVcxPDHA.2768@tk2msftngp13.phx.gbl...> will> > 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> > 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> the> > 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>> > best in the world, easier code to follow and easier maintenance.
> >
> >
>
Jeremy McPeak Guest



Reply With Quote

