39,320 Topics
| |
please help. i want pass variables from a php form to an online shopping payment systems this is the url i have [url]https://usd.swreg.org/cgi-bin/s.cgi?s=133537&p=133537-2&q=1&v=0&d=0&Variable[/url] Pricing=<?php echo"$price";?>" the url links the php form to the swreg.org but it doesn't transfer the price. how can i modify the code to transfer the price … | |
hi i'm having trouble creating a drop down menu using data from the database and i dont understand where the problem is [CODE] <?php .... $conn ...blah blah blah... mysql_select_db ...blah blah blah... .... $query = mysql_query("SELECT * FROM teamdb WHERE sports='Basketball'"); $options = ""; while($row = mysql_fetch_array($query)) { $teamid … | |
Hi there, I'm using php to try and take two separate arrays ($colors and $message), write them to a single multidimensional array ($endline), and then write the resulting md array into a csv. This works fine on my localhost, but for some reason it doesn't work through my web host. … | |
Description: ------------ in my php pages i am using aes_encrypt which works fine. The issue i am having is with aes_decrypt. I have been searching for days to try and resolve this problem but need more help. The following string in my php will not bring any results back at … | |
Hi, i am trying to take a string from a text area and put it into a variable and split it by carriage returns and then add <li> to the beginning of the line and </li> to the end of a line. While putting <ul> at the beginning of the … | |
Hi there, I have a form that collects array values and then posts it to another page.eg [CODE]<form action="page2" method="POST"> <input name = "myid[]" type="text" value="1"> <input name = "myid[]" type="text" value="4"> <input name = "myid[]" type="text" value="6"> </form>[/CODE] the second page then receives the array and implodes the results … | |
Hello, I am new to php and mysql and I need to do password encryption and decryption. The password will be saved in a data base, I need to use an algorithm that uses SALT varible. Can some please help me with that? Thanks in advance. | |
is there any one with an idea of how to link a php form where by a customer places an order when the click clicks submit order data is verified,sent to database and then linked to SWREG i have implemented the order form, verification and sending data to the database. … | |
Yeah, its it possible to have multiple form in a single page. for example: <form action=test.php method=post> --- -- </form> <form action=test.php method=post> --- --- </form> Both the form action is the same test.php. Any problem ? | |
How could i create x amount of checkboxes based on how many items are in a database and populate each check box with a php variable containing the data from the database. I have had a go and come up with the code below: But i cant seem to get … | |
Perhaps not strictly a php question - but I can't find anything on this and thought you guys might be able to help. I am using a CMS which has FCKeditor built into it. Just recently (I didn't change the configuraation or server or anything) its started escaping all my … | |
I am using the code which i have attached but it generates errors.... the first error is in this line 36. if (isset($_POST[$MM_flag])){ if(empty($_POST['first_name'] || empty($_POST['last_name'])){ $error['name'] = 'Please enter your full name; name and surname'; } | |
Hi, I am trying to print a table but I can't. I have a file called r.php with rules like [CODE]<?php $rule['ab'] = "afd"; $rule['vf'] = "ghe"; $rule['as'] = "rtg"; ?>[/CODE] and in another file I write [CODE]<?php include_once("r.php"); $a = 'as'; echo $rule[$a]; ?>[/CODE] but it is not printed … | |
How to check textarea value is submitted or not on insert page? if (isset($share)){ //do stuff } or anything else? I'm using click function #share instead form submit. How to check #share is clicked, on insert.php page? config.php [CODE] $host="localhost"; $user=""; $password=""; $db=""; $link = mysql_connect("$host", "$user", "$password"); $con=mysql_select_db("$db")or die(mysql_error()); … | |
Is anyone familiar with this php class??? [url]http://justinvincent.com/ezsql[/url]. I am planing to start using it as framework. I think it is the based of Wordpress class. | |
Hi, I am using an include function to include image gallery to my site. this is index.html of image gallery: [CODE] <link rel="stylesheet" type="text/css" href="css/sliderkit-core.css" media="screen, projection" /> <link rel="stylesheet" type="text/css" href="css/sliderkit-demos.css" media="screen, projection" /> <link rel="stylesheet" href="css/main.css" type="text/css" /> <!--[if IE 6]> <link rel="stylesheet" type="text/css" href="css/sliderkit-demos-ie6.css" /> <![endif]--> <!--[if … | |
Is there anyone here tell me how to create php auto suggest box from database using mojave linux?Thanks | |
Hi what's the code to keep the login safe. I mean after people login by entering username and password, I do not want other user to be able to access my web admin just by entering the url without login first. Notes the admin folder has many pages too which … | |
I dint know how to title this but... I`ll start from begining, i have a .txt file loking like this: 2011-11-14 15:39:51,Polnoc 2011-10-13 15:41:54,Polnocny-Wschod 2011-10-14 15:43:04,Wschod Then there is a code that shows data from last mont,week,day looking like this: [CODE]$lines = file('Kier.txt'); $monthlist = ""; $weeklist = ""; $daylist … | |
I'm seeing a problem where some $_SESSION variables are passed from one page to another, and others are not. The session is setup on login, with user identity held in $_SESSION["id"]. At a later date, I want to shift the identity to another, subordinate account. The change is handled by … | |
Hi, How would i have a text box where each new line is a bullet list. [CODE]<ul> <li>method line 1</li> <li>method line 2</li> </ul>[/CODE] Can i extract the HTML code tags with the text and insert it into a database with the code and text? So it can be accessed … | |
Basically I've got a working drop-down menu php/mysql script running using the internet as my guide. But one thing I don't really understand is the significance of the period in [CODE]$options.[/CODE] [CODE]$sql = "SELECT DISTINCT artist FROM hits ORDER BY artist"; $result = mysql_query($sql); while ($row=mysql_fetch_array($result)) { $artist=$row["artist"]; $options.="<option>$artist</option>"; } … | |
How to upload images, audio files, video files using single form and store their names in appropriate tables? database [CODE] CREATE TABLE IF NOT EXISTS `photos` ( `id` bigint(12) NOT NULL AUTO_INCREMENT, `name` varchar(250) NOT NULL, PRIMARY KEY (`id`) ) CREATE TABLE IF NOT EXISTS `audios` ( `id` bigint(12) NOT … | |
Hi, I have got 2 arrays; one hold ingredient and the other hold measurement. how would i go through and list the ingredient with its corresponding measurement in the other array until i have listed all the ingredients for the recipe. here is the code i currently have. I have … | |
Here is my code. It is perfectly working on Local but not server. Need any library to work on server. [CODE] <?php //include "../dbconnect/cnn_mysql.php"; //mysql_query("insert into admin (loginid, pass) values ('superuser', '".md5('mypassword123')."')"); if($_POST) { include "../dbconnect/cnn_mysql.php"; //$userid=mysql_real_escape_string($_POST["userid"]); //$pass=mysql_real_escape_string($_POST["pass"]); $userid=secure_form_data($_POST["userid"]); $pass=md5(secure_form_data($_POST["pass"])); $result=mysql_query("select * from admin where loginid='$userid'"); if($result && mysql_num_rows($result)>0) { … | |
My joomla site is showing this error on line 205 and 219. [CODE]<?php /** * @version $Id: debug.php 14401 2010-01-26 14:10:00Z louis $ * @package Joomla * @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved. * @license GNU/GPL, see LICENSE.php * Joomla! is free software. This … | |
Hi, I have inserted a facebook like button into my page. And I want to edit content that appears on the clicker's facebook wall. How can I modify it? | |
What's the difference between "include", "include_once", "require", "require_once"? thanks. | |
Hi I have a login 'box' up in the top right hand corner of my web page. When someone logs in i want this to disappear and show a message and logout link. I have got this so far, but i cant seem to get it to work. Login form … |
The End.