Ciao a tutti sto cercando di costriure 2 tabelle, che dovrei importare nel database.. la prima è questa:
ron_bgprofile
la sua query:
e la tabella che sto facendo:Codice PHP:$sql = "SELECT id, avlink FROM ron_bgprofile ORDER BY id DESC LIMIT $limit_start, $items_per_page";
e l'altra tabella è questa:Codice PHP:--
-- Table structure for table `ron_bgprofile`
--
CREATE TABLE `ron_bgprofile` (
`id` int(10) NOT NULL auto_increment,
`avlink` varchar(30) NOT NULL default '',
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=22 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `ron_bgprofile`
--
ron_kar
la sua query:
e la tabella che sto facendo:Codice PHP:$avlnk = mysql_fetch_array(mysql_query("SELECT itemurl,title FROM ron_kar WHERE id='".$avid."'"));
ma le ambedue tabelle non vanno.. dove sbaglio?Codice PHP:--
-- Table structure for table `ron_kar`
--
CREATE TABLE `ron_kar` (
`itemurl` int(10) NOT NULL auto_increment,
`title` varchar(30) NOT NULL default '',
PRIMARY KEY (`id`),
UNIQUE KEY `itemurl` (`itemurl`)
) ENGINE=MyISAM AUTO_INCREMENT=22 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `ron_kar`
--

Rispondi quotando
