Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
4
Posts with Upvotes
4
Upvoting Members
3
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #2K
~15.5K People Reached
Interests
Python - Erlang - Shell - Linux
Favorite Tags

23 Posted Topics

Member Avatar for narendra pratap

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.

Member Avatar for diafol
0
237
Member Avatar for morteza_ipo

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 …

Member Avatar for morteza_ipo
0
247
Member Avatar for morteza_ipo

Hi. I have this code: [CODE] %D8%AA%D8%B3%D8%AA [/CODE] how to convert this code with php to orginal text? Thanks.

Member Avatar for morteza_ipo
0
65
Member Avatar for kamotekid08
Member Avatar for morteza_ipo

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!

0
58
Member Avatar for morteza_ipo

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] …

Member Avatar for morteza_ipo
0
145
Member Avatar for h20

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]

Member Avatar for diafol
0
207
Member Avatar for morteza_ipo

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; …

Member Avatar for Airshow
0
4K
Member Avatar for moonknight33

Means you want to set id for anchor tag and when you click on that then get href of that and showing to you?

Member Avatar for moonknight33
0
238
Member Avatar for trebor-pl

Please give your code completely! What is order,fieldObj,... variables in your code?

Member Avatar for trebor-pl
0
251
Member Avatar for morteza_ipo

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 …

0
71
Member Avatar for mrlol
Member Avatar for keyroche

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?

Member Avatar for keyroche
0
7K
Member Avatar for GrahamN

use jscookmenu [URL="http://jscook.yuanheng.org/JSCookMenu/"]http://jscook.yuanheng.org/JSCookMenu/[/URL]

Member Avatar for GrahamN
0
94
Member Avatar for tcollins412
Re: help

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 …

Member Avatar for morteza_ipo
0
97
Member Avatar for tcollins412

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 …

Member Avatar for morteza_ipo
1
178
Member Avatar for muralibobby2015

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 …

Member Avatar for muralibobby2015
0
163
Member Avatar for Sorcher
Member Avatar for Sorcher
0
88
Member Avatar for morteza_ipo

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.

Member Avatar for morteza_ipo
0
121
Member Avatar for morteza_ipo

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 …

Member Avatar for diafol
0
134
Member Avatar for ypdev

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 …

Member Avatar for ypdev
0
878
Member Avatar for morteza_ipo
Member Avatar for Ene Uran
0
102
Member Avatar for morteza_ipo

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 …

Member Avatar for nezachem
0
151

The End.