Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,163,322 members, 7,853,486 topics. Date: Friday, 07 June 2024 at 05:33 PM

Need Ur Help - Webmasters - Nairaland

Nairaland Forum / Science/Technology / Webmasters / Need Ur Help (377 Views)

I Need Ur Help People / I Need Ur Full Review / Help: Please All Nairaland Admin And Webmaster I Need Ur Help (2) (3) (4)

(1) (Reply)

Need Ur Help by skyhighweb(m): 4:11pm On Feb 28, 2017
//
$query = "SELECT shoe_id, shoes_image, shoes FROM " . $DBPrefix . "shoes";
$params[] = array(':shoe_id', floor($time_passed), 'int');
$db->query($query, $params);
$TPL_shoe1_list = '<select name="shoe1">' . "\n";
while ($row = $db->fetch())
{
$selected = ($row['shoes'] == $shoe1) ? 'selected="true"' : '';
$TPL_shoe1_list .= "\t" . '<option value="' . $row['shoes'] . '" ' . $selected . '>' . $row['shoes'] . '</option>' . "\n";
}
$TPL_shoe1_list .= '</select>' . "\n";

shoe1 in the code is a table of its own, i want to add another table shoe_image, how do i go about it?
thanks
Re: Need Ur Help by bassdow: 4:59pm On Feb 28, 2017
skyhighweb:
//
$query = "SELECT shoe_id, shoes_image, shoes FROM " . $DBPrefix . "shoes";
$params[] = array(':shoe_id', floor($time_passed), 'int');
$db->query($query, $params);
$TPL_shoe1_list = '<select name="shoe1">' . "\n";
while ($row = $db->fetch())
{
$selected = ($row['shoes'] == $shoe1) ? 'selected="true"' : '';
$TPL_shoe1_list .= "\t" . '<option value="' . $row['shoes'] . '" ' . $selected . '>' . $row['shoes'] . '</option>' . "\n";
}
$TPL_shoe1_list .= '</select>' . "\n";

shoe1 in the code is a table of its own, i want to add another table shoe_image, how do i go about it?
thanks

What you should add is another column and not another table.

This isn't where to easily assist you. Get in touch with me let me see more parts of the code and how they interconnect.
Hope you can easily take and understand instructions when guided.
Re: Need Ur Help by skyhighweb(m): 6:13pm On Feb 28, 2017
bassdow:


What you should add is another column and not another table.

This isn't where to easily assist you. Get in touch with me let me see more parts of the code and how they interconnect.
Hope you can easily take and understand instructions when guided.


sorry i meant another column my mistake, yeah assist as u can thanks i follow info

(1) (Reply)

We Can Develop Our Own Technology In Nigeria / A Graphics Designer Needed To Join A Team / I Need A Good And Affordable Web Developer.

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 10
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.