i have 2 table for categorys and products
i want a query for get category names and products
only one query no more.
this is my tables:
CREATE TABLE IF NOT EXISTS `categorys` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=MyISAM; CREATE TABLE IF NOT EXISTS `products` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `parent` int(11) unsigned NOT NULL DEFAULT '0', `product` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=MyISAM;
query using mysql PDO
please help
thank you


Sign In
Create Account


Back to top









