I have links that display dates, incremented from one value up to
another. When I click on each link though, it adds the value to the
url. This is a snippet of the code:
for ($i=$first_year ; $i<=$last_year; $i++)
{
echo '<td><a href="'.$_SERVE R['PHP_SELF'].
$_SERVER['REQUEST_URI'].'?year='.$firs t_year.'">'.$fi rst_year.'</a></
td>';
$first_year++;
}
The first time the link will be correct, then the second time it will
add ?year=2008 or whatever the value it to the uri. How can I make it
so that it doesn't keep adding to it, but replaces it? 3 1045
On Nov 16, 4:11 pm, mtuller <mitul...@gmail .comwrote:
I have links that display dates, incremented from one value up to
another. When I click on each link though, it adds the value to the
url. This is a snippet of the code:
for ($i=$first_year ; $i<=$last_year; $i++)
{
echo '<td><a href="'.$_SERVE R['PHP_SELF'].
$_SERVER['REQUEST_URI'].'?year='.$firs t_year.'">'.$fi rst_year.'</a></
td>';
$first_year++;
}
The first time the link will be correct, then the second time it will
add ?year=2008 or whatever the value it to the uri. How can I make it
so that it doesn't keep adding to it, but replaces it?
Do you really have a reason to include $_SERVER['REQUEST_URI'] in the
link URL? In other words, are there parameters besides "year" that
you need to keep? If not, getting rid of $_SERVER['REQUEST_URI'] will
solve your problem.
On Nov 16, 3:26 pm, ZeldorBlat <zeldorb...@gma il.comwrote:
On Nov 16, 4:11 pm, mtuller <mitul...@gmail .comwrote:
I have links that display dates, incremented from one value up to
another. When I click on each link though, it adds the value to the
url. This is a snippet of the code:
for ($i=$first_year ; $i<=$last_year; $i++)
{
echo '<td><a href="'.$_SERVE R['PHP_SELF'].
$_SERVER['REQUEST_URI'].'?year='.$firs t_year.'">'.$fi rst_year.'</a></
td>';
$first_year++;
}
The first time the link will be correct, then the second time it will
add ?year=2008 or whatever the value it to the uri. How can I make it
so that it doesn't keep adding to it, but replaces it?
Do you really have a reason to include $_SERVER['REQUEST_URI'] in the
link URL? In other words, are there parameters besides "year" that
you need to keep? If not, getting rid of $_SERVER['REQUEST_URI'] will
solve your problem.
Yes, because this code is in a function that is used in multiple pages.
On Nov 16, 3:51 pm, mtuller <mitul...@gmail .comwrote:
On Nov 16, 3:26 pm, ZeldorBlat <zeldorb...@gma il.comwrote:
On Nov 16, 4:11 pm, mtuller <mitul...@gmail .comwrote:
I have links that display dates, incremented from one value up to
another. When I click on each link though, it adds the value to the
url. This is a snippet of the code:
for ($i=$first_year ; $i<=$last_year; $i++)
{
echo '<td><a href="'.$_SERVE R['PHP_SELF'].
$_SERVER['REQUEST_URI'].'?year='.$firs t_year.'">'.$fi rst_year.'</a></
td>';
$first_year++;
}
The first time the link will be correct, then the second time it will
add ?year=2008 or whatever the value it to the uri. How can I make it
so that it doesn't keep adding to it, but replaces it?
Do you really have a reason to include $_SERVER['REQUEST_URI'] in the
link URL? In other words, are there parameters besides "year" that
you need to keep? If not, getting rid of $_SERVER['REQUEST_URI'] will
solve your problem.
Yes, because this code is in a function that is used in multiple pages.
I was mistaken. I didn't need the $_SERVER['REQUEST_URI']. Thanks. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: jane |
last post by:
HI,
I had a question on incremental backup.
We had an incremental backup every weekend. We did full backup every
other week. That is one week incremental + full , the other week is
incremental only. My question is for the first weekend incremental
backup, it took for example 1h, but the second weekend incremental
took almost 3 hours. It seems always this way, so I suppose it is not
related to the data change. And we almost had some...
|
by: Anurag |
last post by:
Hello,
I wish to find out the restore method for database that have been
incrementally backed up and in the scenario where just the delta has
been backed up.
For example sake, let us assume the following 2 scenarios:
(1) Delta Backup of database "delta_db"
Full offline backup of database "delta_db" is taken on Dec 15 and then
offline delta backup is taken every day till Dec 19. If "delta_db"
crashes on Dec 20, what steps do I follow...
|
by: Willem |
last post by:
Based on MK's TSI_SOON (http://www.trigeminal.com/)I've created a
nifty little procedure that - whenever you compact you db you get an
incremental backup copy.
Given that you have a table with version information you get
incremental backups on a per-version basis.
SEE CODE BELOW
Basic idea is: start TSISOON with the options:
1. "compact this db"
|
by: rh |
last post by:
Hi, I'd like to add an incremental search to my windows form DataGrid that
works like the one used in Windows Explorer.
In Windows Explorer, when you type a character it jumps to the first item
that matches that character. If you type another letter within a given
amount of time it will be part of the same search so that it will match the
first 2 characters and so on. If you wait long enough and then type another
character, it will treat...
|
by: Rudy Ray Moore |
last post by:
I work with a multi-project workspace. One project (the "startup" project)
has a "Configuration Type" of "Application (.exe)". The other 40 projects
have a "Configuration Type" of "Static Library (.lib)".
My question:
Should the linker incrementally link when I make a change to one of the
..cpps in one of my .lib projects?
For VC6 the answer is yes.
| |
by: Alex Shturm |
last post by:
Hi,
I am trying to activate incremental link using VC7 (.NET 2003) on a pretty big
project (executable size is more than 100Mb, and it gets linked from several
dozen of libraries and object files of different sizes - from less than 1Mb to
tens of MBs).
The problem is that option /incremental:yes does not have any effect on the
link time. I observe that the linker removes existing executable and re-links
it from scratch.
|
by: Bern McCarty |
last post by:
We have a large mixed dll that I can never seem to get to link incrementally.
Below is the console output. For simplicity I've eliminated some stuff that
we normally do when we really link this dll like manifest embedding and strong
name delay signing. Can anyone see anything wrong with my link command?
Or offer some other explanation why I can never get an incremental link out
of it? To test, I'm just touching one of the source files so...
|
by: mwelsh1118 |
last post by:
Why doesn't C# allow incremental compilation like Java?
Specifically, in Java I can compile single .java files in isolation.
The resulting individual .class files can be grouped into .jar files.
In C#, there appears to be no analog. I have to compile all my .cs
files into a single .dll.
This has serious drawbacks in terms of compilation. With Eclipse, I
change a file and only that file is re-compiled. With Visual Studio, I
|
by: lhemski |
last post by:
Guys, im using dB2 Version 9. I perform all the re-configuration of database parameter for incremental backup. I perform initial full backup and after adding some records, i perform incremental delta backup. Now, my problem is i already restore the full backup on different server/computer. But, the incremental delta backup cant be restored. For all the expert here, kindly guide me step by step how to perform incremental restoration. This will be...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |