Forum Moderators: coopster

Message Too Old, No Replies

Script bombing at is array

Arrays declared

         

Clay213

12:20 am on Aug 9, 2009 (gmt 0)

10+ Year Member



function insertrow starts with:


if (!is_array($vars) ¦¦ !is_array($nulls) ¦¦ !is_array($format)
¦¦ !is_array($types)) return -1;
else {

those arrays are declared but insertrow is returning -1 and my script is exiting.

Would null values have anything to do with this?

jatar_k

3:53 pm on Aug 11, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



do a test, it could be how they are declared

if (!is_array($vars)) echo '<br>vars is not an array';
if (!is_array($nulls)) echo '<br>nulls is not an array';
if (!is_array($format)) echo '<br>format is not an array';
if (!is_array($types)) echo '<br>types is not an array';

you could play around with declarations and see if an empty array triggers it or nulls