Jump to content

Question

Posted

Καλημέρα παιδιά!

Συγνώμη αλλά επειδή έχω αγανακτήσει με το ψάξιμο και δεν βρήκα τίποτα θεώρησα σαν τελευταία μου επιλογή να ρωτήσω εδώ…

Προσπαθώ να κάνω να έχει register μια σελίδα ώστε να βαράει ο χρήστης τον κωδικό του και αυτό να πηγαίνει μέσα στη βάση δεδομένων.

 

Έβαλα λοιπόν αυτόν τον κώδικα:

 

<?php
include"config.php";
$username = $_POST['login'];
$password = BASE64_encode($_POST['password']);


$insert = 'INSERT into accounts(login, password) VALUES("'.$username.'", "'.$password.'")';

mysql_query($insert);
?>

 

Αλλά έχω ένα πρόβλημα σε αυτό… ο κωδικός μπορεί να δημιουργείται κανονικά, γιατί καταχωρείται στην mySQL αλλά κάτι παίζει με την κωδικοποίησή του, γιατί όταν βαράω τον κωδικό και το όνομα δεν το δέχεται και λέει ότι είναι λάθος ο κωδικός…

Μπορεί να μου πει κάποιος τι κωδικοποίηση πρέπει να βάλω ώστε το client από το l2j να το διαβάζει κανονικά?

Ευχαριστώ εκ των προτέρων!

 

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and 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..

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock