Forum Sementara Putera.com

Would you like to react to this message? Create an account in a few clicks or log in to continue.
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


2 posters

    problem dlm system

    avatar
    raj
    Ahli Baharu
    Ahli Baharu


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

    problem dlm system Empty problem dlm system

    Post by raj 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
    aimanaico
    Ahli Baharu
    Ahli Baharu


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

    problem dlm system Empty we

    Post by aimanaico 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????
    avatar
    raj
    Ahli Baharu
    Ahli Baharu


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

    problem dlm system Empty Re: problem dlm system

    Post by raj 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
    aimanaico
    Ahli Baharu
    Ahli Baharu


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

    problem dlm system Empty ....

    Post by aimanaico 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????
    avatar
    raj
    Ahli Baharu
    Ahli Baharu


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

    problem dlm system Empty masalah coding delete

    Post by raj 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>
    ]
    avatar
    raj
    Ahli Baharu
    Ahli Baharu


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

    problem dlm system Empty Re: problem dlm system

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

    i rasa problem kat connection

    Sponsored content


    problem dlm system Empty Re: problem dlm system

    Post by Sponsored content


      Current date/time is Thu Mar 28, 2024 10:41 pm