39,316 Topics

Member Avatar for
Member Avatar for doha786

i'm just very new in php & its my 1st post here.. having a small problem to pass the login error msg to LOGIN.PHP from check login page. here is the code of **checklogin.php** file: if($count==1){ // Register $myusername, $mypassword and redirect to file "welcome.php" session_register("myusername"); session_register("mypassword"); header("location:welcome.php"); } else …

Member Avatar for doha786
0
264
Member Avatar for xbat

I am trying to add a input box that has the phone section in it. I did add it in.. But it doesn't load in the message that I get in the email.. if i change around the code. I can get just the phone number to show in the …

Member Avatar for xbat
0
288
Member Avatar for Jollyyy100

Hi, i have successfully made my registration and login page. Now i need help. When i click on login by using specific username and password that i had created, i want my next page to show details about that person, this details are stored in Mysql when they register and …

Member Avatar for zain10137
0
1K
Member Avatar for ratanji

pls i want how to upload and retrive only pdf files in php and mysql code or any links..

Member Avatar for ratanji
0
145
Member Avatar for dan_code_guru

Hi i am working on a server sent event script to be sent when the user has logged out, but in the network tab the server sent pages are being sent every couple of seconds with no data. Client-Side script var source=new EventSource("include/updates.php"); source.addEventListener('logout',function(event){ $("#notificationsContainer").append(event.data + "<br />"); source.close(); },false); …

Member Avatar for dan_code_guru
0
240
Member Avatar for chanchal.os

how can i search names according to checkbox values from database table

Member Avatar for Bachu
0
67
Member Avatar for Mits14

I need help!! What I want is when I add a new teacher, it will search the tblteacher_info. If there is already a record of that teacher, it will just update his/her record. If there is no record of that teacher, it will add his/her info in the tblteacher_info. I …

Member Avatar for Mits14
0
144
Member Avatar for poskypozze

Hi friends! i'm currently work on a chatting system that requires me to list all the user friends, so i need a code that will help me navigate throw the freinds list one after the other. thanks!

Member Avatar for diafol
0
159
Member Avatar for Szabi Zsoldos

Hello guys, Working on a stock market table with rates of different currencies. What I would like to achieve is that i have an array of rates and would like the difference of today and the previous day, and it works, but i'm getting an empty value for the first …

Member Avatar for Szabi Zsoldos
0
193
Member Avatar for mmcdonald

I cant use a cron for this task as the script should always be running. I have a loop that does the following: 1) Gets a SQL row 2) Runs the values through some functions 3) stores new values 4) gets the next row and repeats This script has to …

Member Avatar for mmcdonald
0
421
Member Avatar for HunainHafeez

i have a code files in php + mysql database , so now i want to make them online on some free hosting site. i am totalyy blank about this, so how to make it online so the world could see

Member Avatar for HunainHafeez
0
149
Member Avatar for empror9

i'm working on a script and I want to make the links such as www.mysite.com/signup. this link for registration. www.mysite.com/user/username and this link for user's profile. the links without any php extension. also when someone request link such as www.mysite.com/signup.php should redirect him to www.mysite.com/signup what I know is I …

Member Avatar for empror9
0
143
Member Avatar for david.f.smith.351

Hi, Ive already started a thread similar to this but for a different form format. this one is as follows... Im struggling with the correct code to do the following... probably something simple to many but im new to PHP and learning as I go. I have a simple php …

Member Avatar for adam.adamski.96155
0
475
Member Avatar for websponge

