Forum Sementara Putera.com

Bersama kita perkemaskan forum ini sementara forum asal dalam pemulihan.

Forum putera dah kembali. Masalah sudah berjaya diselesaikan. Sila lawati http://forum.putera.com/tanya


    problem dlm system

    Share

    raj
    Ahli Baharu
    Ahli Baharu

    Number of posts : 4
    Registration date : 21/10/2009

    problem dlm system

    Post by raj on Wed Oct 21, 2009 11:06 pm

    hi!everyone......
    i nie org baru utk forum nie....
    i ada problem dalam website sy
    so ,boleh tak sesiapa tolong i....
    plzzzzzzzzzzz

    aimanaico
    Ahli Baharu
    Ahli Baharu

    Gender : Male Number of posts : 111
    Age : 20
    Location : jaybee
    Job/hobbies : modelling,hackin
    Registration date : 22/02/2009

    we

    Post by aimanaico on Wed Oct 21, 2009 11:10 pm

    saya boleh tlg,,website or blog...
    cuma blh tlg buat logo,header,dan lain..hehehe
    TOLONG APA KENE SCAM Ker????

    raj
    Ahli Baharu
    Ahli Baharu

    Number of posts : 4
    Registration date : 21/10/2009

    Re: problem dlm system

    Post by raj on Wed Oct 21, 2009 11:14 pm

    i kena buat presentation minggu depan ,hari ahad
    i really need urs help,
    im helpless...................
    probem dalam system i(tak dpt search ,update , delete

    aimanaico
    Ahli Baharu
    Ahli Baharu

    Gender : Male Number of posts : 111
    Age : 20
    Location : jaybee
    Job/hobbies : modelling,hackin
    Registration date : 22/02/2009

    ....

    Post by aimanaico on Wed Oct 21, 2009 11:26 pm

    ermmm, boleh x trgkn lebih dri tu x phm sgt maslh awk...
    x bleh {delete,update} cmna tu????

    raj
    Ahli Baharu
    Ahli Baharu

    Number of posts : 4
    Registration date : 21/10/2009

    masalah coding delete

    Post by raj on Thu Oct 22, 2009 12:32 am

    baru tadi dapat coding update...
    yg nie coding delete.mcm ada masalah dlm nie.
    page nie kosong je


    [<form method = "post" action = "DeleteProduct_p.php">
    <?
    // connect to MySQL database server
    $connection = mysql_connect("localhost", "root", "")
    or die("Could not connect to MySQL".mysql_error());

    // select the specified database
    $selection = mysql_select_db("product info")
    or die("Unable to select database.".mysql_error());

    $submit = $_POST["submit"];
    if($submit == "Search")
    {
    if(isset($_POST["Code"]))
    { // create the query
    $ID = $_POST["Code"];
    $sql = "SELECT * from product where Code = '$ID'";

    // execute query
    $result = mysql_query($sql)
    or die("SQL select statement failed");

    // retrieves a row data and returns it as an associative array
    if($row = mysql_fetch_array($result))
    { // display direct from array

    echo "Code : $row[Code] <br>";

    echo"Name : $row[Name] <br>";

    echo"Category : $row[Category]<br>";

    echo"Description: $row[Description]<br>";

    echo"Price (RM) : $row[Price]<br>";

    echo"Image : $row[image]<br>";

    echo "<input type='hidden' name='Code' value='$row[Code]'>";

    echo"<p><input type ='submit' name='submit' value = 'Confirm?'>";
    echo" <input type ='submit' name='submit' value = 'Cancel'>";
    }

    else
    {
    print "<script language = 'javascript'>window.alert('No record found!');window.location.href='DeleteProduct.php'</script>";
    }

    }
    }

    if($submit == "Confirm?")
    {
    $ID = $_POST["Code"];
    $sql= "DELETE FROM product WHERE Code = '$ID'";
    $result = mysql_query($sql);
    print "<script language = 'javascript'>window.alert('Record deleted successfully.');window.location.href='ManageProduct.php'</script>";
    }

    if($submit == "Cancel")
    {
    print "<script language = 'javascript'>window.alert('Process product deletion is aborted.');window.location.href='ManageProduct.php'</script>";
    }

    ?>
    </form>
    ]

    raj
    Ahli Baharu
    Ahli Baharu

    Number of posts : 4
    Registration date : 21/10/2009

    Re: problem dlm system

    Post by raj on Thu Oct 22, 2009 12:38 am

    i rasa problem kat connection

    Sponsored content

    Re: problem dlm system

    Post by Sponsored content Today at 8:31 pm


      Current date/time is Mon Dec 05, 2016 8:31 pm