No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
12 Posted Topics
Hi All, I've this problem with cookies. I am lost as I can't understand why this code does not work as expected. Please help!! [CODE] $rq =$_REQUEST['r'] ; $value = $_REQUEST['v']; setcookie("XYZ",$value, time()+60*60*24*30) ; echo "Value is ".$value; if ($rq =='showdata'){ print_r($_COOKIE); echo "Cookie is".$_COOKIE['XYZ']; exit; } [/CODE] Output: when … ![]() | |
Re: Hi, You can rephrase your onclick event handling like this. onClick="document.form1.tags.value [B]+=[/B]document.form1.tagmenu.options[document.form1.tagmenu.selectedIndex].value; Here, I'm assuming that your onclick functionality is working fine :) In the above case, the options are added inline to the previous selection. To add options one below another you should add the /n after the += … | |
Re: Hey, I think you should use something like this. [QUOTE] <A HREF='javascript:popup("page.php?id='.$id. '... "') [/QUOTE] This is how a link is dynamically generated in PHP. Hope this helps! | |
Re: Hi, It seems you have got two different questions here. 1. How to go back. Here, you can either use two forms as suggested above, Using javascript is not recommended. Another solution would be to use image links. This solution is recommended if your website has customised buttons which is … | |
Re: Hi, I think it is not Python you are interested in. It's just it's already been installed on your machine you want to learn python. I do not have any thing personal against python, you can go with it. However, I think that it would be better if you learned … | |
Re: Hi, Shanti is very much right. You should just rephrase it. Declare a separate variable. [code] $selection = $_REQUEST['select']; if($selection != null) ... Insert into database; [/code] That's it! You might want to add some security here and validate $selection. All the best! References:-[URL="http://www.tutorialindia.com/php_mysql/index.php"]http://www.tutorialindia.com/php_mysql/index.php[/URL] | |
Re: Hi, It's very much possible to do in PHP also. Please post the exact query you are using. For help on how to delete specific records from a database table please refer [URL="http://www.tutorialindia.com/php_mysql/php_mysql_delete.php"]http://www.tutorialindia.com/php_mysql/php_mysql_delete.php[/URL] | |
Re: Hi, With while we can read only row by row. Anyways, it seems you want to search the email into friend_email. Another alternative would be query the friends email table for each email. In any case please use the following sequence for performance improvement. [code] while($row2 = mysql_fetch_array($get_names2_res)) { $users_email … | |
Re: Hi, This is what happens in drupal where the url like example.com/index.php?id=john is automatically converted into example.com/john. This actually is done by the server itself. so as suggested above, you should read the apache documentation on how to do it. Also, since all the processing will be done by your … | |
Re: Hey buddy, The text is missing there. The code should be something like [code] out.println( "<a href=\"ozCmnDeleteEntity.jsp?objType=PROJECT&objId="+prj.getProjectId()+"\">"); out.println("Delete </a>");[/code] If you get page not found error then you can check the url displayed in the browser and edit it accordingly. This might be due to the relative path is a … | |
Re: Hi, I think you need to use wild card % and rephrase your sql query. like %'.$head.'% Are you not useing the . operator to create a dynamic query? You can learn more about how to create a dynamic query at [url]http://www.tutorialindia.com/php_mysql/php_mysql_update.php[/url] without . (Dot) operator your query is not … | |
Re: Hi, You can find a good tutorial on RPG IV at [url]http://www.tutorialindia.com/ile_rpg_iv/index.php[/url]. Bye! |
The End.