I have a simple form that uses a bit of jquery, <form action="" method="post" enctype="multipart/form-data"> <label for="file">Upload File:</label> <input type="file" name="userfile" id="userfile" /> <input type="button" value="Submit" onclick="uploadfile()"/> </form> the uploadfile() in my .js file looks like this: function uploadfile(){ var userfile = document.getElementById('userfile').value; var username = document.getElementById('username').value; $.post("php/upload.php", {userfile: userfile,username: …

Member Avatar for websponge
0
539
Member Avatar for david.f.smith.351

Hi, im new to PHP programming and ive tried a few forums on the net with this question and so far no answers. I have a php form that is working fine with a pre-determined email address, part of the code is as follows: $data_email_sender->AddToAddr("name<name@website.com>"); I also have a variable …

Member Avatar for adam.adamski.96155
0
458
Member Avatar for branding4you

Hi I read a text file using PHP, the file gets uplaoded, and what I want to do is read the file take some information out of it and post it to mysql. Problem is that when reading the file it removes the spaces, I cannot count where the data …

Member Avatar for branding4you
0
359
Member Avatar for Webville312

Hello, I want to submit multiple records into a mysql database, and I have hit a snag. I am developing a web application that displays student records, and upon displaying student records per class, I want to be able to add marks for beginning of term, mid term and end …

Member Avatar for Webville312
0
1K
Member Avatar for riahc3

Hey I want to do something like this: <script language="javascript"> function calculatesha() { var name = document.getElementById("firstname").value; var last = document.getElementById("lastname").value; var complete = name+last; var hash = <?php echo(sha1(?>complete<?php));?>; } </script> I hope the code is understood even if it is wrong. Thanks.

Member Avatar for riahc3
0
260
Member Avatar for mionazraelmiranda

hi! i'm having a hard time figuring out how to add two values(numbers) retrieved from a table. They should be added and displayed. how can i do this? here's the code snippet: require('connect.php'); $result = mysql_query("SELECT * FROM `order` where date = '$date' "); while ($row = mysql_fetch_array($result)){ echo "The …

Member Avatar for mionazraelmiranda
0
185
Member Avatar for daniel36

Hello sir, i am working on a project in which pdf view in iframe is required.It is working good in windows but it is not opening in firefox in linux.it is giving direct download option.any solution?please help me.

Member Avatar for cereal
0
77
Member Avatar for ghenaw

Hi I'm trying to send a request to a my webservice using curl $content = '<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns2="http://www.travelledia.it/XHI" xmlns:ns1="http://localhost/test/soap2/" xmlns:enc="http://www.w3.org/2003/05/soap-encoding"> <env:Header/> <env:Body> <ns1:OTA_HotelAvailRQ> <AvailRequestSegments> <AvailRequestSegment AvailReqType = "Room" ResponseType = "RateInfoDetails"> <HotelSearchCriteria> <Criterion> <HotelRef HotelCode="5095">xxx</HotelRef> </Criterion> </HotelSearchCriteria> </AvailRequestSegment> </AvailRequestSegments> </ns1:OTA_HotelAvailRQ> </env:Body> </env:Envelope>'; // Assign headers $headers = array("Content-type: …

Member Avatar for ghenaw
0
849
Member Avatar for iamshahz

I have php script that was writtin in 2009, it was working fine on my server even 1 year ago. i have upoloaded same script on server now, main page is seems to working ok and i can do anything in backend. is it due to php4 - php5 or …

Member Avatar for diafol
0
138
Member Avatar for chandbasha

Hi, pls can any one tell me how to configure zf2 on wamp. I have downloaded zf2 minimal package. But there is no zf.bat,zf.php,zf.sh files. And i am getting fatal error as Zend/Application.php not found. Pls can any one explain in detail.......... Thanks in advance

Member Avatar for hareshramani
0
218
Member Avatar for hfiza.amirah

hello all, please help me, how to make email broadcast in our website? ar u can help me to share it`s php source code? i need reference for my homework... please thanks before

Member Avatar for broj1
0
260
Member Avatar for bishopbones
Member Avatar for mahdiyazdani

hi every body i want to show in each row 4 items from my db and go to another row (++row) in each row 4 items until end of items of db instead of in each row 1 item please help me here is the code <?php $sql=mysql_query("SELECT * FROM …

Member Avatar for Bachu
0
264
Member Avatar for kischi

Hi, I'm trying to implement some php code that I have in one document into another document. However when I do that I get this error: Parse error: syntax error, unexpected $end in /home/www/wearecrunch.dk/gammelsjuf/ajax/class/phUploader.php on line 470 I think it has something to do with where I'm placing the code, …

Member Avatar for kischi
0
445
Member Avatar for mahdiyazdani

hi everybody i got this page form some template that shows items in the page with pagination system but i want to keep this method without any pagination i dont want to spilit number of items i just wanna see all of the items that it read from db in …

Member Avatar for mahdiyazdani
0
356
Member Avatar for hiyatran

I figure out how to write all the entries from my database onto a text file. header("Content-Type: text/plain"); header("Content-Disposition: Attachment; filename=test.txt"); header("Pragma: no-cache"); exit; How do I modify the text file?? Each entries (or row) have 5 elements in it and there are multiple entries in my database. How do …

Member Avatar for LastMitch
0
147
Member Avatar for anilbisht04

How can I remove Canonical/Number tags from Mingle Forum topic Permalinks? I'll be grateful if you can help. Thanks in Advance.

Member Avatar for LastMitch
0
64

The End.