Ok, my app is located here: http://www.mediaice.com/events_cal/index.php?month=8&year=2005 now click on one of the two events, look at the bottom of the pop-up it should say, UPDATE, and righ-click on that, and select Open in New Window, if you look in the url of the page you just opened it should say something like ?event_id=1, so i know i'm passing the correct variable for the right event, right? I think so! but how do i get the values for that event, so that i can see them, change them, and than hit submit and have these values saved and replace the old ones in the database, since i'm updating it. I need to have this done major help is required thanks !!
Sorry, but your javascript in the page doesn't work (Mozilla 1.7.3)
Just right click on it, and open as new window or if possible for the time being use IE?
Hi,
The update link hold an ID.
You can GET the id:
$id = $_GET[id];
THis is cross-browser js:
onclick="window.open('index.php?action=13', '', 'width=600,height=500, location=no, menubar=no, status=no,toolbar=no, scrollbars=yes, resizable=yes');
Ok thanks, well what about helping me with the updating of the page part???
user_A wrote:Ok thanks, well what about helping me with the updating of the page part???
As I said: You can get the id with $id = $_GET[id]
Hm.. Should this maybe be in newbies? Is question more:
How do I get info from the database>
in general:
$query = "select * from MYTABLE where MYTABLE.IDCOLUM = $id": $result = mysql_query($query) or die(mysql_error());
while($row= mysql_fetch_array($result)) { echo $row['YOURCOLUMNAME']; }
hmmm that's very unhelpful!!!
user_A wrote: well what about helping me with the updating of the page part???
well what about helping me with the updating of the page part???
user_A wrote:hmmm that's very unhelpful!!!
So, what do you want me to say? I gave you a general way of getting the content from a database. Look if you knew that already, then what is your question?
I am sitting here behind my comp, trying to figure out what it is where you get stuck. You need to help me help you too! I could also say have a loook at mysql.org and browse through the manual.
J.
Ok thanks, cause i was able to figure it out, also i didn't mean to be rude or anything, just that i though you could have added some details or a link to a tutorial or something alike, but none the less thanks for replying back!
Cheers.