Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is PHP code connecting with SQL. The issues keep populating within the while loop portion all the way to the end, it will tell

This is PHP code connecting with SQL. The issues keep populating within the while loop portion all the way to the end, it will tell me not to use echo but then more errors happen if I don't use echo. Really just need to know how to fix this, I'm sure it's some issue within me not using a ; or a comma somewhere.

Week 8 Guided Activity

while ($row = mysqli_fetch_array($query,MYSQLI_ASSOC))

{ echo "

";

echo "

";

echo "

";

echo "

";

echo "

";

echo "

";

$amount;

$total += $row['amount']; //creating a sum

$CUST_ID++;

}?>

Sales Data of Electronic Division
CUST_ID CUSTOMER ITEM DATE AMOUNT
" . $amount = $row['amount'] == 0 ? '' : number_format($row['amount'])

echo "

" $CUST_ID . "". $row['name'] ."".$row['item']."". $date('F, D, Y', strtotime($row['date'])) . "
TOTAL

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essentials Of Business Statistics Communicating With Numbers

Authors: Sanjiv Jaggia, Alison Kelly

1st Edition

78020549, 978-0078020544

More Books

Students also viewed these Finance questions

Question

Pronov Pronov

Answered: 1 week ago