dzieki bardzo chodziło o przecinki, tam gdzie mówiłeś i w VALUES a i mam jeszcze jedno pytanko dotyczące takiego błędu:
zeby było fajniej to odrazu cztery wyskoczyły:/ dotyczą drugiej tabeli
Warning: extract() [
function.extract]: First argument should be an array in
C:\xampp\test\index.php on line
172 Warning: extract() [
function.extract]: First argument should be an array in
C:\xampp\test\index.php on line
183 Warning: extract() [
function.extract]: First argument should be an array in
C:\xampp\test\index.php on line
172 Warning: extract() [
function.extract]: First argument should be an array in
C:\xampp\test\index.php on line
183
i jeszcze raz dzieki za tamto:D<?php
function get_name() {
$query_d = "SELECT name FROM artist " .
"WHERE id_artist='$namezmienna'" ;
$artistname = $name;
}
function get_surname() {
$query_a = "SELECT surname FROM artist " .
"WHERE id_artist='$surnamezmienna'";
$artistsurname = $surname;
}
{
$song_id = $row['song_id'];
$title = $row['title'];
$namezmienna = $row['id_artist_song'];
$surnamezmienna = $row['id_artist_song'];
$rok_prem = $row['rok_prem'];
$album = $row['album'];
$kod = $row['kod'];
$uwagi = $row['uwagi'];
get_name();
get_surname();
$song_details .=<<<EOD
<tr>
<th width="16%" height="32" scope="col">
<span class="style5">$title</span> </th>
<th width="21%" scope="col">
<span class="style5">$artistname $artistsurname</span> </th>
<th width="8%" scope="col">
<span class="style5">$rok_prem</span> </th>
<th width="13%" scope="col">
<span class="style5">$album</span> </th>
<th width="7%" scope="col">
<span class="style5">$kod</span> </th>
<th width="23%" scope="col">
<span class="style5">$uwagi</span> </th>
<th width="12%" scope="col"> <span class="style5">
<a href="Nowy folder/song.php?action=edit&id=$song_id">[Edytuj]</a>
<a href="Nowy folder/delete.php?type=artist&id=$song_id">[Usuń]</a> </span>
</th>
</tr>
EOD;
}
$song_details .=<<<EOD
<tr>
<th height="29" colspan="7" scope="col"><a href="song.php?action=add&id=" class="style12">[Dodaj Utwór] </a></th>
</tr>
EOD;
$song_footer ="</table>";
$song =<<<SONG
$song_header
$song_details
$song_footer
SONG;
?>
musiałem skrucic troche skrypt
172 odpowiada wierszowi 11
a 183 odpowiada 22