Problem med query
$spm_query = mysql_query("SELECT * FROM du_10_spm") or die(mysql_error());$spm_result = mysql_query($spm_query) or die(mysql_error());
$spm_row = mysql_fetch_array($spm_result) or die(mysql_error());
print "$row[spm1] <br />";
Hvad er der ivejen der?
SQL:
CREATE TABLE `du_10_spm` (
`id` tinyint(4) NOT NULL auto_increment,
`spm1` text NOT NULL,
`spm2` text NOT NULL,
`spm3` text NOT NULL,
`spm4` text NOT NULL,
`spm5` text NOT NULL,
`spm6` text NOT NULL,
`spm7` text NOT NULL,
`spm8` text NOT NULL,
`spm9` text NOT NULL,
`spm10` text NOT NULL,
UNIQUE KEY `id` (`id`)
) TYPE=MyISAM AUTO_INCREMENT=2 ;
#
# Dumping data for table `du_10_spm`
#
INSERT INTO `du_10_spm` VALUES (1, '- 1: Hvad er det værste du ved?', '', '', '', '', '', '', '', '', '');
