[PHP] Please help me with these questions..

2004-01-16 Thread SASSINC Internet Solutions - Arabic Department
Hi all..

I'm a beginner in PHP.. And I'm working on a project.. I want your help please to 
learn how to :

1- MD5 with PHP values.

2- Random values in PHP.

3- Inserting values to mySQL DB by PHP and importing from them also to send echo. (For 
example : after MD5 some strings in PHP I want to insert them into the database also 
then to echo these MD5 strings).

4- How to echo something.

5- How to make some GET values like : http://www.mysitename.com/test.php?username=abc 
then insert them to the database.


Hope some experts help me with these.. I want to find some tutorials about them...also 
some examples..

Waiting your replies..

Cheers and regards..
Hadi Aladdin


Re: [PHP] Please help me with these questions..

2004-01-16 Thread Richard Davey
Hello,

Friday, January 16, 2004, 11:54:26 AM, you wrote:

SISAD I'm a beginner in PHP.. And I'm working on a project..
SISAD I want your help please to learn how to :

SISAD 1- MD5 with PHP values.

$md5 = md5($variable);

SISAD 2- Random values in PHP.

$min = 1;
$max = 100;
$random = mt_rand($min, $max);

SISAD 3- Inserting values to mySQL DB by PHP and importing
SISAD from them also to send echo. (For example : after MD5 some
SISAD strings in PHP I want to insert them into the database also
SISAD then to echo these MD5 strings).

Depends on your table structure, there are hundreds of tutorials
covering this on the web.

SISAD 4- How to echo something.

echo something;

;)

SISAD 5- How to make some GET values like :
SISAD http://www.mysitename.com/test.php?username=abc then insert
SISAD them to the database.

$username = $_GET['username'];

***Strongly*** suggest you download yourself a copy of the PHP manual,
I am on a Windows PC so personally I use the CHM version for speed and
built-in searching. You can find example code for ALL of the questions
you asked in there.

-- 
Best regards,
 Richardmailto:[EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php