39,316 Topics

Member Avatar for
Member Avatar for lewashby

In the following program can someone please tell me why my script is skipping the first else clause and never printing "You have already changed your password"? Everything else is working fine but when I enter in a username and password that have already been entered into the system it …

Member Avatar for lewashby
0
212
Member Avatar for Priti_P

Hello, I have below code for my calender invitation. <?php $message=" BEGIN:VCALENDAR VERSION:2.0 CALSCALE:GREGORIAN METHOD:REQUEST BEGIN:VEVENT DTSTART:20130901T121000Z DTEND:20130901T131000Z DTSTAMP:20110525T075116Z ORGANIZER;CN=From Name:mailto:from email id UID:12345678 ATTENDEE;PARTSTAT=NEEDS-ACTION;RSVP= TRUE;CN=Sample:emailaddress@testemail.com DESCRIPTION:Test the first invite LOCATION: Test Location SEQUENCE:0 STATUS:CONFIRMED SUMMARY:Test the first icalendar invitation TRANSP:OPAQUE END:VEVENT END:VCALENDAR"; /*headers*/ $headers = "From: From Name <From …

Member Avatar for LastMitch
0
295
Member Avatar for logicslab

Dear pals, I am newbie in RESTful services . I need to call a GET Verb in Server . I know 2 methods 1. Ajax Call we can write it as $.ajax({ url: url, dataType: "html", type: 'GET', data: "id="+id+"&type="+type, success: function(data){ //$("#content").html(data); alert(data); $('table #sample-boxed-2-pagination th a').each(function(){ //this.href = …

Member Avatar for diafol
0
294
Member Avatar for shhh

hello i just want to ask if how to echo value/details using this API link that have given - http://themesnmotifs.com/api/wp/f6f60a0e7091a627641f01b9d1dd7536ea4b8496/list_wp - for example i want to echo all the companyand wp_cellphone -- . thank you

Member Avatar for logicslab
0
267
Member Avatar for seotech012

Hey Guys I m trying to open a php page (that retrieve data from database according to the form fields) on button click in a modern type popup window like fancybox, lightbox iframes etc...you can check the link (www.goodmoves.in/)..currently it is opening a normal old fashion popup window. . . …

Member Avatar for diafol
0
921
Member Avatar for ahmadweb

Could any one plz tell me what's wrong with my code My sql select while loop is not checking date range that's been inserted into the form. <?php if(isset($_POST['start'])&& ($_POST['end'])){ $user_id = $_SESSION['user_id']; $leave_type= $_POST['leave_type']; $comments= $_POST['comments']; $start=date('Y-m-d',strtotime($_POST['start'])); $end=date('Y-m-d',strtotime($_POST['end'])); echo $start,'',$end; **$checkdate = "SELECT * FROM emp_status WHERE user_id='$_SESSION[user_id]' AND …

Member Avatar for ahmadweb
0
363
Member Avatar for cussel

hy all, how to get previous value and check different between recently value and previous values in loop < 0.5? if different value < 0.5 get it's array please help me define('DIV', 0.5); function iteration($data, $data2) { $m1=$m2=$data; $m3=multiply($m1,$m2); echo "iteration 1:\n"; print_r($m3); $temp_m3 = $m3; for ($i=0;$i<count($temp_m3);$i++) { for …

Member Avatar for cussel
0
908
Member Avatar for ncis_sg1

I need help with an assignment. I have been working of this the better part of a week and still do not really understand what I am meant to do. This is my first week using PHP and I am really confused. Here are the instructions: Write a PHP script …

Member Avatar for ncis_sg1
0
1K
Member Avatar for sabarinadh.ch

Here i am uploading data through a form which contains some input fields and one image. But i want to upload multiple images here instead of one image. I am attaching my php code here to upload the data and single image. Can anyone edit this code to add mutliple …

Member Avatar for diafol
0
790
Member Avatar for Clanstrom

When I check sometimes, on the php.ini files, I see that there are many loaded extentions, and for the most part, I only open the file to enable or disable some extentions like curl, but other than that, I do now know what the hundreds of extention do, so I …

Member Avatar for diafol
0
114
Member Avatar for dannybarh

Hi, i have successfully stored a link to docx and pdf files into mysql db. I'm trying to retrieve it from db and display it similar to pictures. Now when the user click on it, it should open the file and display it. If any one have a code sinppet …

Member Avatar for diafol
0
189
Member Avatar for developer707

Hello, Recently I am trying to make a php file than when it is opened it should backup a database and promt the user to save the .sql file... This is a feaure that has phpmyadmin but I want something very simple, just clicking http://mywebsite.com/backup.php and the file should be …

Member Avatar for broj1
0
202
Member Avatar for techxaidz

Hi! I'm a newbie in PHP. I'm currently looking for a debugging tool for PHP, does DreamWeaver CS6 provides this? Or is there any debugging tool, easy to install? BTW, I tried downloading xDebug but i can't figure out how to install it into eclipse Juno. I downloaded a DLL …

Member Avatar for veedeoo
0
149
Member Avatar for travis.holt.921_2

I am working on a form that will redirect users based on a form. The form asks for a zipcode. If the zipcode is correct (one of the zipcodes in the service area) then I want to redirect to an order page. If the zip code is incorrect, not in …

Member Avatar for EvolutionFallen
0
216
Member Avatar for dannybarh

I have this code $request = mysql_query("SELECT note_title,image_file FROM notez"); while($row=mysql_fetch_array($request)) { echo $row['image_file'].'<br />'; echo $row['note_title'].'<br />'; } and the path to the folder where i stored the files is userimages_doc when i click on note_title , i want to download the file

Member Avatar for pzuurveen
0
99
Member Avatar for my3h

0 down vote favorite I have a table in database like this: ID, features, Values : ID will be 1, 2, 3.... features will be color, size, material.... values will be red, 13inch, silicon... I stored it like this: ID 1 1 1 Features color size material values red 13in …

Member Avatar for my3h
0
135
Member Avatar for vishal_WebDev

i used addslashes() in php its added \ slash in FireFox Browser thats Working BUT in Chrome Browser this Function add / slash So,My URL is not Display Correct Content.. so, What Should i use over here... Please... Thanks.

Member Avatar for pritaeas
0
80
Member Avatar for Burhan_1

I am creating a flight/hotel reservation system like farecompare.com Farecompare parse values to other sites and create sessions other sites too. Anyone tell me how they create sesssions in it. I can parse url but i am not able to create sessions. public function flight($depart, $return, $from, $to, $type, $class, …

Member Avatar for broj1
0
191
Member Avatar for mohammed.ismail

what is the first file that get loaded when you run a application using cakephp? can you change that file?

Member Avatar for EvolutionFallen
0
64
Member Avatar for mohammed.ismail

what is a component,helper and why are they used, is there other way we can do same thing, what is better?

Member Avatar for EvolutionFallen
0
89
Member Avatar for dyea.marcello

I am running a PHP script, and keep getting errors like: *Notice: Undefined variable: result2 in D:\xampp-win32\htdocs\sites\bookstore\result_page.php on line 200 *warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, null given in D:\xampp-win32\htdocs\sites\bookstore\result_page.php on line 200 Line 200 looks like this: `<?php while($row = mysqli_fetch_array($result2))` What do they mean?

Member Avatar for pzuurveen
0
163
Member Avatar for dannybarh

Hi all, i have a table in db which contain some pdf and docx files. Am trying to display it in a way, so that when the user click on it, it will load the pdf and/or docx file from db in another/same window. this is what i have done …

Member Avatar for pzuurveen
0
3K
Member Avatar for bavenbabu

I cant install cakephp.I had wamp installed me.But when i try to install cakephp i got the following errors CakePHP: the rapid development php framework Release Notes for CakePHP 2.1.1. Read the changelog Notice (1024): Please change the value of 'Security.salt' in app/Config/core.php to a salt value specific to your …

Member Avatar for kevinpatel
0
2K
Member Avatar for kevinyu

Since I am just experimenting on this, (only localhost) I may like to ask for some ideas(since nothing is really coming out of my mind) about letting a user, who is going to, for example, register to a mini-social-networking site, with a corresponding username/password, personal details, etc. I would upload …

Member Avatar for kevinpatel
0
238
Member Avatar for kshahnazari

I have a ajax fucntion that gets a json array from the php , 8 numbers formed like this ["0","0","0","0","0","0","0","1"] , As I get this in a var called data , data[0] and this kind doesen't work , how can I access this numbers ?

Member Avatar for Bachu
0
351
Member Avatar for logicslab

Dear friends, I am using the XML-RPC Server to implement a simple login authentication as a web service . So I wrote a function in wp-includes\class-wp-xmlrpc-server.php like function web_auth($host, $db, $dbuser, $dbpass, $username, $password) { $dbhandle = mysql_connect($host, $dbuser, $dbpass) or die("Unable to connect to MySQL"); $selected = mysql_select_db($db,$dbhandle) or …

Member Avatar for LastMitch
0
283
Member Avatar for ncis_sg1

I have an assignment that I have been working on for the past few days that is making me go crazy. The instructions are as follows: Write a PHP script that tests whether an e-mail address is input correctly. Verify that the input begins with series of characters, followed by …

Member Avatar for ncis_sg1
0
1K
Member Avatar for Coyx

Hi all, First tutorial submission. The standardised strtotime() function really grinds my gears. I hate messing about with dates in different formats... so I mullered this little function up. It works perfectly - probably easier ways to do it, I don't know... I just include this function in my functions …

Member Avatar for diafol
1
244
Member Avatar for gogs85

How to show some articles from another website with API example: from this web site http://shopper.cnet.com/buy-pc-games/ name of game,pictures and price to show on my website, with automatic update?

Member Avatar for JorgeM
0
95
Member Avatar for vinojai

Hi I did one php application. In that application on clicking the download button.The datas from database have to convert into excel sheet and download. Can anyone please help me to do..

Member Avatar for layman114
0
568

The End.