39,323 Topics
| |
how to add email adress validation code so the validation will dispaly after immideately entered email adress in text box of email adress | |
Hello, I have PHP code that updates a record in my database. I need to run that code when an <a href="mailto....> link is clicked on, before the email client runs. Thanks for the assistance. | |
So I just discovered a crazy bug that has been keeping visitors of the Opera web browser from using DaniWeb. Apparently there's a problem with CodeIgniter's CSRF protection that makes it not work with Opera, and I'm unsure of why. It works perfectly fine with IE, Firefox, Chrome, etc. I … | |
Hey everyone, I'm having a little trouble with creating a 'dynamic' calendar with events called from a MySQL database. So basically I would like to have the Month automatically change when the month changes, and highlight the days which have events scheduled, and make those days links to my thickbox … | |
I am developing in WordPress plugins and I would like to know.if someone could guide Me with this issue. I would like to know what's the easier method.of declaring a global variable that I can use. As of now I am not using classes, mostly because i'm not sure how … | |
I just installed Windows 8 Release Preview and my existing wampserver does not work. I tried installing easyphp and after the service was successfully started it can't find the localhost. Is there any fix to this or other local servers to run php and phpmyAdmin the easy way ? Thanks … | |
Okay, so I have been trying to get this to work all night, but I can't find anything actually wrong with it. I just thought maybe someone else might be able to just look at it and see the answer... as it's probablly in plain sight. <?php session_start(); mysql_connect("powellintellabs.com", "******", … | |
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 … | |
| 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) … |
is it possible php code detect page refresh (like javascript)? | |
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 … |
The End.