Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

drupal 7 db_query example

	$zip_codes=db_query("SELECT a.zip_code FROM {cart_scheduler_cities} AS a");
	$zip_array = db_fetch_object($zip_codes );

if (! in_array($form_state['values']['delivery_postal_code'],$zip_array)) {


Source by www.drupal.org #
 
PREVIOUS NEXT
Tagged: #drupal
ADD COMMENT
Topic
Name
1+3 =