Results 1 to 4 of 4
  1. #1
    pph Expert! Gordon's Avatar
    Join Date
    January 18th, 2005
    Location
    Edmonton Canada
    Posts
    5,781
    I want to use the same field twice in two different fields in my database.
    I want to use it as it comes in one field then I want to make a small alteration to it in the 2nd field can anyone tell me how to get it to repeat itself? I can do the alterations but for some reason I cannot get the original field to duplicate itself.

    Thanks in advance
    One day parasites and their ilk will be made illegal, I bet a few Lawyers will be pissed off when the day comes.
    Mr. Spitzer is fetching it nearer

    YouTrek

  2. #2
    Full Member dak142's Avatar
    Join Date
    January 18th, 2005
    Posts
    386
    Can you name the same field to two different variables and do what you want with the second?

  3. #3
    Fear and Arrogance jrrl's Avatar
    Join Date
    January 18th, 2005
    Location
    Pittsburgh
    Posts
    485
    Well, if you want to have the second field in the database, you should be able to do add the second column and do something like this:

    update tablename set newfield = oldfield;

    On the other hand, if it is easily generatable from the initial field, you might want to avoid having it in the database at all (to eliminate any update hazards).

    -John.
    There's a reason army's wear uniforms even though it makes them easier to spot. Sometimes that's what you want. Uniforms suggest organization, power, and numbers. These, in turn, inspire fear. And, as any good operative knows, there is no more effective weapon than fear.

    Hosting Comparison - HostScope - jrrl.com

  4. #4
    pph Expert! Gordon's Avatar
    Join Date
    January 18th, 2005
    Location
    Edmonton Canada
    Posts
    5,781
    Thanks for your answers guys, it must have been a problem with my server, I re-uploaded the feed again and the extra field worked.

    Thanks for your help it is very much apreciated
    One day parasites and their ilk will be made illegal, I bet a few Lawyers will be pissed off when the day comes.
    Mr. Spitzer is fetching it nearer

    YouTrek

  5. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. PHP question - include(file.php) with variables
    By teezone in forum Programming / Datafeeds / Tools
    Replies: 8
    Last Post: September 4th, 2009, 04:54 PM
  2. Can someone help with this PHP question.
    By Derrick Kinsey in forum Programming / Datafeeds / Tools
    Replies: 4
    Last Post: March 22nd, 2007, 07:23 PM
  3. Php question
    By zimmy in forum Programming / Datafeeds / Tools
    Replies: 7
    Last Post: September 16th, 2006, 10:26 PM
  4. PHP Question
    By mopek in forum Programming / Datafeeds / Tools
    Replies: 4
    Last Post: August 23rd, 2006, 04:51 PM
  5. PHP Question
    By Doug247 in forum Programming / Datafeeds / Tools
    Replies: 1
    Last Post: March 31st, 2004, 10:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •