Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 38
  1. #21

    Default Re: Help with my php code


    ^ dude!! it work!! thanks...

    pwede nako mo padaun sa uban codes nako...

    thanks a lot....unya rako mo gamit sa security purposes kung working na tanan...unya rapud ko mag encrypt sad..

  2. #22

    Default Re: Help with my php code

    ah cge bro,
    gdluck.

  3. #23

    Default Re: Help with my php code

    dalia ra taas sa thread. so ang problem ato ky ang form?

  4. #24

    Default Re: Help with my php code

    Quote Originally Posted by merinoabs View Post
    gi simplify lng nko bro.
    nabantayn sd nko nga double checking n cya so ako nlng gipa mub.an
    PHP Code:
    //Connect to database
    $link mysql_connect("localhost""root""") or die(mysql_error());
            
    mysql_select_db("user"$link) or die(mysql_error());

    //Get post parameters from form        
    $myusername=$_POST['user']; 
    $mypassword=$_POST['pass'];

    //Check database if username & password exist
    $sql = ("SELECT * FROM USERS WHERE username='{$myusername}' and password='{$mypassword}'") or die(mysql_error());
    $result mysql_query($sql);


    if(
    mysql_num_rows($result) > 0)
        
    header('Location:home.html');
    else 
        echo
    "FAILED TO LOGIN!"
    suwayi daw ni

  5. #25

    Default Re: Help with my php code

    problem solved...

    mag sugod nako encrypt karon ug secure sa mga forms

  6. #26

    Default Re: Help with my php code

    aw maayo nun. unsa d i na imo gbuhat?

  7. #27

    Default Re: Help with my php code

    db project proposal namo...puros rajud php ug sql ako gi gamit...

    kay di baka hanas sa uban....practice2x lang pud ko...kay lingaw man sad...hahaha

  8. #28

    Default Re: Help with my php code

    security wise imong code pwede injectkan og SQL

  9. #29

    Default Re: Help with my php code

    Quote Originally Posted by silent-kill View Post
    security wise imong code pwede injectkan og SQL
    can be prevented if they use mysql_real_escape_string or mysql_escape_string (DEPRECEATED)

    there are lot of possible solutions but this are the straight forward one... always use this if you have form that interact with your database or else ma inject-kan ang imo db...

  10. #30

    Default Re: Help with my php code

    Quote Originally Posted by silent-kill View Post
    security wise imong code pwede injectkan og SQL
    mao jud na akong gi buhat karon....ang ako lang is working cya...karon nag add naman ko mga security...
    nag encrypt pud ko...

  11.    Advertisement

Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

 
  1. need help with my php code
    By silveroni in forum Programming
    Replies: 3
    Last Post: 10-16-2010, 08:50 AM
  2. help with my samsung phone!!!!!!!!!! samsung d820
    By v2s13 in forum Gizmos & Gadgets (Old)
    Replies: 1
    Last Post: 08-17-2006, 01:24 PM
  3. help with my dial-up connection...
    By kaede in forum Networking & Internet
    Replies: 7
    Last Post: 02-08-2006, 04:24 AM
  4. MOVED: help with my dial-up connection...
    By Visual C# in forum Software & Games (Old)
    Replies: 0
    Last Post: 02-08-2006, 02:09 AM
  5. help with my old tape collection
    By steelwater in forum Music & Radio
    Replies: 3
    Last Post: 10-22-2005, 10:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top