Titel: Problem mit MySQL Abfrage
Moin
ich bekomm folgendes einfach net hin:
aus ner DB soll ein artikel abgefragt werden. Die tabelle sieht so aus:
PHP-Code:
CREATE TABLE IF NOT EXISTS `article` (
`id` int(10) unsigned NOT NULL auto_increment,
`title` text NOT NULL,
`content` longtext NOT NULL,
`author` varchar(36) NOT NULL,
`released` tinyint(1) NOT NULL,
`created` int(26) NOT NULL,
`last_edit` int(26) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
(hab ich mir von phpMyAdmin ausgebenlassen, MUSS also stimmen)
wenn ich jetzt so ne Abfrage mach
PHP-Code:
$sql = 'SELECT `title`, `content`, `released` FROM `article` WHERE `id` = ?';
$result = $db->prepare($sql);
$result->bind_param('i', $action[1]);
$result->execute();
$result->bind_result($title, $content, $released);
$result->fetch();
bekomm ich zwar was in die Variabeln $title und $released (ja, auch das richtige =)), aba nix in $content...
ich hab erst an nen schreibfehler gedacht, aber als ich jedes "content" von hand in das aus dem spaltennamen aus phpmyadmin ausgetauscht hab, hat es immer noch nicht funktioniert...
hat jemand ne idee?
MfG
_______________________________
--|________|--
This is Nudelholz.
Copy Nudelholz in your signature to help him make better Kuchen and other Teigprodukte.

|