ASP.NET/PHP Function Comparison

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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
    2. String Comparison
      im having trouble comparing two strings togeather. this code always returns false. please help!
    3. 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...
    4. Mac - PC Comparison
      How does a Mac G3 333mhz compare to a 800 mhz P3 PC?
    5. 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...
  3. #2

    Default 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...
    > 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...
    > > 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139