ghurty Posted August 12, 2007 Share Posted August 12, 2007 What code do I use to duplicate a text string? For example I have: $activ = md5( $activ ); The thing is, I want to take $activ and convert into md5 hash and store it AND store it in the original format. As of now, all I have it is that it is converting into md5 hash and storing it that way. Thanks Link to comment https://forums.phpfreaks.com/topic/64572-solved-how-to-duplicate-a-text-string/ Share on other sites More sharing options...
NArc0t1c Posted August 12, 2007 Share Posted August 12, 2007 <?php $activity = $_POST['string']; $activ = md5($activity); ?> The variable stays the same. What do you mean by duplicate exactly? Link to comment https://forums.phpfreaks.com/topic/64572-solved-how-to-duplicate-a-text-string/#findComment-321875 Share on other sites More sharing options...
ghurty Posted August 12, 2007 Author Share Posted August 12, 2007 As of know, the new md5 string gets stored in a table. I want to have it that the original AND the md5 string gets stored. Thanks Link to comment https://forums.phpfreaks.com/topic/64572-solved-how-to-duplicate-a-text-string/#findComment-321878 Share on other sites More sharing options...
NArc0t1c Posted August 12, 2007 Share Posted August 12, 2007 INSERT INTO table VALUES($activity, $activ) First row is not encrypted, second row is md5 encrypted. Link to comment https://forums.phpfreaks.com/topic/64572-solved-how-to-duplicate-a-text-string/#findComment-321885 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.