06-06-2008, 01:58 PM
I don't know C, just C++ and C#, and I have know idea what a doubly-linked-structure set is.
Your scaring me zee And I have about 2-3 years experience- I'm 13 dude.
Let's see what I have on this harddrive...
Quick PHP database setup script I wrote today:
Here's an SVG button:
I'm on a mac right now, so I don't have any C*/GML snippets. Plus, I'm a web junkie
Your scaring me zee And I have about 2-3 years experience- I'm 13 dude.
Let's see what I have on this harddrive...
Quick PHP database setup script I wrote today:
PHP Code:
<?php
//connect
$con = mysql_connect("$_POST[host]","$_POST[user]","$_POST[sqlpass]");
if ($con)
{
echo "Connected to Host";
}
else
{
die('Could not connect: ' . mysql_error());
}
//create cocoa database
if (mysql_query("CREATE DATABASE livefire",$con))
{
echo "Database created";
}
else
{
echo "Error creating database: " . mysql_error();
}
//create user table
mysql_select_db("livefire", $con);
$table= " CREATE TABLE users
(
Name varchar(15)
Pass varchar(15)
Email varchar(50)
AccType int(2)
)";
mysql_query($table, $con);
echo "Table Intialized";
//create Admin Account
$admin= " INSERT INTO users (Name,Pass,Email,AccType)
VALUES ('$_POST[name]','$_POST[pass]','$_POST[email','2') ";
mysql_query($admin,$con);
echo "Administrator Account Created";
//Finish
mysql_close($con);
unset($con,$table,$admin);
echo "Process Complete!":
?>
Here's an SVG button:
Code:
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="100%" height="100%" version="1.1"
xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient id="grad1" x1="0%" y1="0%" x2="0%" y2="100%">
<stop offset="0%" style="stop-color:#9FE2F4;
stop-opacity:1"/>
<stop offset="100%" style="stop-color:#3EA0BB;
stop-opacity:1"/>
</linearGradient>
<linearGradient id="grad2" x1="0%" y1="0%" x2="0%" y2="100%">
<stop offset="0%" style="stop-color:#FFFFFF;
stop-opacity:0.8"/>
<stop offset="100%" style="stop-color:#C1C1C1;
stop-opacity:0.8"/>
</linearGradient>
<filter id="screen">
<feBlend mode="screen" in2="BackgroundImage"/>
</filter>
</defs>
<ellipse cx="110" cy="110" rx="100" ry= "100"
style="fill:url(#grad1)" stroke="black" stroke-width="1"/>
<circle cx="110" cy="80" r="70" style="fill:url(#grad2)"/>
<text x="110" y="110" font-family="Impact" font-size="32" style="text-anchor:middle">CLick Here!</text>
</svg>