39,320 Topics
| |
Hello all, I'm pretty new to PHP & SQL. I am having some trouble with a web voting page I'm creating. I have a PHP loop which is displaying data from SQL table A. Beside it, a small text box linked to SQL table B to allow users assign numeric … | |
Hi, Is it possible to include php file in python? in my application already header and left menu and footer are existing in php. i want to include those files in my new python script. Plz tell me how to do this? Thanks in advance -Shyami | |
i want to convert string into hexdecimal value.. Like 'Hi' into 00680069 [code=php]<?php function ascii2hex($ascii) { $hex = ''; for ($i = 0; $i < strlen($ascii); $i++) { $byte = strtoupper(dechex(ord($ascii{$i}))); $byte = str_repeat('0', 2 - strlen($byte)).$byte; $hex.=$byte." "; } return $hex; } //echo ascii2hex('he'); echo dechex(ord('hello')); ?>[/code] I got … | |
i'm trying to do this loop, don't know how to code it though. is it a loop? i'm thinking it's a for loop. 'for every 105px above 800px increase $max by 1. | |
i have a webpage wherein it has two frames in it. now, i want to transfer the data coming from FRAME A to FRAME B. now, i thought of using a session, but it does not work, what i want is that when i click the button in FRAME A, … | |
i have a mysql table which is categoryid categoryname parentid now the senario is that i want to grab all categoryid of a parentid ... like if i put parent id = 12 so that parent id has now become root id and it should get all the sub sub … | |
hi, i'm back again to ask few question i have a problem on my online reservation system. here's my code [CODE]<?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("reservation", $con); $rno = $_POST['rno']; $in = $_POST['ADate']; $out = $_POST['AnotherDate']; $nor = $_POST['noofrooms']; $rtype = … | |
Ok I was almost finished with integrating Authorize.net with the Advanced Integration Method (AIM) using PHP and I keep getting an error. I figure I will keep my donation page but need to know a better way to implement authorize.net. I am still new to but I can not figure … | |
hi all, i have to create web form creator as shown in below link.... how to make it i need idea how to implement this [URL="http://www.phpform.org"]http://www.phpform.org[/URL] | |
How do I code a function that uses external variables? For example? I have an upload script that I am using repeatedly through a few pages. I'd like to make my code more efficient and just define the upload script as a function and call it every time I need … | |
Hye, I have a select box with me and whenever I use a submit button only the selected value in the select box is posted. I am making a questionnaire so, I should be able to have all the entered options to be posted and not just the one on … | |
Hello I need to pass an array of client side events to the next page. Here my user would perform a few events which would be stored in a javascript array, upon completion a submit button would be used to post all that data to the next page. An example … | |
Hey Guys, I'm using Authorize.net as my payment processor. When I try to make a transaction it is not working properly because of the MD5Hash. I set up a variable and it is not working, in the authnet manual it says "if the MD5 Hash value configured by the merchant … | |
[code] if( $_SESSION['user_id'] <> 1) { $ref = $_SERVER['HTTP_REFERER']; header( 'refresh: 5; url='.$ref); echo $_SESSION['user_id']; // <----- echoes '1' echo "<h2>Some feature is currently unavailable.</h2>You will be redirected to $ref in 5 seconds"; die; } [/code] I've written this a hundred different ways and it still redirects even though the … | |
i hate my life because I do not know what Im doing im trying to leave a cookie on the users pc from the URL. THIS IS THE URL (generated by infusionsoft) http://www.get-financed.org/rtest/2/?Contact0Email=pleasegodwork@jjsjs.com&contactId=40939 The URL contains something called contactId and im using this code // set the cookies setcookie("cookie[three]", "<?=$_GET['contactId']?>"); … | |
So I came back home and checked my emails then found my usual google alerts. One google says - "What does the P in PHP stand for". So I click the link and it says Pink - According to Barbie Nerd. Now who would ever think of such a crazy … | |
I have this code to validate part of a file upload: [CODE]if (!($fileExt == 'doc' || $fileExt == 'docx' || $fileExt == 'pdf')) { $error = 'The file does not meet the file type requirments. Only Microsoft Document and PDF files are allowed.'; $etype = '1'; include ('inc/error.php'); }[/CODE] Is … | |
Hi, I need to upload pdf file using php and store that pdf files in certain path.The pdf which is under Acrobat Distiller is uploading successfully.But the pdf files which is under AFPL Ghostscript is not uploaded. coding: echo $_FILES['file']['type']; if($_FILES['file']['type']=="application/pdf") { if(file_exists("$filepath/upload/$basename")) { //file already exists return false; } … | |
hi everyone i m completely fed up to solve dis prob.... i checked my code so many times but i cant find where is my mistake...... plz help me out..................... I am selecting records from diff tables......my select query is correct and after dat m inserted new record and dat … | |
below in the form action, i've put "test.php?w=$sw&h=$sh" but when i input the form and submit i get this.. test.php?search=example&submit=search how do i get all together in the url? like this [url]http://test.php?w=$sw&h=$sh&search=example&submit=search[/url] i even tried this [code] <form action="<?php $sw = $_GET['w']; $sh = $_GET['h']; $theurl = "http://test.php?w=$sw&h=$sh&"; echo $theurl; … | |
Two different servers a and b, using the same database and table, select one of the tables, about 3000 records To use phpmyadmin to view, use the default configuration, 30 records per page 1 1 shows, a server page shows spend more than b servers 0.0002-0.0003 seconds (a typically 0.0006 … | |
Hello everybody this is my first post. I have a web page in php that allow the users to enter a value from three radio buttons. The problem is, i want to allow the users too change their selection on the edit page but first their selection has to be … | |
Hi guys I was hoping you could help:'(, I have created a web page where by the number of records is about 40. But put on paging on my page with the use of Dream weaver. The problem I have is that yes it does display 5 At a time … | |
hi, i have tried to use gd graph, it works, however, whenever i will input a message, it does not appear. if u will display the graph and the message in a separate webpage, it will appear. now, my question is that, is it possible to merge the graph and … | |
Hi, I was wondering if anyone had any good suggestions for some php blogs/rss feeds worth subscribing too? And if anyone knows any based on php security it would be great! Thanks! | |
[CODE]<?php if (isset($_REQUEST['submit'])) { echo "<p> hello</p>"; $dbhost = 'localhost'; $dbuser = 'root'; $dbpass = 'shshsh11'; mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql'); $dbname = 'Studentt'; mysql_select_db($dbname); $result = mysql_query("SELECT * FROM `allele`"); print $result; } else { ?> <html> <body> <form action="wcode.php" method=POST> <P><strong>Available Queries</strong><br> <INPUT TYPE="radio" … | |
Hi, I've got a "contact us" form on my website and naturally i'm trying to guard against sql injection/hacking The body of the text gets run through the below function, however this means i end up with How's it going = How's it going Can someone tell me which part … | |
Hey ppl, I have a form with the start date and end date fields... I want to check if bothe fields are filled and also to check if the start date is earlier than the end date... [CODE] <form id="form1" name="form1" method="post" action="get2.php" onSubmit="return validateform(this)"> Checking code... <script language="javascript"> <!-- … | |
Hello Friends, i am having problem in pagination of my php website i written the code like this its working for first page good from second page onwards it showing all the results in a single page [code] <?php if((!defined('BASEPATH'))) exit('No direct script access allowed');?> <!-- HEADER --> <? $this->load->includes('header');?> … | |
I was trying to add set cookie to this, which works (set cookie to expire 1 year from set date), but resets the cookie value each time. I want to check if someone has already entered their age and if so, direct them to the appropriate response page. i.e. - … |
The End.