Search found 15 matches

by vamsinadella
Tue May 08, 2007 3:53 pm
Forum: PHP - Code
Topic: Php Encryption Algorithms -- Help Needed!!!
Replies: 7
Views: 1092

stereofrog, Thank you for responding. I'm trying to encrypt a string. For ex. say we have a string "This is an example string" and i have to send this string to a user. But i do not want to send it as it is so i want to encrypt it. to achieve that we can use many php functions like SHA(), ...
by vamsinadella
Mon May 07, 2007 7:30 pm
Forum: PHP - Code
Topic: Php Encryption Algorithms -- Help Needed!!!
Replies: 7
Views: 1092

Php Encryption Algorithms -- Help Needed!!!

Hi all, In my application, I'm trying to encrypt a certain string and send it back to the user by email. Currently i'm using SHA(1). I tried SHA and MD5 also. The problem with these is they give a really long (40 characters) encrypted string. The users are freaking out seeing such a big string. To m...
by vamsinadella
Wed Jan 31, 2007 12:19 pm
Forum: PHP - Code
Topic: JS Function in PHP && GET THE RETURNED VALUE in PHP
Replies: 10
Views: 462

I WANT: s1 - select box s2 s3 s4 - select boxes but dependent on s1. for example, if i select a value a froms1, the s2, s3, s4 should show me values pertaining to s1. for ex - consider this: you have a "car make" select box, "model" select box and "type" select box firs...
by vamsinadella
Wed Jan 31, 2007 11:26 am
Forum: PHP - Code
Topic: JS Function in PHP && GET THE RETURNED VALUE in PHP
Replies: 10
Views: 462

JS Function in PHP && GET THE RETURNED VALUE in PHP

Hi, I have been struggling from a long time to accomplish dependable select boxes in my php page. I have a select box say s1, which, on change should effect a few other select boxes say s2, s3, s4 to change options (ofcourse based on the value of s1). What i did is - i wrote a JS function to get the...
by vamsinadella
Wed Jan 10, 2007 5:17 pm
Forum: PHP - Code
Topic: PHP - Querying and Displaying data from MYSql
Replies: 4
Views: 407

- Solved

Hi Volka, Thanks for the response. Actually, i figured it out myself. I removed the 'mysql_real_escape_string' and it worked....everything worked... and now the page is ready. One question though. I have used this 'mysql_real_escape_string' in another page and it worked fine. The only difference tho...
by vamsinadella
Wed Jan 10, 2007 2:43 pm
Forum: PHP - Code
Topic: PHP - Querying and Displaying data from MYSql
Replies: 4
Views: 407

PHP - Querying and Displaying data from MYSql

Hi, I should design a form that gets data from mysql dB, based on the user selection on the form, and display it on the same page. I facing a werd problem. All my values are becoming nulls once i hit the 'Query' button. So i commented all my code to get to the exact problem. Now, all i have is this:...
by vamsinadella
Thu Jan 04, 2007 5:55 pm
Forum: PHP - Code
Topic: DATE -TIME Question
Replies: 15
Views: 1564

DONE......It's working...i guess the way i was inserting nulls was wrong. i played around with the quotes for some time and i got it. Thanks you guys for all the help. This si the first time i'm coding php and you guyz have been great. As they say the reward for good work is more work....So I'll bug...
by vamsinadella
Thu Jan 04, 2007 5:00 pm
Forum: PHP - Code
Topic: DATE -TIME Question
Replies: 15
Views: 1564

Thanks Volka. That was fantastic. It looks so organized. I like it and will definitely implement it. But, my problem is not with data insert, but with inserting null values (and that too, null values for datetime and integer datatypes). Your code below checks for data entry and forces the user to en...
by vamsinadella
Thu Jan 04, 2007 4:17 pm
Forum: PHP - Code
Topic: DATE -TIME Question
Replies: 15
Views: 1564

Still not able to get it to work.....It is just throwing the same errors....

I strongly feel that there is something wrong with the quotes and the way i'm handling the 'datetime' field, but am not able to figure out what it is exactly.

Any more suggestions?

Thanks,

- vamsi
by vamsinadella
Thu Jan 04, 2007 2:44 pm
Forum: PHP - Code
Topic: DATE -TIME Question
Replies: 15
Views: 1564

Sorry feyd but i did not understand what you implied. I should not put quotes where? In the sql statement or in the $_POST statement? Or should i put quotes??? Sorry but i'm confused. As for mysql_real_escape_string(), i'm implementing it on all the variables. and can i say: mysql_real_escape_string...
by vamsinadella
Thu Jan 04, 2007 1:48 pm
Forum: PHP - Code
Topic: DATE -TIME Question
Replies: 15
Views: 1564

I have implemented both the suggestions above by Feyd and Everah. Changes - i used this to fetch the variables.... $target_ga_date=$_POST['targetgadate']; $actual_ga_date=$_POST['actualgadate']; Then i set them to null and initiated them with user values when the form is posted.... $target_ga_date =...
by vamsinadella
Wed Jan 03, 2007 6:53 pm
Forum: PHP - Code
Topic: DATE -TIME Question
Replies: 15
Views: 1564

Hi Feyd, I tried removing the quotes in the sql statement and also removed them while getting the values into the variables. Like: $target_ga_date=$_POST[targetgadate]; $actual_ga_date=$_POST[actualgadate]; instead of $target_ga_date=$_POST['targetgadate']; $actual_ga_date=$_POST['actualgadate']; Bu...
by vamsinadella
Wed Jan 03, 2007 6:39 pm
Forum: PHP - Code
Topic: DATE -TIME Question
Replies: 15
Views: 1564

Hey thanks for the response.....andsorry for not using correct tags... $sql1 = "insert into datahub.targetdetails". "(lastupdate, servermodeltable_id1, codename, targetesxrelease, targetgadateshort, actualgadateshort, serverformfactortable_id, cputable_id, maxnumbercpus, cpuspeed, ste...
by vamsinadella
Wed Jan 03, 2007 6:20 pm
Forum: PHP - Code
Topic: DATE -TIME Question
Replies: 15
Views: 1564

DATE -TIME Question

feyd | Please use , and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color] Hi, I hav...
by vamsinadella
Thu Dec 28, 2006 4:45 pm
Forum: PHP - Code
Topic: DATE function - Space problem
Replies: 2
Views: 310

DATE function - Space problem

feyd | Please use , and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color] Hi, I nee...