Jump to content

AyKay47

Members
  • Posts

    3,281
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by AyKay47

  1. It's called referential integrity, and it should be practiced.

     

    Well, that's relationships between tables.. I'm talking complete different databases.

     

    you think the concept is any different?

     

    Referential Integrity has absolutely NOTHING to do with multiple databases.

     

    From IBM...

    Referential integrity is the relational property that each foreign key value in a table exists as a primary key in the referenced table.

     

     

    Debbie

     

    As noted, you can most certainly reference tables between databases, and if the databases are to relate in any specific way, you need to.

    Please do not read a quick article on a certain subject and pretend that you know what you are talking about, you don't.

    I was responding to a suggestion of using separate databases, which in this case would not benefit you in any sort of way.

    To your question, encrypting data to be inserted into a db table is a waste of resources and db space.

    Simply prevent SQL injection in the first place using the methods that you have already been given.

  2. textarea can send data also ..

     

    anyway im having the problem of making changes inside textarea .. i couldnt do that cuz textarea considers everything a test

     

    so if i write something like this

     

    <textarea><b>test</b></texterea>

     

    it wont work , it will display <b>test</b>

     

    soo i need something like textarea that let html tags work !

     

    any advice ?

     

    this is because a textarea accepts text as plain/text instead of html.

    There are ways to convert the text in a textarea to html, what exactly are you trying to do?

  3. well you are sending $myusername to home.php, which comes from this line in the checklogin page: $myusername=$_POST['myusername'];

    So it should contain the username that the user enters.

    Check to see if register_globals is turned on, place this code at the top of the page.

    <?php echo "Register Globals: " . ini_get('register_globals'); ?>

  4. you have a space in the URL instead of a question mark (?).

    The question mark starts the query string of the URL.

     

    Use:

     

    header("location:home.php?username=" . $myusername);

     

    NOT

     

    header("location:home.php username=" . $myusername);

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.