39,393 Topics

Member Avatar for
Member Avatar for Mapper99

Hi there, I am trying to delete XML nodes using PHP. Here is a sample of my xml file. [code] <users> <user> <fullname>PC1</fullname> <flooor>4</floor </user> <user> <fullname>PC2</fullname> <flooor>3</floor </user> </users> [/code] Here is my code so far: [CODE] <?php $users = new DOMDocument(); $users->load("officedata.xml"); $suser = simplexml_load_file("officedata.xml"); $count = 0; …

Member Avatar for Mapper99
0
239
Member Avatar for ayesha789

Hi, I am developing a Lease Management System, and I need to upload multiple files in a folder. and I want to name the folder where I want to upload in DB. Here is a code for upload a single file. first file is sendfile.php [CODE=php]<!-- The data encoding type, …

Member Avatar for ayesha789
0
351
Member Avatar for JayGeePee

I've been getting spammed by a Robot alot here lately... When a member signs up there required to fill in all of the blanks(username, name, email, etc.). I want to make it where certain characters cant be used in this area(such as < / " etc.) I also want to …

Member Avatar for Stefano Mtangoo
0
133
Member Avatar for Stefano Mtangoo

Hi All, I'm trying to make simple CMS and can populate my HTML (generated by TinyMCE editor) to my database. I can retrieve them as well. Now I want to add image support to My editor. What are the tricks necessary? Thanks a lot :)

Member Avatar for Stefano Mtangoo
0
81
Member Avatar for mark2326l

