Jump to content

mattock

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

mattock's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi I'm trying to re-write a simple 'while' loop in php.  I have had to transfer hosts, my old host had MYSQL and i could connect simply by using @mysql_connect.  How ever, my new host is MS SQL and i have to connect using ODBC. This is my old php code i'm trying to convert to MS SQL/ODBC $result = @mysql_query ($query); $row = @mysql_fetch_array ($result, MYSQL_NUM); if ($result) { while ($row = mysql_fetch_assoc($result)) { echo $row['id']; } } I have managed to connect to the database using ODBC ( $result = odbc_exec($conn, $query); ), but i'm not sure what syntax is needed to do the rest! Thanks in advance
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.