danoc (5) [Avatar] Offline
#1
In listing 3.4, the zip code value is given as a decimal
cities.zip_lookup( 10016 );


But running this code in strict mode with a zip code that begins with a zero
cities.zip_lookup( 07946 );

results in an error.

Suggestion: change the code to pass the zip code value as a string
cities.zip_lookup( '07946' );
TheWexler (56) [Avatar] Offline
#2
Thanks for the comment. That's a good find and a good suggestion!