Hi I am trying make one script for opencart import. I am almost done but last few line dont work and I couldnt solve it. here are that lines
$co="SELECT * FROM oc_coupon";
$navrat=mysql_db_query("$database", $co, $spojeni);
$i=0;
while (list($coupon_id) = mysql_fetch_row($navrat)):
$pole2[]= $coupon_id;
while($i == count($pole1)):
$vysledek1 = mysql_query("INSERT INTO oc_coupon_product (coupon_id, product_id) VALUES('$coupon_id','$pole1[$i]')",$spojeni);
$i = $i+1;
endwhile;
endwhile;
I check rest of the code and everything is okey so problem must be in this lines, any ideas? Rest of code is here http://pastebin.com/E7tYW7qs
mysql_*
, forgetting about the MVC, this all hurts! Maybe You should learn better programming in PHP prior to developing anything for OpenCart. – shadyyx 20 hours ago