Skip to content

My PHP Task#160

Open
Chigoz169 wants to merge 1 commit into
Dufuna-CodeCamp:masterfrom
Chigoz169:Chigoz002
Open

My PHP Task#160
Chigoz169 wants to merge 1 commit into
Dufuna-CodeCamp:masterfrom
Chigoz169:Chigoz002

Conversation

@Chigoz169
Copy link
Copy Markdown
Contributor

  • Task: PHP
  1. I added a CSS file named "prod.css" and it was designed for the product log page.
  2. I added also an Overview page as asked by the tutor.
  3. My main product page is titled "index1.php".
  4. A connection file for the PHP product page was also inclusive.

<input type="text" name="number" required="required"><br>
<label>Date</label><br>
<input type="datetime-local" name="timestamp" required="required"><br>
<select name="brand" class="brand" required="required">
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done @Chigoz169
Can you fetch these brands from the database?
This is a requirement in the task specification
Build in such a way that an item whose brand we don’t know cannot be uploaded to our database. Also add functionality to know the exact day the Product was uploaded.

foreach ($data as $row) {
echo '<tr>
<td>'.$row["id"].'</td>
<td>'.$row["Brand_id"].'</td>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you display the brand name here instead of the id for readability?

@JohnItoo JohnItoo added the waiting for scholar Mentor has reviewed and needs scholars input. label Feb 17, 2020
<option value="id">Brand id</option>
<option value="1">Apple</option>
<option value="2">Armani</option>
<option value="3">Burberry</option>
Copy link
Copy Markdown
Contributor

@kunmi02 kunmi02 Feb 19, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good Job @Chigoz169

I believe you can have this brand class in an array then fetch from it instead of having a long list of option tags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

waiting for scholar Mentor has reviewed and needs scholars input.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants