39,320 Topics

Member Avatar for
Member Avatar for Mapper99

I have a very simple script that basically searches an xml file for a node based on the id of another node. I then update the node I found with a new value. For some reason my code is not performing the update. It is actually creating another node within …

Member Avatar for Mapper99
0
268
Member Avatar for Venom Rush

Hi all I'm having a strange array problem. I'm pulling variables from a database and putting the values in arrays. One set of values are pure numbers. This array works fine. My second set of values are a mixture of numbers and letters. This second array just returns values of …

Member Avatar for Venom Rush
0
122
Member Avatar for coleguitajuan

How can I extract from a form url f.e: [url]https://process.netpay-intl.com/member/remote_charge.asp[/url] which dones not shows any parameter in the url but when you submit the form, it shows you the parameters in the page? Thanks in advance, Daniel

Member Avatar for somedude3488
0
70
Member Avatar for lobas

I've used strip_tags, is there a better way to secure this query? the value will always be numeric, It's being displayed like this [url]http://www.somesite.com/listing.php?id=5[/url] The id will always be a different number not always 5 depending on the listing [CODE] $sql = "SELECT * FROM listings where id=" . strip_tags($id) …

Member Avatar for somedude3488
0
87
Member Avatar for avukadomusic

[code=php]$url = 'the web address I want to get the first and second numbers close to $' ; $str = file_get_contents($url); preg_match_all('/ ([$]) *(\d+(:?.\d+)?)/', $str, $matches, PREG_SET_ORDER); $i=0; foreach ($matches as $val) { if($i==0) $first=$val[2] ; if($i==3) $second=$val[2] ; $i++; } $bad_symbols = array(",", "."); $first = str_replace($bad_symbols, "", $first); …

Member Avatar for avukadomusic
0
164
Member Avatar for patharianidhi

i have wamp server installed and running properly if its a simple php application. The application even connects to the database properly. I am trying to develop an application in cake php. i have cake properly installed in my webroot folder c:\wamp\www\cake_1_2. When i browse through this folder using [url]http://localhost/cake_1_2[/url] …

Member Avatar for patharianidhi
0
63
Member Avatar for juner4

Hello im juner, a new php developer, i already finished with a [B]register.php[/B], [B]login.php[/B] file. My problem is when the [B]main.php[/B] is accessable after login by correct username and password stored in mysql database, the main.php composed of the following link: changepassword.php addsponsor.php deletesponsor.php when i click the changepassword.php link …

Member Avatar for DangerDev
0
156
Member Avatar for gameguysz

ya i have this site i am working on and at first it was working fine, im not sure what i did but now it says i registered but when i login i get the error saying invalid username. So i went and looked at PhpMyAdmin and it did not …

Member Avatar for SKANK!!!!!
0
247
Member Avatar for kbjustin

I am interning at a company and they have had me build a simple website which basically displays a list of their servers and they update entries, create new entries and so on. I am new to php and mysql and just web design in general. My question is do …

Member Avatar for paradox814
0
157
Member Avatar for bhagu

Hi, Folks!! I am trying to finish one of my project. I need help with image upload and attach it in email as attachment. If you have any source or script which you think might can help me. Please share. I will highly appreciate your help,. Thanks for concern thanks …

Member Avatar for bhagu
0
88
Member Avatar for kako13

Hi, I have a table in MySQL that I want to update it if the row exist or insert the record does not exist. [CODE=php] mysql_query("REPLACE INTO `$it` (file_name, directory) VALUES ('$insert','$dir_http')"); // or die ("Insert query failed"); [/CODE] I was following this: [URL="http://dev.mysql.com/doc/refman/5.1/en/insert.html"]http://dev.mysql.com/doc/refman/5.1/en/insert.html[/URL] But every time I run REPLACE …

Member Avatar for almostbob
0
3K
Member Avatar for focussource

We need to develop various websites for internet browsers. Really need some help with this, maybe even full time help. Let me know if you are a great web developer, and have develop websites for internet browser before, maybe you can help us with this

0
38
Member Avatar for Gerald19

I am having a problem using the script below. I want to be able to built a database table in html (using an 'id' to select which) and then be able to delete the rows selected by the checkboxes. The building of the table works perfect. But when selecting row's …

Member Avatar for Gerald19
0
238
Member Avatar for rapture

Hello all, It seems I'm on a wild goose chase, either that or this is going to be a lot harder than I imagined, and I imagined it being pretty difficult. I posted in other forums here asking for help on this issue, it was suggested that PHP may make …

Member Avatar for rapture
0
231
Member Avatar for Mapper99

Hi there, I am trying to update a node in an XML file using PHP. Here is the XML: [code=xml]<users> <user> <id>1</id> <firstname>Bob</firstname> <lastname>Marley</lastname> </user> <user> <id>2</id> <firstname>Bruce</firstname> <lastname>Springsteen</lastname> </user> </users>[/code] How can I go about searching the XML file for all tags where "id=2" and setting the firstname and …

