opening asp mysql connection?

Results 1 to 2 of 2

Thread: opening asp mysql connection?

  1. #1
    Join Date
    Dec 1969

    Default opening asp mysql connection?

    Hi, i&#039;m trying to open a dsnless mysql connection, what way do i go about this in asp?<BR><BR>in php it looks fairly easy:-<BR><BR>&#060;?php<BR>mysql_connect("server_IP_add ress", "mysql_user", "mysql_password") or<BR>die("could not connect");<BR>mysql_select_db("mydb");<BR>$result = mysql_query("SELECT id, name FROM mytable");<BR><BR>while ($row = mysql_fetch_array($result, MYSQL_NUM)) {<BR>printf ("ID: %s Name: %s", $row[0], $row[1]);<BR>}<BR><BR>mysql_free_result($result);<BR>mysq l_close;<BR>?&#062;<BR><BR>but what is the asp equivalent?

  2. #2
    Join Date
    Dec 1969

    Default RE: opening asp mysql connection?

Posting Permissions

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