39,316 Topics

Member Avatar for
Member Avatar for theonlylos

I currently have a client who came to me asking me how to build a system for him where he can give varying levels of discounts to events based on the number of people who get referred via a unique affiliate link/cookie. The key stumbling block for this project isn't …

Member Avatar for cuonic
0
297
Member Avatar for LastMitch

Hi I'm having problems trying to echo the array, that I created. I'm trying to create a 3-D array. Here is the file: $futures = array(array(array("GC", "Gold", 1,605) (array("SI", "Silver", 27) (array("PL", "Platinum", 1475) (array("HG", "Copper", 3.48)), (array(array("CCS", "Corn", 707) (array("SNS", "Soybeans", 1,525) (array("WCS", "Wheat", 846)), (array(array("CJ", "Cocoa ", 2,335) …

Member Avatar for blocblue
0
314
Member Avatar for sri.
Member Avatar for sri.
0
5K
Member Avatar for zychos

I am trying to create a where clause that loops through my foreach loop. The idea is to have a search with four possible values depending on which values the user fills in. ,<?php $fname = $_GET['fname']; $lname = $_GET['lname']; $nature =$_GET['nature']; $ticket_id = $_GET['ticket_id']; $nbsp = " "; $fields …

Member Avatar for zychos
0
289
Member Avatar for David2012

In an HTML form when I use a radio button how will the php program where the data goes to will know the correct option chosen? in HTML the script will be like: <form action='abc.php' method='post'> <LABLE>YES</LABLE> <input type='radio' name='agree'> <LABLE>NO</LABLE> <input type='radio' name='agree'> </form> Now since both options have …

Member Avatar for David2012
0
16K
Member Avatar for mits28

I'm new to PHP.I'm trying to do something very simple,I have tried to search on google but still i'm not understanding why its not working. I'm trying to send information through a url, and having a script pick it up using the $_GET super global. This is FORM.php script: `<form …

Member Avatar for tyson567
0
193
Member Avatar for Raakesh399

hi, i want to create a website with web services facilities in php. is this possible?

Member Avatar for Raakesh399
0
96
Member Avatar for tyson567

//$time in the second php code hold the time stored in the database in the same format as above(ie TIMESTAMP Format) //Save the first php code as timeago.php //include first php code u saved in the second php code as i have done.. //Use the Second Php code Wherever You …

Member Avatar for tyson567
0
1K
Member Avatar for Subless

I need a little help creating a current page link system that makes the link text bold but not linked. The basic concept is setup like this: <strong>Link 1</strong> <-----------Current page is bold not linked <a href="test.php">Link 2</a> <a href="test2.php">Link 3</a> <a href="test3.php">Link 4</a> The pages that I am not …

Member Avatar for diafol
0
182
Member Avatar for rileyganimator

Not sure if this is in the right forum because I didn't really know where else to ask this, but I need some help with my site. Version of apache on my site: 2.2.17 //not sure if this helps people answer my question or not The problem I'm having is …

Member Avatar for rileyganimator
0
159
Member Avatar for CaptCuffs

Hi guys, I was wondering if anyone can help. I need to count the number of lines of text in an array (they are separated as bullet points at the moment) and after a certain amount of lines, the array will carry on from a new column. Really struggling at …

Member Avatar for Crakken
0
135
Member Avatar for bo0ga

Can you use the input selected from an HTML "<select><option></option></select>" statement and put that within a form to be added to a database? I want the user to select a month and a day and press a button and have it added. Please help.

Member Avatar for akmozo
0
133
Member Avatar for noobphp

Guys I need ur help please >=< I finished adding database and all but i need help with search can someone help me? The description is this Display the student’s id, name and contact number ONLY in tabular format. The data must be sorted according to the student’s id, hence …

Member Avatar for akmozo
0
141
Member Avatar for LastMitch

Hi I'm trying to open a file from my **OS** (**Window 7**) from my web host server. But it can't load the files. I try fget() but it seems like it's not reading it? <?php session_start(); header("Cache-control: private"); include("include/capable.php"); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> …

Member Avatar for LastMitch
0
199
Member Avatar for unrealni

Hey guys I have a problem with my login form.I made a site and i run that site on xampp localhost and it's work fine, but then I transferred files to web hosting and my login form show this error : **"Warning: mysql_num_rows() expects parameter 1 to be resource, boolean …

Member Avatar for diafol
0
368
Member Avatar for xbat

I have two ajax mysql php 2 drop down select that I am populating... i'm doing something stupid... anyone have any suggestions... or pointers....? 1.php <?php require_once('dbconfig.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < 6) { $theValue = get_magic_quotes_gpc() …

Member Avatar for xbat
0
408
Member Avatar for naru vaishnaw

here is my code for edit user detail but selected id is not showing .only showing last inserted id. please help me for correct this code.. my view code <?php //connects to database $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("users", $con); //select table …

Member Avatar for pritaeas
0
165
Member Avatar for Crakken

Hello there, I'm creating a forum system. On the main page, I display the latest posts, but I want that when it reaches 10 posts, a small menu with numbers appear at the bottom, that links to next page so people can see other posts, for example, like the one …

Member Avatar for Crakken
0
146
Member Avatar for Crakken

Well, I can't say it correctly, I'm sure the title is not what I meant, I just didn't know how to say it... But anyways, I inserted some text in a table in a dtabase, for SQL injection reasons, I stripslashed it or should I say "I used real_escape_string" But …

Member Avatar for diafol
0
140
Member Avatar for tony.m3nsa

My PHP page displays correctly on my localhost but after pushing it online it does not display; nothing shows even when I inspect the source code. Any help?

Member Avatar for Biiim
0
174
Member Avatar for matanc244

Hi this is my delete.php <?php $con = mysql_connect("localhost","matanc_cmd","123123"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("matanc_cms", $con); // check if the form was submitted // get the ID (cast it to integer if it is supposed to be integer) $id = (int) $_GET['id']; mysql_query("DELETE FROM content …

Member Avatar for Biiim
0
93
Member Avatar for napninjanx

Which of the following correctly sets up a PHP array?? 1. array() = $array_values[]; 2. $array_values = array(); 3. array() = $array_values[]; 4. $array_values = new array();

Member Avatar for napninjanx
0
172
Member Avatar for wooshman

Hi This is the first time I have really played with calendars in PHP and am a little, no, a lot stuck. The MySQL database holds "job_id", "visit_date" which is a timestamp and also "engineer" which is one or more names seperated with : My planner needs to have the …

Member Avatar for diafol
0
199
Member Avatar for vasvigupt

is it possible?? $a= 5; $b =10; $c= "+" $d= $a.$b.$c; How can I do dynamic calculation like this. I know this code will not work. But Just want to use opereater directly input through form. How can I prevent opreater to converting into string.

Member Avatar for diafol
0
1K
Member Avatar for aki2all

<?php include 'functions.php'; if(!loggedin()) { header("Location: index.html"); exit(); } $session = $_SESSION['empno']; $dbName = mysql_query("SELECT ename FROM employee WHERE empno = '$session'") or die(mysql_error()); $nameResult = mysql_fetch_array($dbName); $name = $nameResult['ename']; $reqno = $_GET['id']; //echo $reqno; exit; $amtApproved = $_GET['amtApproved']; $query = mysql_query("SELECT * FROM requisition WHERE reqno = '$reqno'") or …

0
121
Member Avatar for Majestics

I am new to php, i am creating a website which fetch data from mysql, if the data is more then 10 columns then i want to give a link page 1 , 2 , 3 , 4 (Like google) so user cant navigate through them.... How can i do …

Member Avatar for pritaeas
0
89
Member Avatar for Khav

Hello Guys , I want to create a script that convert a text file or Nfo file to an image(format is .PNG). What it does is simply load the txt and output it as an image Here is my code: <?php if(isset($_FILES['image'])){ $errors = array(); $allowed_ext = array('txt'); $file_name = …

Member Avatar for Khav
0
311
Member Avatar for 68thorby68

I understand a select list will display the options in which they are received, however I am compiling my select list and options from a number of PHP/mysql queries and am at a lost as to how I could achive the ordering via the php/mysql route. $all_zones=('a,b'); // foreach($all_zones as …

Member Avatar for 68thorby68
0
168
Member Avatar for showman13

Good Morning All, This is a question I touched on previously, but don't think I presented what I really need to do. I need to get this accomplished ASAP, and really have no clue how to go about it. Would even be willing to pay someone else if they have …

Member Avatar for coolest_987
0
1K
Member Avatar for mogaka

<?php require_once('mail.inc.php'); $con = mysql_connect("localhost","root","12345"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("billtest",$con); $today=strtotime(date("Y-m-d")); $query1="SELECT * FROM ab_transactions_paypal WHERE status=0 AND expiry_date>$today"; $result=mysql_query($query1); if(mysql_num_rows($result)>0){ $count=mysql_num_rows($result); for($j=0;$j<$count;$j++){ $row=mysql_fetch_array($result); $token_id=$row['token_id']; $account_id=$row['account_id']; $sku=$row["sku"]; $inv_id=$row['invoice_id']; $bill_amt=$row['amount']; $cust_email=$row['cust_email']; $url="https://ssl.3gsecure.net/api/payment/checktoken.asp?TransactionToken=$token_id"; $httpRequest_OBJ = new httpRequest($url, HTTP_METH_POST); $result = $httpRequest_OBJ->send(); $mine=$httpRequest_OBJ->getResponseBody(); echo $httpRequest_OBJ->getResponseBody(); $s = …

Member Avatar for pritaeas
0
95

The End.