Ok, I'm new to PHP and scripting for vB.
I have however some experience with ASP classic back in the days
I have created a small webpage, that I load into a widget.
PHP Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
</head>
<body>
<?
$dbhost = 'xxx';
$dbuser = 'xxx';
$dbpass = 'xxx';
$dbname = 'xxx';
$currentuser = $vbulletin->userinfo['userid'];
$conn = mysql_connect($dbhost, $dbuser, $dbpass)
or die ('Error connecting to mysql');
print ("Done!");
mysql_select_db($dbname);
?>
<table>
<tr>
<td>
<td><?php echo date("Y-m-d H:i:s");?></td>
</tr>
<tr>
<td>
<?php echo("Id: ")?>
<?php echo ($currentuser);?></td>
</td>
</tr>
</table>
</body>
</html>
This is just the start.
It will be completed with a form, witch will be inserted into the database for further processing.
Right now I'm just trying to figure out how all this works