Results 1 to 25 of 767
Apr 15, 2009, 04:25 #40DavidSitePoint Community Guest
Hi, wondered if anyone can help I have followed the tutorial and built the basic gallery thing, works fine. But I am basically trying to get the add new category to work and I can't work out a way to implement it and get it working with the snippet given:
function add_category( $category_name )
mysql_query( "INSERT INTO gallery_category(`category_name`) VALUES('".addslashes( $category_name )."' )" );
Call: add_category( “Category Name” );
Can anyone explain how I would implement this?