Created
February 17, 2012 22:26
-
-
Save anonymous/1855792 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ($status == 1){ | |
echo 'es geht mir gut'} | |
elseif ($status == 10) | |
{echo 'es geht mir nicht gut'} | |
else { | |
echo 'es geht mir solala'} | |
switch ($status) { | |
case 1: | |
echo "GUT"; | |
break; | |
case 10: | |
echo "Schlecht"; | |
break; | |
default: | |
echo "i equals 2"; | |
} | |
<?php | |
$server = 'localhost'; | |
$user = 'root'; | |
$password = ''; | |
$connect = mysql_connect($server,$user,$password); | |
$sql = 'INSERT INTO Studenten VALUES(5678901, Tiziano, Terosso, BSC, VWL)'; | |
mysql_select_db($sql,$connect); | |
$result = mysql_query(_); | |
mysql_close($connect); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment