1. Welcome to PHCorner Forums. Take a moment to Sign up and gain unlimited access and extra privileges that guests are not entitled to, such as:

    All that and more! Registration is quick, simple and absolutely free. Join our community today!

HTML CODE how to connect my sql database

Discussion in 'Coding, Programming' started by momo18, Jul 17, 2016.

  1. Mga ka ph may tanong ako, sana matulungan ninyo ako..
    paano po iconnect ang html code . na ginawa sa may sql database?
    sana po matulugan niyo ako for may thesis po.


    Graduating. sana may makatulong
     
  2. Gamit ka nalang ng xampp
     
  3. code ba hanap mo o process paano i connect?

    php code
    <?php
    //connect to mysql database
    $con = mysqli_connect("localhost", "root", "", "testdb") or die("Error " . mysqli_error($con));
    ?>
     
    elgintoyok likes this.
  4. Yukinoshita

    Yukinoshita Addict Established

    First i define mo muna kung ano ang HTML or intindihin mo talaga.
    Second alamin mo ang PHP, (server side) or use python or kung san ka sanay,
    Pero by the looks of it wla ka masyado alam sa kanya. HTML is di sya totally makakaganyan at hindi talaga since Text Mark Up languange lang yan, Meaning halos more on outputs lang and sets ng ibang bagay syempre pede din naman gumawa ng dynamic pages gamit ang HTML, pero hinahaluan din sya ng iba commonly, mga iba pang script.
    ^ try the code above okay yan depende per person / programmer / how you interpret ang isang bagay since ang pag pprogram eh parang words natin na writen in a different manner lang. Yung code above is pag connect sa DB mo using PHP.

    Yung iba na MYSQL + PHP is halos mysql lang with php tags in it / php format. if marunong ka mag insert, delete, select and such madali mo lang mattutunan yan, yung php din naman ksi is server side.

    And graduating ka pa pala pang thesis :/
    dapat mga ganyan before high school self study na or pinagaaralan or what. Bago piliin ang course. Hmmm,
     
    Anarchy likes this.
Tags / Keywords: