Posts
 
Reputation
Joined
Last Seen
Ranked #2K
Strength to Increase Rep
+6
Strength to Decrease Rep
-1
87% Quality Score
Upvotes Received
23
Posts with Upvotes
21
Upvoting Members
20
Downvotes Received
3
Posts with Downvotes
3
Downvoting Members
3
5 Commented Posts
2 Endorsements
Ranked #621
Ranked #271
~145.15K People Reached
Favorite Forums
Favorite Tags
Member Avatar for wackyal

how do you extract all email addresses from a string and put each extracted email address as an element of a simple array? <?php // define and implement your php function here function get_all_emails($text_field) { // ---- Beginning of Green Section --- // create an empty array $emails = array(); …

Member Avatar for Dani
0
3K
Member Avatar for rpv_sen

Hi i am having 3rd party csv file. i am having php uploading script to upload the datas into my table. while uploading datas into my mysql Table mean while it has to remove duplicate entries rows from CSV file. Please help me

Member Avatar for bhuvi_2
0
9K
Member Avatar for rpv_sen

Hi Friends. i am working on my internal work. i am having n dynamic rows, Each and every row contain total. i want to sum all the rows total. i have attached the screen shot for the reference

Member Avatar for diafol
0
2K
Member Avatar for mrhankey

hi guys, i have a site which is protected using php and stored username and passwords in mysql database. is there a script which will protect a directory and run off the mysql database username and password as opposed to just a standard htaccess file? help urgently need for this …

Member Avatar for Renu_5
0
5K
Member Avatar for sam230

http://api.ean.com/ean-services/rs/hotel/v3/list?minorRev=4&cid=55505&apiKey=5q4gzx43g6ukcrq798z2hz75&customerSessionId=&locale=en_US&currencyCode=USD&xml=<HotelListRequest><city>new%20delhi</city><RoomGroup><Room><numberOfAdults>2</numberOfAdults><numberOfResults></numberOfResults></Room></RoomGroup></HotelListRequest> when i call api directly to browser i got right data in xml format. but when i call it through curl.. sometime i get data in json format or sometimes no data.. [CODE] $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,"http://api.ean.com/ean-services/rs/hotel/v3/list?minorRev=4&cid=55505&apiKey=5q4gzx43g6ukcrq798z2hz75&customerSessionId=&locale=en_US&currencyCode=USD&xml=<HotelListRequest><city>new%20delhi</city><RoomGroup><Room><numberOfAdults>2</numberOfAdults><numberOfResults></numberOfResults></Room></RoomGroup></HotelListRequest>"); curl_setopt($ch, CURLOPT_FAILONERROR,1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION,1); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_TIMEOUT, 15); $retValue = …

Member Avatar for Terrymol
0
916
Member Avatar for cssweb

hello guys how are you, i have an inquire about how can i put the adress if my adress contains php it is the link which i want to put <link>shownews.php?full=news&id_topic=$row->id_topic</link> here is my code <?php header('Content-Type: application/xml'); mysql_connect('localhost','root','root'); mysql_select_db('ahmad'); echo '<?xml version="1.0" encoding="utf-8"?>'?> <rss version="2.0"> <channel> <title>my articles</title> <description>News,social,media</description> …

Member Avatar for Atli
0
222
Member Avatar for thebloodycoon

I read several topics similar to what I'm asking, but none of them seemed to be very helpful to me. I have a form where users can generate codes that are stored in a column with a Unique constraint. The codes are strings with length of 7 characters. The users …

Member Avatar for ddymacek
0
139
Member Avatar for eNnilla

I'm currently building a website for my friends and me, and I've decided to have the homepage use a news system. I have the page working with PHP to load articles from my MySQL Database, and that's working fine. My real issue is with the page that adds items to …

Member Avatar for broj1
0
303
Member Avatar for ismael ahm@d

