ok chwila zaraz wam wszystko podam, dzięki za zainteresowanie
tworzenie tabeli:
<?php
$mysqli = mysqli_connect("localhost", "root", "bujek", "ewidencja");
if (mysqli_connect_errno()) {
printf("Nie udało sie połączyć: %s\n", mysqli_connect_error
()); }else{
$sql = "create table Rosa
(id int auto_increment primary key not null,
imie_studenta varchar(15) not null,
nazwisko_studenta varchar(20) not null,
data_urodzenia date not null,
ocena int not null)";
$rez = mysqli_query($mysqli, $sql);
if ($rez === true) {
echo "Tabela Rosa została utworzona."; }else{
printf("Nie można utworzyć tabeli: %s\n", mysqli_error
($mysqli)); }
mysqli_close($mysqli);
}
?>
[IMG=http://img269.imageshack.us/img269/3671/87664453.th.jpg][/IMG]Dodawanie rekordów:
<?php
$mysqli = mysqli_connect("localhost", "root", "bujek", "ewidencja");
if (mysqli_connect_errno()) {
printf("Nie udało sie połączyć: %s\n", mysqli_connect_error
()); }else{
$sql = "INSERT INTO testowa1 (imie_studenta, nazwisko_studenta, data_urodzenia, ocena) VALUES ('Waclaw', 'Morek', '1987-01-15', '4')";
$rez = mysqli_query($mysqli, $sql);
if ($rez === true) {
}else{
printf("Nie udało się wstawić rekordu: %s\n", mysqli_error
($mysqli)); }
mysqli_close($mysqli);
}
?>
<?php
$mysqli = mysqli_connect("localhost", "root", "bujek", "ewidencja");
if (mysqli_connect_errno()) {
printf("Nie udało sie połączyć: %s\n", mysqli_connect_error
()); }else{
$sql = "INSERT INTO Rosa (imie_studenta, nazwisko_studenta, data_urodzenia, ocena) VALUES ('Kamila', 'Burek', '1986-10-11', '5')";
$rez = mysqli_query($mysqli, $sql);
if ($rez === true) {
}else{
printf("Nie udało się wstawić rekordu: %s\n", mysqli_error
($mysqli)); }
mysqli_close($mysqli);
}
?>
<?php
$mysqli = mysqli_connect("localhost", "root", "bujek", "ewidencja");
if (mysqli_connect_errno()) {
printf("Nie udało sie połączyć: %s\n", mysqli_connect_error
()); }else{
$sql = "INSERT INTO Rosa (imie_studenta, nazwisko_studenta, data_urodzenia, ocena) VALUES ('Julia', 'Kot', '1989-08-09', '3')";
$rez = mysqli_query($mysqli, $sql);
if ($rez === true) {
}else{
printf("Nie udało się wstawić rekordu: %s\n", mysqli_error
($mysqli)); }
mysqli_close($mysqli);
}
?>


Nie wiem co jeszcze wam mogę udostępnić :/