- Upvotes Received
- 4
- Posts with Upvotes
- 4
- Upvoting Members
- 3
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
- Interests
- Python - Erlang - Shell - Linux
23 Posted Topics
Re: As far as I know , you want image name in updating something like profile form. you should use move_uploaded_file for uploading image , and use $_FILES["img"]["name"] for getting image name. ![]() | |
Hi everybody. I have 2 selects tag. first select is country list. when user choses favorite country then the second select tag get new contents. I can make this with javascript but I wanna make this just with php and without any scripts! This is possible make this without any … | |
Hi. I have this code: [CODE] %D8%AA%D8%B3%D8%AA [/CODE] how to convert this code with php to orginal text? Thanks. | |
Re: What is your shop features in your mind? | |
Hello everyone! please help me! I want to create this address with php! $test = new db(); // db is a class for database! $test->tabe_name->fields->condition->other_command; example: $test->login->username,password->email($_POST['email'])->Action("header('...')"); Thanks so much for helping! | |
Hello everyone. I have a folder with TEST name. In this folder I have 3 files : index.html , Untitled.swf , Untitled_toolbar.swf When we open index.html file we can see that video! Clearly I can say , we have 2 address: [url]http://...........com/TEST/[/url] [url]http://...........com/TEST/Untitled.swf[/url] I want to lock this address! [url]http://...........com/TEST/Untitled.swf[/url] … | |
Re: Try it: [CODE] <?php $query ="UPDATE attendance SET Date ='".$date[$id]."' WHERE ID = ".$id; if(@mysql_db_query('db',$query,$connection)) { echo "Success!"; } else{ echo "Error: ".mysql_error(); } ?> [/CODE] Use this function! [B]mysql_db_query('databse_name','query','connection');[/B] ![]() | |
Hello. I want to delete duplicate values of options tag! this is my code. But this is not good and have problem! [CODE] function DropDups() { var i=0; var forml; forml = document.getElementsByTagName('form').length; for(i=0;i<forml;i++) { var Target=document.forms[i]['color']; for (var avvali=1; avvali<Target.options.length; avvali++) { valavvali = Target.options[avvali].text; for (var dovvomi=1; dovvomi<Target.options.length; … | |
Re: Means you want to set id for anchor tag and when you click on that then get href of that and showing to you? | |
![]() | Re: Please give your code completely! What is order,fieldObj,... variables in your code? ![]() |
Hello! I made a code with php! In this code my program gets many recodes and with a loop that generate form tag! And this tag have a loop again for generating select box with many options! That options value is image file name. And in this forms have a … | |
| |
Re: Your could control errors with php! Example! with '@' you can control functions errors! [CODE] <?php if(@$con=mysql_connect('localhost','user','pass')) { echo "Connect"; }else{ echo "Error!"; } ?> [/CODE] Returned if can connect to database "Connect" else "Error". This code cannot return any other errors!!! You want this? | |
Re: use jscookmenu [URL="http://jscook.yuanheng.org/JSCookMenu/"]http://jscook.yuanheng.org/JSCookMenu/[/URL] | |
Re: Test it! [CODE] <html> <head> <script language="javascript"> function send() { document.getElementById('div_content').value = document.getElementById('content').innerHTML; document.forms['form1'].submit(); } </script> </head> <body> <?php if($_POST) { echo $_POST['div_content']; } ?> <form name="form1" action="" method="post"> <input type="hidden" id="div_content" name="div_content" /> <div id="content">this is test</div> <input type="button" onclick="send()" value="Send" /> </form> </body> </html> [/CODE] By javascript I … | |
Re: Please test it: [CODE] <?php $to = "****@***********.com"; $subject = "Contact Us"; $name = $_REQUEST['name'] ; $email = $_REQUEST['email'] ; $message = $name . $_REQUEST['message']; $headers = "From: $email"; if(@mail($to, $subject, $message, $headers)) { echo "Your mail sent"; } else { echo 'Error on sending'; } ?> [/CODE] '@' return … | |
Re: Ok , Please use this code! By this code you can create unlimited menus!!! At the first you should to create a db with this feature: [CODE] CREATE TABLE `menu_item` ( `id` int(11) NOT NULL, `title` varchar(75) DEFAULT NULL, `link` varchar(100) DEFAULT NULL, `parent_id` int(11) DEFAULT NULL, `position` int(11) DEFAULT … | |
Re: You can use base64_encode and base64_decode function! | |
Hello. I want to create this address with php! [CODE] <?php $a = new dbclass(); $a->tablename->fieldname1('fieldvalue1')->fieldname2('fieldvalue2'); $a->delete(); //<<-- example! $a->insert(); //<<-- example! $a->update(); //<<-- example! ?>[/CODE] Please help me how to create class with this feature. thanks a lot. | |
Hi everybody! Please help me very fast!!!! I am programming with php in linux platform. When I create a file (example index.php) , that is UTF8 as default. Now I want to set cookie or session , but I cannot! I get an error about sending headers! Please help me … ![]() | |
Re: Ok Check this code! This is like Daniweb login! [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <style type="text/css"> body,table,div,input { font:11px tahoma; } .back { bottom:0; position:fixed; width:100%; height:100%; background-color:#333333; opacity:0.8; filter:alpha(opacity=80); z-index:1000; } .table { background-color:white; margin-top:25%; margin-left:40%; } </style> </head> <body topmargin="0" leftmargin="0"> <div … | |
Hi I want to compile py files to com files. Please help me. thanks. | |
Hi everybody! I want to get list of files and folders with permission from ftp! This is my code: [CODE] from ftplib import FTP ftp=FTP('ftp.domain.com','username','pass') a=ftp.dir('') [/CODE] after runnig : (Output) drwxrwxrwx 1 user group 0 Mar 01 14:29 Backup drwxrwxrwx 1 user group 0 Mar 01 14:29 logs drwxrwxrwx … |
The End.