39,402 Topics
![]() | |
Hi all. I am completely new to PHP and MySQL and this forum, so I hope someone can help. I have just installed xampp (completely out of the box as it were) and am having problems with a simple script. The script is below [code] <?php ini_set('display_errors', 1); $connx = … | |
I've got a function for making input safe. One takes from a textarea on a form. The problem is when someone types a few paragraphs in it, using regular sentence stuff like ( ' , . () ? ) it kicks it out and gives them my error message. How … | |
Hello Everybody, i m new one in php/mysql, i created my database with the name of air_data, and in table i created 4 fields, in which one is "date", in every row i have different dates, now i trying to find out those "date" records for which i m searching … | |
hi iv got phpmailer and recaptcha together but im stuck. iv integrated recaptcha within my php form and im stuck on this part where it validates recaptcha and then if success i want it to submit the form to phpmailer. please see the following code [CODE] // redirect to success … | |
hi all, i need a link 'delete' so that wen i click on that link button that selected name should get delete. i know somewhat to write delete code but how to make it in a link..? can any one... Thanks in advance. | |
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---- … ![]() | |
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? | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
![]() | 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 … |
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 | |
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> … | |
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 … | |
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'); … | |
Guys i was wondering if any of you can suggest a book or a tutorial that i can use in object oriented PHP | |
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 … | |
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"; } … | |
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 … | |
Hi All, I'm trying to replace all occurances of ' to ’, which is it's character code in HTML. How to I get str_place to search for '? [CODE]$data=str_replace("’","'",$data);[/CODE] Cheers, | |
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 … | |
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"; … | |
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 … | |
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. … | |
Hi Well when i open my site in Internet Explore 6 then WordPress Widget(FeedBurner Box)goes down n when i open it in another browser then it ok [B]This Pic from Chrome :[/B] [img]http://www.roboimages.com/image/ri55421/chrome1.JPG[/img] N [B]This From IE 6[/B] [img]http://www.roboimages.com/image/ri55420/ie6.JPG[/img] this is my site [B]technme.com[/B] so any help waiting reply Help … | |
Hi, I created a couple of web applications with php and mysql and i have a problem that keeps coming up. I want to use html text boxes that will send information to the database but i want it to include line breaks.... until now i just typed in <br/> … | |
Hi, I want to integrate the dhtmlxScheduler calender with the codeigniter framework. but i am not sure how to connect with the model instead of the db directly and also, how to manage the interaction between the controller, the model and interface thanks, | |
I was wondering how I would precess a form using ajax. All my ajax works and my form works, but my form within the ajax doesn't work. Here is my contact.html page [CODE] <head> <script type="text/javascript"> function loadXMLDoc(url) { if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new … | |
Hi, I currently am calculating the age based on Date of Birth from the database. However I am told that I cannot search an AS on my recordset query from mysql database with PHP. Is this true and if so how can i search the age calculated from their Date … | |
I have tree Iframes loaded with three different PHP files. I want to store them in a single mysql table after i click a button on main page. Need to display all details on the iframes till i click the main pages button. Please Help me how can i do … | |
hello. i want to have a database in which i can have data of proteins and their structures .I'm New to php and have a biological background i studies . so can any one help me step by step that how can i build the database. regards Stefano [email]sa_kushi@gmail.com[/email] ![]() | |
i already have the id field which is auto increment primary key. I have another field that i want to be auto increment/autonumber but phpadmin/mysql doesn't allow? how else do i have a field with an autonumber? | |
hi .. i am a newbie in PHP .. i have learned some php script and ready to make something from PHP .. can anybody suggest me, how to test my PHP skill ? i mean, u guys of course ever be a newbie, right ? so, when ur still … | |
Steganography- to hide text into text. Very safe to transport information internet. HERE is [URL="http://www.programva.com/en/php-steganography-encryption"]PHP STEGANOGRAPHY example[/URL]. There is a list of phrases , which is mixed with Caesar cypher :). May somebody hnows another sites? | |
[QUOTE]i hav a session variable.but wen i try to access it from the other page it is not showing anything.so i think session value is not working.[/QUOTE] ------User.php------- [CODE]<?php ob_start(); @session_start(); require_once ("check.php"); createsessions($username,$password,$userid,$projectid,$projectname,$filename,$size,$allocatedmemory,$answer,$usedmemory,$Remainingmemory,$result,$data3,$abc); include 'connection.php'; $query= mysql_query("SELECT projectassign FROM projectassign where userid=(select userid from users where username='$username' and role='2')"); … | |
Hi, I have never used table locking before. Would something like this be sufficient? Basically I want to only allow exclusive write access to the bid table: [CODE] <?php $query = "LOCK TABLES bid WRITE"; $placebid = mysql_query("INSERT INTO bid (auction_id, seller_id, bidder_id, b_timestamp, b_currentprice) VALUES ('$id', '$uid', '$ruid', NOW(), … | |
hi all, i want to store a value in session by using javascript in php.Can any one say me about it, i mean how to store and how to get that in the other php page. Thanks in advance.. | |
Hi All, I'm trying to write some code to read a CSV file and produce HTML from it. I'm using MAMP to develop the page, but no code at all will display in the browser. I would like the first line of the file to be the header, and then … | |
[url]http://www.zazzle.com/cr/design/pt-mug[/url] demo site add text we see the text is in the image when move the position , text is moving how can we done here? |
The End.