e tenido unos pequeños problemitas al realizar una consulta en la db esta es la tabla:
Código:
CREATE TABLE `ven_blocks` (
`bid` int(11) NOT NULL auto_increment,
`title` varchar(255) NOT NULL,
`file` varchar(255) NOT NULL,
`posit` int(11) NOT NULL,
`active` varchar(11) NOT NULL,
`blockstyle` int(11) NOT NULL,
`side` int(11) NOT NULL,
PRIMARY KEY (`bid`)
) ;
lo q quiero es realizar una consulta donde se extraigan los valore unacamente cuando side=1 y bactive=yes e intentado usar esta consulta
Código PHP:
$link=mysql_connect("localhost","usuario","Password")
$result=mysql_query("SELECT bid, title, file, blockstyle FROM ven_blocks WHERE active='yes' AND side='l' ORDER BY posit ASC",$link);
despues tengo q aplicar un while pero noc como