39,388 Topics
![]() | |
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 … | |
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 … | |
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 … | |
hi, i want to create a website with web services facilities in php. is this possible? | |
//$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 … | |
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 … ![]() | |
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 … | |
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 … | |
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. | |
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 … | |
![]() | 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> … ![]() |
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 … ![]() | |
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() … | |
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 … | |
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 … | |
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 … ![]() | |
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? | |
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 … | |
![]() | 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(); ![]() |
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 … ![]() | |
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. ![]() | |
<?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 … | |
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 … | |
Hello, I have a problem with an Ajax call on IE9. I have searched the internet and this forum for solutions for a few hours and can't find an answer. I have a coffee roastery site (developed with Codeigniter), where the users can order coffee bags online. The user selects … | |
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 = … | |
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 … | |
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 … | |
<?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 = … | |
Hi i am Trying to delete a page from my site cms and something is not working . the code is: <?php $con = mysql_connect("localhost","matanc_cmd","123123"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("matanc_cms", $con); $id = (int) $_POST['id']; mysql_query("DELETE FROM content WHERE id='$id'"); mysql_close($con); // if successfully … | |
Hi, I am new to Unix environment. Any one can explain how I can set CRON job to run PHP script. Thanks. |
The End.