![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 401 Pomógł: 0 Dołączył: 18.04.2003 Skąd: Trójmiasto Ostrzeżenie: (0%) ![]() ![]() |
[php:1:33ad3e57a2]mysql_connect('localhost', 'uzytkownik', 'haslo') or
die('Nie można się połączyć'); mysql_select_db('baza'); $result = mysql_list_tables(); while (($row = mysql_fetch_row($result)) printf ("Tabela: %sn", $row[0]); mysql_free_result($result);[/php:1:33ad3e57a2] To jest zywcem z manuala wyciagniete ale nie dziala, wie ktos dlaczego ? Mnie wypisuje : Parse error: parse error, unexpected T_STRING in C:apachehtdocstestylist_tables.php on line 9 ale osochosi ? bo ja nie bardzo kumam dlaczego tak akuratnio nie moze byc ? |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarząd Postów: 2 277 Pomógł: 6 Dołączył: 27.12.2002 Skąd: Wołów/Wrocław ![]() |
Cytat str_replace
str_replace -- Replace all occurrences of the search string with the replacement string Description mixed str_replace ( mixed search, mixed replace, mixed subject [, int &count]) This function returns a string or an array with all occurences of search in subject replaced with the given replace value. If you don't need fancy replacing rules, you should always use this function instead of ereg_replace() or preg_replace(). |
|
|
![]() ![]() |
![]() |
Aktualny czas: 8.10.2025 - 05:55 |