39,326 Topics
| |
i want to place the contents of values from a form into a text file. When an option is changed in the form and submit button is clicked, the user is taken to another page where info about the company's address, website and so are displayed line after line like … | |
Hi there, DaniWeb. I have been struggling with this one for a while. How do i write a regexp that matches every {$*} wherein * is wildcard. I have written one: /\{\$(.*)\}/ and it works fine at regexpal.com, but not with my preg_replace:( [code] <?php $string = "Hello {$name}! How … | |
roomID is used to list all record of some room ID, all the record is associated with roomBookingID. When a user clicked "modify", a form is supposed to show. However, a error message shown after I added the red statement. <?php require_once('../../config/conn.php'); $roomID=$_GET['roomID']; $sql="SELECT * FROM roomBooking where roomID = … | |
hi, i have a configuration file with this content for example: test = "100"; teste2 = "300"; now need change the test from 100 to 300, i just want use something like this: function ( "test" , 300 ); how can i do that? thanks for help | |
this is my code i wanna insert value starting with [B]cb[/B] into [B][I]no[/I][/B] table coming from form. but i cannot count $a (just starting with cb) value [CODE] foreach($_GET as $a=>$b){ $q1 = "UPDATE no SET drm = 1, s = '$time', h = '$dest' WHERE s = '$b'"; $q2 … | |
Hi everyboby. plz help me. I created calendar using php and javascript.but the javasript function did not work.plz tell me what is the error. [CODE]<?php use_javascript('schedule') ?> <?php use_javascript("editProfile") ?> <?php use_javascript('unfinishedbussiness')?> <?php use_javascript('scheduleload')?> <script type="text/javascript" language="javascript"> function isAjax() { return isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER ['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest'; } if(isAjax() && … | |
i want to generate a student id, this is my code it is saving but, no output in dB. [CODE] $yr=date('Y'); $id=mysql_insert_id();--auto_increment $b="MATH"."$yr"."$id"; $a=$_POST['b']; MATH201201 -- i want my output to be this, [/CODE] | |
I want to make a user profile , where in the people can login and fill in profile details . Well basically i am wanting to make a connection between the alumni of my college with the existing students. So , i initially thought of making the alumni registered and … | |
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 … |
The End.