Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2012
    Posts
    26

    Unanswered: Make this PHP code an ASP code

    Well is there any way to make it an ASP code?
    i mean i want what this code does to write the same in ASP!



    <center>Synolo Oron: <b>
    <?php
    // Edw ginete to SUM ton oron toy ethelonti!!!!
    // --------------------------------------------

    $conn = mysql_connect(HOST, USER, PASS);
    mysql_select_db(DB);

    $synolo1 = mysql_query("SELECT SUM(ores) FROM orologio WHERE kalipsi LIKE '$x_kalipsi'");

    if (!$synolo1)
    {
    print mysql_error();
    }

    print mysql_result($synolo1,0);
    mysql_close($conn);
    ?><b></center>

  2. #2
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    Read this example and give it a try
    ASP Classic Database

    Note that the example code here is accessing an Microsoft Access database, not MySQL, so you'll need to use a different provider and connection string
    George
    Home | Blog

Posting Permissions

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