39,323 Topics

Member Avatar for
Member Avatar for niths

hi all, i dont know what the error with this program.I cannot get the value. -----sample.php--- [CODE]<?php ob_start(); @session_start(); require_once ("damn.php"); createsessions(sex); ?> <html> <body> <form action="sample2.php" method="post"> <input type="radio" name="sex" value="male" /> Male <br /> <input type="radio" name="sex" value="female" /> Female <input type="submit" name="Submit" value="Submit"> </form> </body> </html>[/CODE] -----sample2.php---- …

Member Avatar for rajarajan2017
0
77
Member Avatar for muralibobby2015

hello.. i am clicking url which redirects to my webpage. for example user is not login to that site then it redirects to login page. up to there its fine. after user login how can i redirect to requested page?

Member Avatar for Girish24041984
0
249
Member Avatar for bibiki

what's up? I have the following php code: [CODE]<?php //chose the file $file = 'C:\Program Files\EasyPHP-5.3.2i\www\test\dump.txt'; //open the file in writeable mode $data = fopen($file, 'w'); //add the new element to it fwrite($data, $data.'gagi'); //close the file fclose($data); ?>[/CODE] I expect it to keep whatever is in the file and …

Member Avatar for bibiki
0
56
Member Avatar for r00ster

Hey guys. I have this problem with a page I am developing. Check the links on the left hand side of this page: [url]http://pi.dynalias.net:4092/[/url] As soon as I say move from Register to FAQ you can see the links on the left shift a few pixels to the right. The …

Member Avatar for chrishea
0
78
Member Avatar for UzuNarU

Hi ok this is what I'm trying to achieve. I have a page that loads a youtube.com video and below that video is a comments section. The video section is it's own DIV section and so is the comments. The submit new comment sits outside the DIVs. Initially the video …

Member Avatar for UzuNarU
0
278
Member Avatar for kuteinheart

hey ppl, I want to open up a list box with the values equal to the selection from the first and the second list boxes I have. Since I wan the list box to be displayed on the same page i am using AJAX. Here is the code for the …

Member Avatar for UzuNarU
0
153
Member Avatar for danielagaba

hi i'm trying to design a web application that a sales department can use to generate statistical information from data in an excel document. my problem is they want the option of generating statistical information in particular groupings (week and month) in an excel document. will appreciate any help on …

Member Avatar for sergb
0
63
Member Avatar for bsse007

i just know to upload an image and make it to move to a folder. will any body please tell me that how can i upload an image to the textarea.it means if a user upload an image it appears in the textarea. kindly reply soon

Member Avatar for sergb
0
66
Member Avatar for Chosen13

I need help making something for a forum of mine. I have view thread, new reply, new topic, forum index, view forum, and all that done. I just need this. What I want it to be is a section that lists the last 25 posts you've posted in, and each …

Member Avatar for Chosen13
0
84
Member Avatar for Dragennd

Hey, I'm trying to make a form of a search engine for my website. I have permission from my teacher to do it for class even though its for personal use. I have part of it built but I'm stuck at the "proper translation of the file" part. Heres the …

Member Avatar for Dragennd
0
162
Member Avatar for eagled2

I'm creating a site with several articles. On the main page of this site I am creating section that shows you a preview of the articles and allows you go through them using a next and previous button. I found some example code designed for use with search results and …

Member Avatar for eagled2
0
2K
Member Avatar for LloydFarrell

Hi all, Im looking for some help with a profile view counter in php. What im trying to do is update mysql db by 1 everytime a profile is viewed. ATM when a profile is viewed, my db is updating every profile by 1 please review my code below and …

Member Avatar for nonshatter
0
945
Member Avatar for johnnc

Greetings All, I am writing a php script that reads the contents of a folder and writes the files to the screen as a link. The folder has many files but the naming convention is the same. It is: randomNumber_Date_Time.pdf I need to scan the files and if the randomNumber …

Member Avatar for johnnc
0
83
Member Avatar for Mujahid158

Hello everyone, I've been looking for a open source cricket fantasy script for couple of months but haven't reached to anything. Now, i decided to code my own cricket fantasy script. But there is one thing which is making me confuse. How does the match fixtures, results and player stats …

Member Avatar for Mujahid158
0
82
Member Avatar for CzechRock3

Im trying to creat a password varification system where the user enters there password twice while making a user account but everytime the user enters there password it is telling them 'sorry, passwords dont match' Im trying to say if there are two input boxes in the first one they …

Member Avatar for Hirra
0
400
Member Avatar for Venom Rush

Hi I've been searching on how to use php variable names inside an array and to much dismay I've found nothing. I'm sure it's something really simple but I can't seem to get it even after the numerous educated guesses I've made and tried. What I want to do is …

Member Avatar for Abolshiz
0
4K
Member Avatar for leegeorg07

