nav33n 472 Purple hazed! Team Colleague Featured Poster

Umm.. welcome to Daniweb..:confused:

nav33n 472 Purple hazed! Team Colleague Featured Poster

Ok. Try running this update_query in phpmyadmin. If you had any problem with the query, die(mysql_error()) would have given relevant error. But since its not giving you any error, I am clueless about where exactly you have your error. Oh, btw, did you do what I asked you to do ? Did you add a hidden field with the name id ?

I have the id being passed... and I can populate my form with data.

That's because, in your other window, you are passing id in the query string and here, you are accessing it like $id=$_GET; Can you post your latest edit.php ? I am still having doubts that you can access the variable id.

nav33n 472 Purple hazed! Team Colleague Featured Poster

I wouldn't say cure for aids can never be found. You never know how the technology can change and improve. A new cure may be developed to nullify the effect of those viruses(aids), immune the body and do a lot of other things. I am not saying this will happen today/tomorrow/after a week, but it will happen some day. Yes, I am (over)optimistic.

jaepi commented: it's nice to see someone who is over optimistic...but it could kill...hehehe +2
nav33n 472 Purple hazed! Team Colleague Featured Poster

My suggestion would be to echo the query you are using to update the table. I believe the id is not being passed to the query.

$query="update greenslip set date_completed='$date_completed', location='$location', person_reporting='$person_reporting', solution='$solution'
where id='$id'";
echo $query;

Try to echo the query first. You will know the problem with your query. But I strongly believe that its because id is not being passed.

nav33n 472 Purple hazed! Team Colleague Featured Poster

You can learn php here. If you have any problem understanding anything, we will always be there to help you. ;) All the best..

Cheers,
Nav

nav33n 472 Purple hazed! Team Colleague Featured Poster

I wanted to do the same thing some time ago. But its simply not possible. You can have multiple <input type="file"> tags though.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Come home soldiers !

@Serunson, I am not getting married for real :P

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome ! :?:

nav33n 472 Purple hazed! Team Colleague Featured Poster

Who had imagined of planes and high speed trains in 12th century ? But it eventually happened. So, you can't say there won't be a cure for AIDS. People are doing all sorta research these days and I am sure they will succeed one day.

nav33n 472 Purple hazed! Team Colleague Featured Poster

$id=$_POST;

You have this in your script. But where are you passing the id value ? I dont see any hidden variable where you are passing the value of id ! Put

<input type="hidden" name="id" value="<?php echo $row['id']; ?>">

this after you start the form and tell me if it works !

Cheers,
Nav

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome to Daniweb!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Try this.

mysql_query("update greenslip set date_completed='$date_completed', location='$location',  person_reporting='$person_reporting', solution='$solution' 
 where id='$id'") or die(mysql_error());

It will show you why its not updating. Then let us know, cuz, I don't see any error in your script.

nav33n 472 Purple hazed! Team Colleague Featured Poster

i need web but i don't no what program i need to make?? :D

Web ? What web ? Do you mean website ? Do you know any bit of programming ? Start by learning html.

nav33n 472 Purple hazed! Team Colleague Featured Poster

i doubt we will ever find a cure.

You never know!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Fun Loving Ostriches Were Extremely Rude & Selfish.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Next friday I am going to get married. All are welcome!

nav33n 472 Purple hazed! Team Colleague Featured Poster

con, insulate, insult

Treaty

nav33n 472 Purple hazed! Team Colleague Featured Poster

Tigers
Tigers In Germany Eat Rotten Stuff!

nav33n 472 Purple hazed! Team Colleague Featured Poster

lol.. You forgot to mention Global warming in the poll.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Use nl2br() to retain the format.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome to Daniweb!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome to Daniweb! Post your question here.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome!

nav33n 472 Purple hazed! Team Colleague Featured Poster

I think its kernel32.dll (dynamic link library, not an exe), which is located in windows/system32.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Alright ! I see the same error ! (Using WinXp, Mozilla)

Edit: No such mis-alignment in IE6.

nav33n 472 Purple hazed! Team Colleague Featured Poster

You can use window.opener.location.reload(); in the popup to reload your parent window. You can use window.close() to close the popup.

nav33n 472 Purple hazed! Team Colleague Featured Poster

[when i started this thread was doing job Nav33n bhai Hope you understand what i mean ]

Lol.. There was no need for *this* kinda entertainment.. And I don't understand what kinda job you were doing when you started this thread.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome to Daniweb!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Book your tickets here!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome :)

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome to Daniweb!

nav33n 472 Purple hazed! Team Colleague Featured Poster

In your case, you are trying to write the contents of $together directly to a file which wouldn't work. In my case, I am writing it to the file using the file pointer $fp. Using modes r+, w+ depends on how you want to handle the file.

nav33n 472 Purple hazed! Team Colleague Featured Poster

I think you can use row cat_id (`cat_id` int(11) NOT NULL auto_increment).

Oops! I didn't see that OP has an auto increment field.

maybe you can order it like this
SELECT * FROM 'jos_afm_cats' ORDER BY 'cat_id' ASC;

And yep, that's what I was talking about.

nav33n 472 Purple hazed! Team Colleague Featured Poster

lol.. Xsimulator.net, What did you have (heroine/coke/weed/?!?), while starting this thread ?

nav33n 472 Purple hazed! Team Colleague Featured Poster

Fast and furious is a good movie.

nav33n 472 Purple hazed! Team Colleague Featured Poster

I agree with buddylee17. Without having a timestamp field or an autoincrement field, you can't make out which record was added last.

Edit: you can make use of rowid (i think)

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome to Daniweb!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome!

nav33n 472 Purple hazed! Team Colleague Featured Poster

fwrite ( $filename , $together );

You write using a file pointer and not directly to a file.

$filename = 'comments.txt';
$fp = fopen( $filename, 'w+' );
fwrite($fp,$together);
fclose($fp);
nav33n 472 Purple hazed! Team Colleague Featured Poster

Calling switch statement is fine. But Say for example you have 2 textboxes with the same name. While requesting the values, dont you think the value of 1 textbox will be overwritten by the other ? But anyway, coming back to your question. If you want a function to detect any integer value, you can make use of is_int.

nav33n 472 Purple hazed! Team Colleague Featured Poster

You can access the value of the submit button using $_POST. You can then use it in a switch statement or a if loop. :confused:

How can you have input buttons with same name ? For example, If there are 2 buttons with the same name, how can you validate if that particular button was clicked ?

nav33n 472 Purple hazed! Team Colleague Featured Poster

I cant figure out what code to construct and use to check if one of the numbers has been selected (apart from the obvious 1-20 which is not an option).

What exactly do you mean by that ? Do you want to access the value of $variable when submit button is clicked ? If thats the case, then the simplest method would be to assign the value of $variable to a hidden form variable(using the onclick event).

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome!

nav33n 472 Purple hazed! Team Colleague Featured Poster

This is a very old game(!?!).

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Simple. Use header("location: url");
Eg.

if($sent){
header("location: http://www.google.com");
} else {
header("location: http://www.yahoo.com");
}
nav33n 472 Purple hazed! Team Colleague Featured Poster

I *think* you need to have IIS to run ASP scripts.