I am working on a script to generate xml feed for oodle and vast.
I would like to select multiple category ids in an sql statement.
The select statement looks like this:
$sql = “select * from ec4_ad where catid=$feed_id order by link_id”;
The category is defined in a long array like this:
$feed_vast[“vehicles_id”]=575;
I would like to have something like this:
$feed_vast[“vehicles_id”]=575,574,569;
So I ultimately want in the first line: $feed_id = 575,574,569
($feed_id to represent multiple values)
The guy missed the " for a string variable, that means 100% that hes only modifying some script done by someone else, and that it’s the first time he works with php code.
I’m suggesting he speed reads some PHP quick start guide or something.