Hi all. I have a text file and it will be edited by multiple people at one time. I want to be able to have a script to do this for me, given the new text, the old text and if possible how many people have been editing it. I …

Member Avatar for EvolutionFallen
0
98
Member Avatar for bsse007

what will be the code of comparing the login data with the already stored data of user on the data base .kindly reply me soon.ihv to compare the two variables(user name and password).plzzz

Member Avatar for bsse007
0
2K
Member Avatar for muralibobby2015

hello...i am using this script. but when ever i am posting images then uploading only one image. this is my code. [ICODE]<? ob_start(); extract($_POST); extract($_REQUEST); if($_POST) { echo $_FILES["file_1"]["name"];exit; if(is_uploaded_file($_FILES["file_1"]["tmp_name"])!='') { $rand_variable1=rand(10000,100000); $node_online_name1=$rand_variable1.$_FILES["file_1"]["name"]; //echo $node_online_name1;exit; if(is_uploaded_file($_FILES["file_1"]["tmp_name"])) { move_uploaded_file($_FILES["file_1"]["tmp_name"], "attachments/" . $node_online_name1); $Attachments1=$node_online_name1; echo $Attachments1;exit; } } } ?> <html> <head> …

0
58
Member Avatar for vharuna

Somebody please help with this code. I have been tryin to calculate and display the total of the total output from an oracle database. Please see my code below and kindly tell how i can display the total. <?php $conn = oci_connect("Username", "pwd", "IP/tns"); $date=date('d M Y'); $total= oci_parse($conn, "select …

Member Avatar for LethargicCoder
0
138
Member Avatar for nonshatter

Hi all, I have just made a search bar for a site but I am having trouble trying to return the number of results that are found. E.g. I want it to print "Your search terms returned 'xx' results" after each search. This is my code: [CODE] <?php include ('db.php'); …

Member Avatar for Virtualbase
0
2K
Member Avatar for dicksonkaranja

Guys i was wondering if any of you can suggest a book or a tutorial that i can use in object oriented PHP

Member Avatar for Virtualbase
0
79
Member Avatar for nanharb

I am trying to create an update query for a website, and I keep getting an syntax error message. I narrowed it down to the table column that is the only field that is set to be of type text. [code]UPDATE company SET references = "blah blah blah" WHERE company_id …

Member Avatar for cereal
0
2K
Member Avatar for bsewell

HI All, I'm developing a security system for a CMS but it appears that my redirect does not work. I'm using sessions and I know that the session is being created since I did an echo on session_id(). [CODE]<?php if($count==1) { $_SESSION['loggedin']=1; print "logged in"; header('Location: edit.php'); print "no"; } …

Member Avatar for Virtualbase
0
282
Member Avatar for paragouldgamer

The code: [CODE = php] $selecteddate = $_POST['Releasedate']; $selectedplatform =$_POST['Platform']; $selectedstyle = $_POST['style']; $query="SELECT * FROM $table WHERE date = '$selecteddate'AND Style = '$selectedstyle'AND Platform = '$selectedplatform'"; [/CODE] Ok, the code works if someone picks something for all 3 of the items, so all of the code works, but if …

Member Avatar for Virtualbase
0
96
Member Avatar for bsewell

Hi All, I'm trying to replace all occurances of ' to &rsquo;, which is it's character code in HTML. How to I get str_place to search for '? [CODE]$data=str_replace("&rsquo;","'",$data);[/CODE] Cheers,

Member Avatar for mschroeder
0
76
Member Avatar for fortiz147

please help i don't know how to delete multiple rows in mysql using checkboxes, because it seems the delete doesn't seem to work. here's the code: [code=php] <?php $host="localhost"; // Host name $username=""; // Mysql username $password=""; // Mysql password $db_name="test"; // Database name $tbl_name="test_mysql"; // Table name // Connect …

Member Avatar for light-man
1
334
Member Avatar for atullalit91

In 2dys code, m trying best for updating values on the basis of id coumn value but its not updating... thn i tried to target data using select command.. nd it shws d result thr4 now m confused wth update command... plss chkout ths code as well... [CODE]<?php $host="localhost"; $username="root"; …

Member Avatar for atullalit91
0
118
Member Avatar for Carter12

Hello, I need some advice from some of the more expert programmers on what path should I take further in my learning process. I started with PHP and now I can say I do ok, not an expert of course. I like programming very much and I love PHP, it's …

Member Avatar for omol
0
255
Member Avatar for GeoffC

I have a couple of buttons in html as follows: <tr> <td><a href="member_archive_action.php"><input class="button" name="Change" type="button" id="Change" value="Change" ></a></td> <td><a href="members.php"><input class="button" name="Back" type="button" id="Back" value="Back" ></a></td> </tr> Each of them calls the appropriate php script twice when pushed. The Change button toggles a flag so was apparently doing nothing. …

Member Avatar for amphetkid
0
79

The End.