Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Pobranie informacji z bazy danych
antos
post
Post #1





Grupa: Zarejestrowani
Postów: 1
Pomógł: 0
Dołączył: 31.07.2008

Ostrzeżenie: (0%)
-----


Witam,
Jestem początkującym programistą PHP więc zwracam się o pomoc do doświadczonych bardziej ode mnie użytkowników. Potrzebuję skrypt pobierający informacje z bazy danych. Oto szczegóły:

host bazy: localhost
user: admin
haslo: password
baza: web_portal

W bazie jest tabela fusion_posts:
CODE
CREATE TABLE IF NOT EXISTS `fusion_posts` (
`forum_id` smallint(5) unsigned NOT NULL default '0',
`thread_id` smallint(5) unsigned NOT NULL default '0',
`post_id` smallint(5) unsigned NOT NULL auto_increment,
`post_subject` varchar(100) NOT NULL default '',
`post_message` text NOT NULL,
`post_showsig` tinyint(1) unsigned NOT NULL default '0',
`post_smileys` tinyint(1) unsigned NOT NULL default '1',
`post_author` smallint(5) unsigned NOT NULL default '0',
`post_datestamp` int(10) unsigned NOT NULL default '0',
`post_ip` varchar(20) NOT NULL default '0.0.0.0',
`post_edituser` smallint(5) unsigned NOT NULL default '0',
`post_edittime` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`post_id`),
KEY `thread_id` (`thread_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin2 AUTO_INCREMENT=57 ;


Potrzebuję napisać skrypt wyświetlający tytuł i 30 pierwszych znaków z treści posta.

Z góry dzięki za pomoc (IMG:http://forum.php.pl/style_emoticons/default/rolleyes.gif)
Go to the top of the page
+Quote Post

Posty w temacie
- antos   Pobranie informacji z bazy danych   31.07.2008, 09:17:54
- - webasek   Prosty skrypt : <?php $link = mysql_conn...   31.07.2008, 09:35:46


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 23.08.2025 - 11:01