The first one, I have this code:
PHP Code:
<?php $rnum = rand(0,9999);
echo $rnum;?>
Quite simple for now, and I just want to add 0s if it's less than four digits to make it four digits long, so 0000-9999. I can't seem to find anything on this.
The second one is, how do I use a textarea and PHP and I guess maybe mysql too to save newspaces (which then I can convert to <p> and </p>, such as the post boxes on forums) I've not found anything on that either, but would like to be able to use it.
__________________
PHP Code:
<?php echo "Hello World"; ?>
HTML Code:
<html><head><title>Hello World</title></head><body><p>Hello World</p></body></html>
|