473,382 Members | 1,302 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Update new Image Position of Table to Database

254 100+
Hi

I am retrieving images from database and displaying it in a table and then I am moving this images up/down. Now, I want to update new Image position which in the table now and update it to database. So How can I do this? I am able to move image up/down in table

Thanks
Jan 22 '08 #1
7 1509
rpnew
188 100+
Hi

I am retrieving images from database and displaying it in a table and then I am moving this images up/down. Now, I want to update new Image position which in the table now and update it to database. So How can I do this? I am able to move image up/down in table

Thanks
Hi,
You can use ID like column for each row in table. And once you are moving the images up/down update the ID accordingly. And select your data ordered by this ID.

Regards,
RP
Jan 22 '08 #2
mukeshrasm
254 100+
Hi,
You can use ID like column for each row in table. And once you are moving the images up/down update the ID accordingly. And select your data ordered by this ID.

Regards,
RP
Hi
How will I do this?
And once you are moving the images up/down update the ID accordingly. And select your data ordered by this ID.
Jan 24 '08 #3
rpnew
188 100+
Hi
How will I do this?
And once you are moving the images up/down update the ID accordingly. And select your data ordered by this ID.
Hi,
Can you provide your database structure i mean your table structure?? so that i can give a bit more details...

Regards,
RP
Jan 24 '08 #4
mukeshrasm
254 100+
Hi,
Can you provide your database structure i mean your table structure?? so that i can give a bit more details...

Regards,
RP
Table Structure:

Image Id (int)
File Type (varchar)
File Size (varchar)
File Path (varchar)
Image Date (date)

Now you may add one more field i.e. Image Order (int) to table.
Jan 25 '08 #5
mukeshrasm
254 100+
Hi,
Can you provide your database structure i mean your table structure?? so that i can give a bit more details...

Regards,
RP
Hi Bro how this problem will be solved If you can help me out. I have given the database structure as well.
Jan 30 '08 #6
rpnew
188 100+
Hi Bro how this problem will be solved If you can help me out. I have given the database structure as well.
Hi,
I was out for a while.. anyways.......
What are you doing for moving images up/down on client side...?
Like i've used javascript with onclick event... I've given the checkboxes to select rows and once user selects(checks) two checkboxes they'll be interchanged.. that what i've done....
So what i'm doing here is on second click i'm taking the ID for first clicked and second clicked rows.... POSTING them to script ... and in script i'm updating their ID(interchanging).

While displaying i'm selecting then by using order by(ID) so they are interchanged on front-end and back-end as well....
If you want to do the same thing...... i can provide you more help with code.. just post back here..

Regards,
RP
Jan 30 '08 #7
mukeshrasm
254 100+
Hi,
I was out for a while.. anyways.......
What are you doing for moving images up/down on client side...?
Like i've used javascript with onclick event... I've given the checkboxes to select rows and once user selects(checks) two checkboxes they'll be interchanged.. that what i've done....
So what i'm doing here is on second click i'm taking the ID for first clicked and second clicked rows.... POSTING them to script ... and in script i'm updating their ID(interchanging).

While displaying i'm selecting then by using order by(ID) so they are interchanged on front-end and back-end as well....
If you want to do the same thing...... i can provide you more help with code.. just post back here..

Regards,
RP

Actully I am not doing it on client side. I have given administrator to change the image position and then in the front end the changed image postion i.e. new image will be displayed. If you may give your code then it would be best for me becasuse you have explained your logic.
Jan 30 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Dave | last post by:
I have 2 tables, one with names, and another with addresses, joined by their CIVICID number (unique to the ADDRESSINFO table) in Oracle. I need to update a field in the NAMEINFO table for a...
8
by: Lauren Quantrell | last post by:
In VBA, I constructed the following to update all records in tblmyTable with each records in tblmyTableTEMP having the same UniqueID: UPDATE tblMyTable RIGHT JOIN tblMyTableTEMP ON...
25
by: Neo Geshel | last post by:
This works: <form> <asp:TextBox id="name" /> <%= name.ClientID %> </form> But this DOES NOT work: <form>
15
by: graham | last post by:
Hi all, <bitching and moaning section> I am asking for any help I can get here... I am at the end of my tether... I don;t consider myself a genius in any way whatsoever, but I do believe I have...
5
by: Roderik | last post by:
Hi, My logo images are positioned some more to the right in IE6 than in FF1.5. I like them to be as shown in FF1.5. Does anyone have a clue, why they are positioned differently in IE? Problem...
3
by: eholz1 | last post by:
Hello PHP programmers. I had a brilliant idea on one of my pages that selects some data from my mysql database. I first set the page up to display some info and an image, just one item, with a...
1
by: rsteph | last post by:
I've got some product information pages, with images and text, all setup within a table. I'm trying to add a small image in the upper right hand corner of the content div (where all the important...
3
underscore
by: underscore | last post by:
To all TSDN am here again to ask your assistance about this problem in updating my project. I have a project ROOM RESERVATION and in my 'setuproom.php' theres a table display of all room names...
4
by: justice750 | last post by:
Hi All, I am using a FormView control. The allows me to update records in the database. However, when a database field is null I can not update the field on the form. It works fine when the field...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.