So I’m newish to php. I can add, edit, delete, and move data around pretty well.
But I came across a problem today and I have not used arrays much so…
I have a PDF I’m trying to merge data into. I need that data in an array. I can get the data from a simple query but how do I get that query data into an array? Could I do something like this…
[php]
while($row = mysql_fetch_array($result))
{
$name=$row[‘name’];
$date=$row[‘date’];
}[/php]
then
[php]
$fields = array
(
“company_business_name” => “$name”,
“date” => “$date”
);[/php]
This is merging data into a PDF usig fpdf since the host does not allow me to use pdf_new().