Hi all friends, I am trying to insert XML data using DOM, i completed mostly but little bit left, issue in the <field></field> the data between that not inserted in db, please consider the below mentioned XML file... <?xml version="1.0" encoding="UTF-8"?> <form name="mc1.dpp" application-name="mc1.dpp" application-id="34" document-id="1342" producer="Penvision Formidable Application Server" …

Member Avatar for ismael ahm@d
0
2K
Member Avatar for TINO_

Hi! It's ma first time in this forum,i hope u wll wormly welcome me.I am an undergraduate student in Software Eng. at the University of Dodoma in Tanzania, i would like 2 know if I can develope a **computer alarm** with **PHP**, if not the other languages I h've gon …

Member Avatar for LastMitch
0
82
Member Avatar for abhi10kumar

How I can create Pop-up Login window on a particular page. If user login successfully, the back page will refresh.

Member Avatar for jalpesh_007
0
226
Member Avatar for ettypaldos

I would like to alter the example provided [URL="http://www.w3schools.com/php/php_ajax_database.asp"]here [/URL]so that there is a second dropdown input for 'Male/Female'. I know the example itself does not provide a 'Sex' field in the MySQL db, but let's just pretend it does. Furthermore, assume we have a new in out select for …

Member Avatar for johns1982
0
5K
Member Avatar for grozadani2007

Hello there, This is my form: <form method="post" enctype="multipart/form-data" action="upload.php"> <input type="text" name="nume" id="nume"/> <select name="an" id="an" > <option value="2010">2010</option> <option value="2011">2011</option> <option value="2012">2012</option> <option value="2013">2013</option> <option value="2014">2014</option> <option value="2015">2015</option> <option value="2010">2016</option> <option value="2011">2017</option> <option value="2012">2018</option> <option value="2013">2019</option> <option value="2014">2020</option> <option value="2015">2021</option> </select> <input type="file" name="images" id="images" multiple /> <button …

Member Avatar for grozadani2007
0
292
Member Avatar for latortuga42

