39,320 Topics
| |
how can i show current local date and time using php?? do i need to use new page or just add in the same page? and how can i insert time and date that show in the page into my database? i have search for a while for this, but … | |
I am not sure if this is a server issue as seemed to be working on my testing server but now live on the clients server this issue is arising. The email is generated from a form which includes a file upload in either word or pdf which is saved … | |
[CODE]<?php // connect to the database include('connect-db.php'); // check if the form has been submitted. If it has, start to process the form and save it to the database if (isset($_POST['submit'])) { // get form data, making sure it is valid $employeeno = mysql_real_escape_string(htmlspecialchars($_POST['txtempno'])); $employeename = mysql_real_escape_string(htmlspecialchars($_POST['txtempname'])); $position = mysql_real_escape_string(htmlspecialchars($_POST['txtpos'])); … | |
Hi guys i need your help, i need to know how run PHP on nginx, i already installed it but it only reads html files not PHP, it will prompt download the php file. Im super new to this and the tutorial on the net's are complicated. btw im using … | |
| Evening, I am trying to grab information from a PHP script using JQuery when the user enters a value into a text input field. The text input box has an auto suggest function so that when the user begins tying they can see what matches from the database. If the … |
I am building a basic PHP real estate website and am trying to link to County Tax Information and County Property information. The county uses the TMK #: [B]2540020130023[/B] (Tax Map Key) id number to give out this information. In my Database the TMK is called “propertyref”. When I “View … | |
i am trying to do credit card validation. the card details are entered n creditcard.php and process in creditcard-process.php and this is the error for creditcard-process.php.. can i check whats wrong with creditcard-process.php ? Notice: Use of undefined constant ccnum - assumed 'ccnum' in D:\xampp\htdocs\book\creditcard-process.php on line 109 Notice: Undefined … | |
Hi everyone forgive me I am a little new to php but I can get by.... I am trying to implement a pagination script into my sub cat page in a shop however I ahve most of it done but cannot seem to get the pageination to show can someone … | |
Hi! I'm new here! I have a quick question about an error I found in my script. I'll jump straight into the code and then make my question: [CODE]$description = $_POST['desc'];[/CODE] this is a text description for example "Monthly Tuition". [CODE]$amount = $_POST['amount'];[/CODE] price of tuition [CODE]$dlnumber = $_POST['cedula'];[/CODE] drivers … | |
I have time [CODE]timestamp[/CODE] in my db,when i insert/update records it do not change. for Attributes i have [CODE]ON UPDATE CURRENT_TIMESTAMP[/CODE] and for Default its [CODE]CURRENT_TIMESTAMP[/CODE]. any help pls. | |
[ICODE] Why would an update script do an insert, and not update?[/ICODE] [CODE] $navtype = $_GET['nav']; if($navtype == "zjxpmovdtzjd") { $mileage_out = $_POST['mileage_out']; $mileage_in = $_POST['mileage_in']; $famount = $_POST['famount']; $vreg = $_POST['vreg']; $driver = $_POST['driver']; $vtype = $_POST['vtype']; $desti = $_POST['desti']; $date_out = $_POST['dy']."-".$_POST['dm']."-".$_POST['dd']; $date_in = $_POST['ay']."-".$_POST['am']."-".$_POST['ad']; $cur_date = date("d-m-y … | |
I have this file x.php but it doesnt work. Php only works if it is in a pure php file (with no html code).Im using xampp 1.7.7. Any ideas what might be the problem ? [CODE]<html> <body> <?php echo ("HELLO"); ?> </body> </html>[/CODE] | |
Hi all, I want to integrate SSL on my localhost, so that I can tjeck/use it while developing. Is it allready in my version of php and apache, and only need to be activated? It didnt show up as a heading when i tjecked the phpinfo(); Do I need to … | |
Hello Folks, We have a site in PHP, Zend Framework......that uses FFMPEG to compress and upload videos on the same. This site has Photos and Videos that can be uploaded by it's users. Issue we are facing is that it's hosted on hostway.com's cloud Server, and they, or anyone for … | |
I want to run video files in browser ............... which format will be suitible for it.. and how to do this using HTML & PHP... Need help....... | |
I want to create online self evaluation system like Question No:1/2 Linux is a 1.Operating system 2.Middle ware system 3.Server system 4.Super computer Next Previous Summary I configured mysql to php is completed. the question and options are displayed.. I press next button, in question panel second question will display … | |
can we use JAVA and php together ??? or struts and drupal together | |
My code of drop down box is [CODE]<select name="dname"> <?php $data = @mysql_query("select * from Department"); while ($row = mysql_fetch_assoc($data)) { $ID = $row['dept_ID']; $dname = $row['department_name']; echo "<option value=$ID name=not>$dname \n"; } ?> </select>[/CODE] I retrieving department name into dropdown box.. ID - is department ID.....when user click submit … | |
I want to learn PHP CSS. If you have any good reference or books(free) plz inform me. | |
What code do i add in order to let logged in users to download pdf files or any attachments i would like them to download? <?php if (isset($_POST['login'])) { $query = "SELECT * FROM users WHERE uuser='".$_POST['user']."' AND upass='".$_POST['pass']."'"; $result = mysql_query($query) or die(mysql_error()."<br><b>error</b>: failed to execute query <i>$query</i>"); if … | |
So I've done quite a few forms before but I'm running into trouble with this one. I'm not exactly sure what I need to do, but let me explain. I have: Form A Form B Form A collects basic data from a customer. Form B give you the option to … | |
For the past few days I have been trying to get a Drupal 7.12 install to function on my CentOS 6 x64 VPS which is using the latest version of Webmin however no matter where I upload the files, I keep getting a server 500 error when trying to launch … | |
This simple query is proving to be a problem for me as I'm missing something obvious. Its a query to show Sales by Market ($var2) by Month ($var1). Any pointers as to what I'm doing wrong. [CODE]<html> <head><title>Monthly Sales Rank </title> <LINK REL=StyleSheet HREF="style.css" TYPE="text/css" MEDIA=screen> <script src="sorttable.js"></script> </head> <body> … | |
| [ICODE]$w3 = mysql_query( "SELECT * FROM w3" ) or die("SELECT Error: ".mysql_error()); $worth = mysql_query( "SELECT * FROM worth" ) or die("SELECT Error: ".mysql_error()); // fetching data while ($get_w3 = mysql_fetch_assoc($w3db) && $get_worth = mysql_fetch_assoc($worth)) { // Loading Urls for Comparing echo $w3url=$get_w3['domain']; // cant echo echo $worthurl=$get_worth['domain']; // ok … |
hello everybody how can bind all username exit in database with dropdownlist(means it fetch all the data from database and can apply on dropdownlist).so that i can used in searching time | |
I'm still kinda new to php and have been getting this error: PHP Parse error: syntax error, unexpected T_STRING in /var/www/index.php on line 33 It's all running on a LAMP server in a local VM. Been looking at it for the last 2 days and can't find what is wrong, … | |
Hi, I'm creating a web page which links to a mysql database. I have managed to get all of the data to appear in a table and i have also been able to get the combobox to be populated based on a table in the database. The part which I … | |
Hello, I would like to ask the way to change [url]http://abc.com.hk/article.php?product=1&side=2[/url] to [url]http://abc.com.hk/article/1/2[/url] I just write in .htaccess as below: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php It works only for this link: [url]http://abc.com.hk/article[/url], but not valid for [url]http://abc.com.hk/article/1/2[/url] | |
Hi i am currently a Computer Science undergrad and i was just doing some thinking for a Master degree. I like software and web development and i am leaning towards more of a web development specific for my masters but what are the options i have for trying to get … | |
[CODE] <?php # Script 16.6 - register.php // This is the registration page for the site. require_once ('includes/config.inc.php'); $page_title = 'Register'; include ('includes/header.html'); if (isset($_POST['submitted'])) { // Handle the form. require_once (MYSQL); // Trim all the incoming data: $trimmed = array_map('trim', $_POST); // Assume invalid values: $fn = $ln = … |
The End.