39,326 Topics

Member Avatar for
Member Avatar for IanArcher

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 …

Member Avatar for IanArcher
0
212
Member Avatar for nadskap2

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 …

Member Avatar for diafol
0
127
Member Avatar for 21122012

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 = …

Member Avatar for cigoL..:)
0
210
Member Avatar for srdva59

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

Member Avatar for cigoL..:)
0
72
Member Avatar for zodehala

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 …

Member Avatar for pzuurveen
0
139
Member Avatar for vijayram

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() && …

Member Avatar for pritaeas
0
224
Member Avatar for lastgame2007

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]

Member Avatar for diafol
0
245
Member Avatar for rahul8590

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 …

Member Avatar for diafol
0
7K
Member Avatar for fika

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 …

Member Avatar for diafol
0
195
Member Avatar for simplypixie

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 …

Member Avatar for simplypixie
0
4K
Member Avatar for shielaolid

[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'])); …

Member Avatar for kk.fasil
0
425
Member Avatar for vaultdweller123

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 …

Member Avatar for vaultdweller123
0
76
Member Avatar for jpknoob

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 …

Member Avatar for ko ko
0
269
Member Avatar for JeffCraw

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 …

Member Avatar for diafol
0
176
Member Avatar for issaru07

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 …

Member Avatar for issaru07
0
378
Member Avatar for gavin_am

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 …

Member Avatar for gavin_am
0
117
Member Avatar for shaynadz

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 …

Member Avatar for diafol
0
181
Member Avatar for accra

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.

Member Avatar for accra
0
135
Member Avatar for accra

[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 …

Member Avatar for accra
0
143
Member Avatar for yanwick

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]

Member Avatar for yanwick
0
231
Member Avatar for klemme

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 …

Member Avatar for diafol
0
173
Member Avatar for sean888

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 …

Member Avatar for mschroeder
0
128
Member Avatar for nil_gh_80

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.......

Member Avatar for amit.singh9
0
1K
Member Avatar for cskinittest

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 …

Member Avatar for diafol
0
64
Member Avatar for bhallarahul
Member Avatar for bhallarahul
0
102
Member Avatar for adityamadhira

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 …

Member Avatar for cigoL..:)
0
301
Member Avatar for rubai

I want to learn PHP CSS. If you have any good reference or books(free) plz inform me.

Member Avatar for cigoL..:)
0
304
Member Avatar for INF-P

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 …

Member Avatar for INF-P
0
205
Member Avatar for melbahtoast

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 …

Member Avatar for melbahtoast
0
238
Member Avatar for theonlylos

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 …

Member Avatar for ko ko
0
211

The End.