0

Hi all,

I got this code and try to add a +1 to the .$order_details_arr[0])

| <a href="<?php echo $html->url('/admin/order_products/view_details/'.$order_details_arr[0]); ?>">Next</a>


Basically I want to be able to show a URL that will be the .$order_details_arr[0]) result + 1 so the link will link to the next order id in the db.

2
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by bimmr
0
<a href="<?php echo $html->url('/admin/order_products/view_details/'.$order_details_arr[0]['Order']['id']); ?>">Next</a>

Im trying to figure the mathematical function to be able to do plus one (+1) to this mysql query result

.$order_details_arr[0]['Order']['id']
0
$myval = $order_details_arr[0]['Order']['id'] + 1;

Is that it?

<a href="<?php echo $html->url('/admin/order_products/view_details/'.$myval); ?>">Next</a>
0

It work perfectly, I did try something simmilar earlier but wasnt placing the $myval = $order_details_arr[0] + 1; at the right place and I also tought that I could embed directly in the url the +1

Thanks a bunch!

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.