[php]What are these bits of code?
I'm just reading through some code and wondered if you guys can tell me what some things do?1.
PHP Code:
srand((double)microtime()*1000000);
Now this bit is incomplete but maybe you can help explain what it is doing.
PHP Code:
if( strlen($userform->fields["passwd1"]->value) <= 0 )
LOL. getting bigger now.
PHP Code:
$ret = db_query( "select email from {$config["prefix"]}_users where"
." email='".addslashes($userform->fields["email"]->value)."'" ) or die(db_error());
if( db_fetch_row($ret) ) {
$error .= $lang["MYACCT_INS_ERROR_06"]." <a href=\"mailto:".$cfg["core"]["mail_admin"]."\">".$cfg["core"]["name_admin"]."</a>.<br>";
}
db_free_result($ret);
4.
PHP Code:
if( strlen($error) > 0 )
PHP Code:
$stmt = sprintf
If someone could help me in my php newbieness I would be extremely grateful.
![[php]What are these bits of code?](https://www.webhostingtalk.com/images/wht_smilies/cool.gif)