Member Avatar for Mapper99
0
179
Member Avatar for Tekkno

I have several URL's that display random data from a database. I would like to know a better (more secure) way to display the data. Right now it uses the real table and column names and I would like to disguise them somehow. Here is the syntax of the URL: …

Member Avatar for SKANK!!!!!
0
151
Member Avatar for CFROG

Even after reading up on it I'm not sure how to use if(isset(... for what I'm I'm trying to do. Can someone point me in the right direction please before I pull my hair out? My code [code=php] if(isset($_POST['email1'])){ mysql_query("INSERT INTO rating_invite SET user_id='$_SESSION[user_id]', email='$em1'");} if(isset($_POST['email2'])){ mysql_query("INSERT INTO rating_invite SET …

Member Avatar for SKANK!!!!!
0
95
Member Avatar for sanjaypandit

hello friend, i want to make a simple bus booking system, i made a page for it, now i want some thing. please see attach pic, in this pic, u see two push button 2 and 3. my first question is : how we can show button as push button, …

Member Avatar for DangerDev
0
126
Member Avatar for Allison2009

Hi All, We have a website by name, [url snipped]. It was integrated with Payment Options, viz., PayPal Pro (Master Card, Visa Card, AMEX and Discover Bank) and PayPal. While making payment through PayPal Pro, we don't face any issues. The order flow is there. We could see them through …

Member Avatar for Allison2009
0
81
Member Avatar for ayesha789

Hi, I am using a date in DB in this format 2004-07-15 and Showing the date in the format 15-July-2004 using this code [CODE=php]echo "<tr>"; echo "<th bgcolor=#FFCC00>LA Start Date</th>"; echo "<td bgcolor=#FEE9A9>" .date("j-F-Y",strtotime($row['LAPeriodStart'])). "</td>"; echo "</tr>";[/CODE] Now I want all the records from this date field for the month …

Member Avatar for ayesha789
0
78
Member Avatar for tmv105

Can anyone help me with the mail function? The mail is sending with the code below: [code=PHP] // Set up Email Parameters $from = "Condolence Submission"; $subject = "Condolence"; // To send HTML mail, set the Content-type header. */ $headers = 'MIME-Version: 1.0' . "\r\n" . 'Content-type: text/html; charset=iso-8859-1' . …

Member Avatar for tmv105
0
101
Member Avatar for punithapary

how to reverse array values without using array_reverse in php. Please can anyone reply for this thanks in advance Punithapary

Member Avatar for sureronald
0
77
Member Avatar for franciskp

i need the architectures in php if any. if anybody know respond immediatly

Member Avatar for DangerDev
0
71
Member Avatar for sandipan.rcciit

hello, i want to create a program to fetch the xml files data to mysql database. here is my code [CODE] <?php include 'mysql-connect.php'; $m=1; $n=".xml"; while($m<6) { $str=$m.$n; $doc = new DOMDocument(); $doc->load( $str ); $params = $doc->getElementsByTagName('BookData'); // Find BookData $k=0; foreach ($params as $param) //go to each …

0
82
Member Avatar for franciskp

Hi everybody, I've joined this group to learn php better. I'm striving to get into the IT stream. I did mca working with media as of now. Thanks, Francis K Peton

0
12
Member Avatar for pbpyrojust

So guys... everything is working properly except for when the radio button is clicked to either "yes" or "no" on the form the email that is send does not display it at all. [code] $message = " $todayis [PST] \n Attention: Interactive Media Requesting a Bid \n Phone Number: $areacode2, …

Member Avatar for pbpyrojust
0
72
Member Avatar for mangel.murti

hi all, i have problem i am fetching meta data information of web page so that on the basis of those information i can put search option to my site.i have populate.php which fetch metadata and store relevant information in mysql. but when i am running populate.php it's giving me …

0
90
Member Avatar for BigDan531

okay guys below is my code [code] <?php session_start(); header ("Content-type: image/png"); $img_handle = imageCreateFromPNG("bg2.PNG"); $color = ImageColorAllocate ($img_handle, 100, 100, 100); ImageString ($img_handle, 5, 20, 13, $_SESSION['rkey'], $color); ImagePng ($img_handle); ImageDestroy ($img_handle); ?> [/code] The current output is 134534(example) But i would like the output to be 1[COLOR="Red"]3[/COLOR]45[COLOR="Red"]3[/COLOR]4. Any …

0
54
Member Avatar for karin21

hi guys! can you look for my script im required to use php. i have two comboboxes namely cat and sub cat. and i have a textbox. my logic goes to when i select item from cat it will display its sub items in subcat. and then when i select …

Member Avatar for matthewl
0
105
Member Avatar for dwdata

I am trying to code some advertising banners on my page based on random picks from a table in my DB. I have successfully got my top banner to display and log an impression: [CODE] // Top Banner $query="SELECT * FROM sm_ADS WHERE id_Maze_Category='$Category_ID' and Type='large' and Active='1' ORDER BY …

Member Avatar for matthewl
0
187

The End.