Hi, I have a JavaScript validation function that worked before I changed the sendmail file to a php version (had to becfause of host's linux server). The sendmail code in the php file has some validation checking, but I would prefer to use the validation.js file with the form's onSubmit …

Member Avatar for ddymacek
0
691
Member Avatar for robertcraiguk

Hi, I have been trying for the last few days to figure out how to send a particular user to their own specific URL. For example, all users will use the same login.php page but when User A logs in they will be redirected to A.php and if User B …

Member Avatar for Biiim
0
207
Member Avatar for jpknoob

Hi all, i seem to be having an issue with a calculate function i have made,. the script works fine in all browsers except Firefox! I was hoping someone could lend a hand and explain what I'm doing wrong. The JS: <code> <script type="text/javascript"> //Calculator formulae function multiply(){ Form.result.value = …

Member Avatar for jpknoob
0
241
Member Avatar for talisien

Hi all, How do I use data from json in a javascript function? I have something like this! $('#monday').click(function(){ test(); }); function test() { $.getJSON('singleday.php?dld='+ id+'&chkdag=' + 1, function(json) {sday=json}); OtherFunction(); } Now I want to transfer the json date into an other function. something like this function OtherFunction() { …

Member Avatar for talisien
0
198
Member Avatar for Jfunch

I have this code that creates gets the data from a sqlite3 database and prints it out in a table with checkboxes next to each row to check to delete that row. After deleting a row I want to update the data base so that the id of the rows …

Member Avatar for diafol
0
159
Member Avatar for BilalAKhan

Hi, I am trying to assign the value of text box to a variable in PHP. But I am consistently getting an error. The error says, "Undefined index: fname" and "Undefined index: age ". Can anyone please help me in this matter? How can I resolve this? [CODE] form action="welcome.php" …

Member Avatar for ddymacek
0
6K
Member Avatar for malcolm p

Got 2 problems with my buttons selection. What happens is the user selects the number of buttons depending on the number entered in the text box. If the number is 3 in the text box, then the user can only select 3 buttons, if more buttons are selected then it …

Member Avatar for Airshow
0
91
Member Avatar for maxxxx

I have this form, and I want to add JS to it. I got part of it. But the hard part is the ordering menu part it's self. Can someone help me please? [CODE]</p></td><td width="359" align="right"><table width="325"> <tbody> <tr> <th width="144">item</th> <th width="75">price</th> <th width="92">quantity</th> <th width="101">sub-total</th> </tr> <tr align="middle"> …

Member Avatar for maxxxx
0
76
Member Avatar for djbrown

As a newbie at 63, I have learned how to build an SQL database from scratch, interrogate it and present results, but I just cannot wrap my bhead around the following issue. I am in the process of constructing a site that will return a list of suppliers to a …

Member Avatar for diafol
0
230
Member Avatar for davy_yg

banner_manager.php [CODE] include ("includes/koneksi.php"); //$_REQUEST['simpan'] = isset($_POST['simpan']) ? $_POST['simpan'] : ''; $link = isset($_POST['link']) ? $_POST['link'] : ''; $gambar = isset($_POST['gambar']) ? $_POST['gambar'] : ''; $id = isset($_POST['id']) ? $_POST['id'] : ''; //SIMPAN DATA if (isset($_REQUEST['simpan'])){ $id = $_REQUEST['id']; $link = mysql_real_escape_string($_REQUEST['link']); $gambar = $_REQUEST['gambar']; } //Cek apakah ada file …

Member Avatar for Stefano Mtangoo
0
300
Member Avatar for cdudefire

My assignment for my programming class is to create a script using JavaScript that asks a user to enter a number in a pop up dialog box on their browser, and then tell them if they entered an odd or an even number. This is what I have come up …

Member Avatar for sridhar_sam
0
2K
Member Avatar for davy_yg

product_preview.php [CODE] <h2><center>Product Preview</center></h2> <p> <form method = "post" action = "product_edit.php" > <p> <input name="tambah_produk" type="button" value="Tambah Produk" /> </p> </form> <table border="1" cellpadding="2"> <tr> <td>No </td> <td>Nama Produk</td> <td>Harga</td> <td>Tgl Masuk</td> <td>Aksi </td> </tr> <?php include ("includes/koneksi.php"); $i = 1; $output = mysql_query("SELECT * FROM produk") or die(mysql_error()); …

Member Avatar for Stefano Mtangoo
0
267
Member Avatar for britybee

I am looking for a good tutorial on how to do a simple photo gallery. I want to photo gallery to transition by using arrows to go back and forth. I found a few tutorials but none that explain it in detail. I am familiar with jquery but not too …

Member Avatar for ddymacek
0
265
Member Avatar for deleted1234

I have 3 tables. [CODE]product ----------------------------------------------- product_code | product_header ----------------------------------------------- 12345 | Wilson Pro-staff Grip plus Glove product_attribute --------------------------- product_code | attribute_id --------------------------- 12345 | 1 12345 | 2 product_attribute_types ----------------------------- attribute_id | attribute_name ----------------------------- 1 | Size 2 | Colour[/CODE] This is the output that I would like to …

Member Avatar for ddymacek
0
193
Member Avatar for dr.4030

Hi, i wanna put some editor with HTML plugins that i can insert my html or php or any other codes inside my pages just like daniweb editor is there any body to help me ??

Member Avatar for ddymacek
0
61
Member Avatar for mayreeh

how do i get total values in a row by grouping into diffrent categories. here is my code bt its getting oll totals in a row for now.. [CODE]<?php require_once('connect.php'); ?> <?php $query="Select Amountspent from Moneyout"; $result=mysql_query($query); $total=0; while($row=mysql_fetch_array($result)) { $total=$total + $row['Amountspent']; } echo "Total is:" . $total; ?>[/CODE] …

Member Avatar for mayreeh
0
167
Member Avatar for ppenguin

Trying to figure out why a script that worked perfectly well on Linux is not working on Windows server now after I moved it. It has the latest version of PHP installed and there is no reason it should not work on both. I have posted the code snippet, however …

Member Avatar for ppenguin
0
135