Ciao a tutti sto cercando di costriure 2 tabelle, che dovrei importare nel database.. la prima è questa:
ron_bgprofile
la sua query:
Codice PHP:
$sql "SELECT id, avlink FROM ron_bgprofile ORDER BY id DESC LIMIT $limit_start$items_per_page"
e la tabella che sto facendo:
Codice PHP:
-- 
-- 
Table structure for table `ron_bgprofile
-- 


CREATE TABLE `ron_bgprofile` ( 
  `
idint(10NOT NULL auto_increment
  `
avlinkvarchar(30NOT NULL default ''
  
PRIMARY KEY  (`id`), 
  
UNIQUE KEY `id` (`id`) 
ENGINE=MyISAM AUTO_INCREMENT=22 DEFAULT CHARSET=latin1


-- 
-- 
Dumping data for table `ron_bgprofile
-- 
e l'altra tabella è questa:
ron_kar
la sua query:
Codice PHP:
$avlnk mysql_fetch_array(mysql_query("SELECT itemurl,title FROM ron_kar WHERE id='".$avid."'")); 
e la tabella che sto facendo:
Codice PHP:
-- 
-- 
Table structure for table `ron_kar
-- 


CREATE TABLE `ron_kar` ( 
  `
itemurlint(10NOT NULL auto_increment
  `
titlevarchar(30NOT NULL default ''
  
PRIMARY KEY  (`id`), 
  
UNIQUE KEY `itemurl` (`itemurl`) 
ENGINE=MyISAM AUTO_INCREMENT=22 DEFAULT CHARSET=latin1


-- 
-- 
Dumping data for table `ron_kar
-- 
ma le ambedue tabelle non vanno.. dove sbaglio?