Welcome Guest, Not a member yet? Register   Sign In
Mysql insert not working properly
#12

[eluser]ppwalks[/eluser]
Tried this way already:
Code:
$data = array(
        array(
         'product_id' => $product,
          'cat_id'  => $cat_id
         )
  );

Which Gives:

Message: Array to string conversion

Unknown column 'Array' in 'field list'

INSERT INTO `product_category` (`cat_id`, `product_id`) VALUES (Array,Array)

So as you can see it the reverse of the problem I had earlier, this way doesn't work either


Messages In This Thread
Mysql insert not working properly - by El Forum - 08-08-2012, 11:46 AM
Mysql insert not working properly - by El Forum - 08-08-2012, 12:24 PM
Mysql insert not working properly - by El Forum - 08-09-2012, 05:10 AM
Mysql insert not working properly - by El Forum - 08-09-2012, 06:27 AM
Mysql insert not working properly - by El Forum - 08-09-2012, 07:18 AM
Mysql insert not working properly - by El Forum - 08-09-2012, 08:24 AM
Mysql insert not working properly - by El Forum - 08-09-2012, 08:45 AM
Mysql insert not working properly - by El Forum - 08-09-2012, 08:48 AM
Mysql insert not working properly - by El Forum - 08-09-2012, 08:52 AM
Mysql insert not working properly - by El Forum - 08-09-2012, 08:54 AM
Mysql insert not working properly - by El Forum - 08-09-2012, 09:14 AM
Mysql insert not working properly - by El Forum - 08-09-2012, 09:22 AM
Mysql insert not working properly - by El Forum - 08-09-2012, 09:23 AM
Mysql insert not working properly - by El Forum - 08-09-2012, 09:26 AM
Mysql insert not working properly - by El Forum - 08-09-2012, 09:30 AM
Mysql insert not working properly - by El Forum - 08-09-2012, 09:31 AM
Mysql insert not working properly - by El Forum - 08-09-2012, 09:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB