Closed

Little help to PHP

Hi

I currently working on a simple webshop! I bought a complett php shopping cart:

[url removed, login to view]

The webshop is 99% ready, i add a new columnt to the countries table (shipping cost) and tried to write a custom code to display the shipping cost when users logged in - use the customer address / country_id -> shippnig cost way. I got an error message:

html:

Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\site\templates\[url removed, login to view] on line 83

Notice: Undefined index: shippcost in C:\xampp\htdocs\site\templates\[url removed, login to view] on line 85

php:

//Shipping Cost

foreach ($db->query("SELECT a.country_id, a.user_id, c.country_id, [url removed, login to view] FROM " . config_item('cart', 'table_addresses') . " a, " . config_item('cart', 'table_countries') . " c WHERE c.country_id = a.country_id AND a.user_id = '" . $session->get('user_id') . "'") as $row)

$shippcost[] = $row;

//Template values

$tpl->set('shippcost', $shippcost);

tpl:

<?php foreach ($shippcost as $row): ?>

<?php echo $row['shippcost']; ?>

<?php endforeach; ?>

Skills: MySQL, PHP

See more: site templates php, new line in php, help php, php, mysql, html, php win imagecopyresampled error supplied argument invalid, easy php help, php help error imagecreatetruecolor invalid image dimensions, ajax php help, paypal web payment pro php help, volusion customization php help, vldpersonals php help, regapi php help, upload image within form php help

About the Employer:
( 0 reviews ) United Kingdom

Project ID: #8814835

17 freelancers are bidding on average £25 for this job

sureshdevi

I can do this little help on your small webshop website giving an error. I will complete this work in a day. Looking for your reply to start this work immediately.

£18 GBP in 1 day
(865 Reviews)
7.7
rajeshsonisl

Hello! With 98% to 99% completion rate, 850+ successfully completed projects, and a 5.00 reputation (maximum possible, 5.0) (Yes, not even 4.99 average rating, can be verified on my profile page [login to view URL] More

£126 GBP in 1 day
(660 Reviews)
7.8
AndrewYer

Hello! This project is interesting for me. I'm ready to start it right noe and finish within few hours. I'll need ftp-access to the scripts. Best regards, Andrey

£20 GBP in 0 days
(79 Reviews)
5.7
SourceBest

Hi I have good experience in php / mysql and shopping cart development/troubleshooting experience. Would be able to fix this issue. Please contact to proceed. Thanks Balaji

£18 GBP in 1 day
(36 Reviews)
5.2
RajakScripts

Hi, You have incorrect offset there! The one which need to be fixed is <?php echo $row['shippcost']; ?> You have to replace 'shippcost' with 'scost' so it will become <?php echo $row['scost']; ?> Just try th More

£18 GBP in 1 day
(15 Reviews)
4.6
kailasamir

In our company, we have 25+ experts (web designers and web developers). By doing this work, we want to develop long term relationship by displaying our quality. Please give credetials of website, so we can resolv More

£18 GBP in 2 days
(3 Reviews)
4.2
suniljoshi151

Hi, I can start work on your project immediately once you confirm me and i am also open for further discussion if you want. Skype : suniljoshi151 I have 5+ years in web designing & development with good exp More

£22 GBP in 1 day
(15 Reviews)
4.1
miracitech37

Hi there, We have designed more than 100 corporate websites till date. As we are aware of the market standards, we would like to suggest you some areas which would boost your website, if improved: - Platform : More

£17 GBP in 1 day
(1 Review)
2.7
Disorder07

Ainda não foi fornecida uma proposta

£18 GBP in 2 days
(1 Review)
0.8
CrimsonThunder

I can help you with this. I have experience of working on big web application, including magento. I can debug it for you.

£10 GBP in 0 days
(1 Review)
0.4
handharbeni

hai, iam beni. can i fix your problem??

£28 GBP in 1 day
(0 Reviews)
0.0
Amir989

Hi, I am expert php programmer. I can help you with this. Please let us discuss it in more details. I am at your service.

£18 GBP in 1 day
(0 Reviews)
0.0
ankitmca010

A proposal has not yet been provided

£23 GBP in 1 day
(0 Reviews)
0.0
rpbramos

I'm a very experienced PHP Programmer and it will be a pleasure for me to help you with this project. Plus, I'll comment out every single line of code that I change so you will be able to learn why the code wasn't work More

£15 GBP in 2 days
(0 Reviews)
0.0
jidotonii

Hi, i see your pain but luckily you have met the right person for the job. i write PHP full time so i believe i can fix the error for you.

£18 GBP in 1 day
(0 Reviews)
0.0
vw1702486vw

i have seen your problem.. i am interested to solve the problem.. -----------------------------------------------------------------------------------------------------------------------------

£21 GBP in 2 days
(0 Reviews)
0.0
RicardoVWorker

A proposal has not yet been provided

£19 GBP in 1 day
(0 Reviews)
0.0