As the title says I want to have a text field appear using the if statement. My simplest attempt.... [CODE] <?php if($row_Recordset1['NoPages_A'] { echo<input type="text" name="firstM" id="firstM" />;} ?> [/CODE]

Member Avatar for mark2326l
0
127
Member Avatar for sereleg

Hello guys am new with PHP. Would some one help me with the code below am getting: ERROR: Parse error: parse error in C:\webdev\Apache\Apache2\htdocs\oscommerce-2.2rc2a\catalog\product_reviews_video.php on line 2 CODE: [code=php]<?php define('NAvb script:popupWindow(\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . …

Member Avatar for edwinhermann
0
54
Member Avatar for andym67

Hi all, Pretty new to PHP and I am trying to get a handle on securing a form fields data. For example, I have a simple form where user enters information into a field called mydata. The field must be able to contain multiple words and basic punctuation. What I …

Member Avatar for ShawnCplus
0
168
Member Avatar for _webdesign_

Hello , I have a question i use php meldoy , and i have alread a user list in myql how can i fix the usere lis????

0
43
Member Avatar for rajeesh_rsn

Hai, I am developing a web application for a video store. They need to publish their tailors through their web site. I have to develop a PHP application to upload video file. I did it and working fine with PHP and Flash. But it works only in the case of …

Member Avatar for diafol
0
92
Member Avatar for Roebuc

can someone tell me what is wrong with the following: [CODE]function connect($db_host,$db_database,$db_user,$db_pass){ global $db_connection; try { $db_connection = mysql_connect($DB_HOST,$db_user,$db_pass, true); if(!$db_connection) { throw new Exception('MYQSL Connection Database Error: ' . mysql_error()); } else { $connection = true; } catch (Exception $e) { echo $e->GetMessage(); } }[/CODE] I receive: Parse error: …

Member Avatar for Roebuc
0
2K
Member Avatar for nadnakinam

hi 2 all, i'm very new to this php world... if any1 can solve my prblm, help me...! an image was successfully uploaded in desiered DIRECTORY in server... i wish to resize the images which uploaded image... i couldnt found php code to do RESIZE... Thnx in advance...

Member Avatar for andym67
0
77
Member Avatar for coolmind259

HI, I have embedded youtube code in my site for youtube videos. I am using the url to display youtube video. The problem is that the video is not displayed after I gave the Youtube URL, but i see the blank screen instead of video. anybody has any idea what …

0
59
Member Avatar for arunajasmine

Hi, i am trying to use the pagination concept in Cakephp for my application .. [CODE]$allreports=$this->paginate('Report',array('Report.user_id'=>$userId));[/CODE] i am trying to have a group condition in the above query like 'group'=>array("Report.report_id") .. i m not awarre of giving that in this paginate.. where in [CODE] var $paginate = array( 'limit' => …

0
98
Member Avatar for amarbir

I have a word file containing questions and those questions also contains images. I want to save all those question images in a separate folder in a sequential order even also same images and replace them one by one with a text in sequential order. So please tell me how …

0
36
Member Avatar for peck3277

Hi guys, i was wondering if anyone could help me out here. I'm trying to display an alphabet. to do this i am using this code [CODE] for ($i=65; $i<=90; $i++){ echo '<a href="test.php?f='.chr($i).'">'.chr($i).'</a>'; } [/CODE] This works as it should. Displays the alphbet each with a link. What I …

0
54
Member Avatar for Graphix

How do you acces a folder beneath the current folder? The upload script is at: htdocs/mysite/management/upload.php and i want the files to be uploaded at: htdocs/mysite/images/ What should the directory be?

Member Avatar for Graphix
0
115
Member Avatar for ondusko

.error Info: To add this product into your cart you have to select a product variant on the details page. above is an error im receiving when i add a custom attribute text box to my product could you please assist me with a solution for it. Not sure cause …

0
38
Member Avatar for phpnovice

Greetings, Would some experts show me php code to play a .wav file? Thank you very much in advance. phpnovice

Member Avatar for vaultdweller123
0
2K
Member Avatar for mrcb

So I have a simple login + set cookie script. After checking to see if the supplied credentials are in the db, the script sets a cookie. After this, the script forwards the user to a password protected page. I know the login + cookie placing script works fine. When …

Member Avatar for codejoust
0
88
Member Avatar for santhanalakshmi

Hi, Please help me out.How to add images in the PDF file using php? I tried this coding : [code=php]<?php $pdf = PDF_new(); PDF_open_file($pdf,''); PDF_begin_page($pdf,595,842); $image = PDF_load_image($pdf,"png","myimage.png",""); PDF_place_image($pdf,$image,64,26,.24); ?>[/code] But i am facing an error while running this code: [B] Fatal error: Uncaught exception 'PDFlibException' with message 'Handle parameter …

Member Avatar for codejoust
0
105
Member Avatar for andym67

Hi All, I am processing a form that includes address info. If the user fills out the form and (address2) has an apartment number that they enter like: #1522 I have trouble later where I might contruct a link such as: [code] header("location: contact.php?address1=$address1&address2=$address2&city=$city&state=$state"); [/code] The link creates fine, but …

Member Avatar for diafol
0
168
Member Avatar for TLCJohn

Hi there, I am looking for a suggestion, and wondered if somebody may be able to help. I have a client, who requests that within his form there is a unique six digit generated number, I am looking for a piece of software or a Dreamweaver extension that may be …

Member Avatar for diafol
0
2K
Member Avatar for muralibobby2015
Member Avatar for diafol
0
76
Member Avatar for Altairzq

Hello. I'm using AJAX for all the updates to the web site I'm building and it works very well. But now I face the need to: 1) Upload a file (an image or video) to a folder in the server. 2) Insert a row in MySQL with the name of …

Member Avatar for digital-ether
-1
356
Member Avatar for muralibobby2015

i want to upload and crop five images at a time in php. i wrote code 5times for upload,and 5 times for croping. so...there is any possible to using an arrays and using anyway i want to short my code....plz help me..

Member Avatar for diafol
0
58
Member Avatar for jithusdani

Hi folks, I want to open a pdf stored in the database in a new window using php server side script. Actually I want store the file name in data table, which user clicks. So i need a server side script open the things in new window along with the …

Member Avatar for jithusdani
0
3K
Member Avatar for scias23

i want to relate my tables, but i can't find out how to relate the tables. how?

0
99
Member Avatar for tarunkhatri

I have a simple javascript function that shoud insert a value in the cell when the value in the dropdown list changes. Dnt knw the reason why its not working. [CODE] <script type="text/javascript"> function displaytaskid() { var id=document.getElementById(dropdown).value; document.getElementById(task_id1).value=id; } </script> <td id ="task_id1"></td> <td name = "task_id[]" id="dropdown" onchange="displaytaskid()" …

Member Avatar for mick_sp
0
152
Member Avatar for mundetas

Need help could anyone know how to make an image in a form act as a submit button? Would anyone know where I can get information on how to fill a drop down box with data in a mysql database? Please help please please :-/

Member Avatar for mundetas
0
80
Member Avatar for CFROG

Besides the obvious, like security issues, character limits in older browsers, etc. Is there any real difference between $_POST and $_GET besides the method in which data is passed? I have a script that works perfectly with $_POST but completely falls apart when I try to use $_GET. I rarely …

Member Avatar for cwarn23
0
173

The End.