I am having trouble in styling the table in php code. I was wondering if u can help me with it?

echo "<table border='1' padding = '20'>";

    echo '<tr>';
    echo '<th>DVD Name</th>';
    echo '<th>Price</th>';
    echo '<th>Quantity</th>';
    echo '<th> Total </th>';
    echo '</tr>';

I just want to like change the colour and increase the cell padding

Thank u

Sorry, I have done it. I will just tell u guys how I did it.

echo '<table border="1" cellpadding="10">';

    echo '<tr bgcolor="#FFC600">';
    echo '<th>DVD Name</th>';
    echo '<th>Price</th>';
    echo '<th>Quantity</th>';
    echo '<th> Total </th>';
    echo '</tr>';

Thanks for taking the time to view this

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.