39,316 Topics

Member Avatar for
Member Avatar for florin1

Hello guys. I have a form in which i have some dynamically generated input fields like this: <input value="March" name="month[March]" type="hidden"> <input value="April" name="month[April]" type="hidden"> <input value="May" name="month[May]" type="hidden"> . . . How do i add the input data for each month to mysql? Thanks!

Member Avatar for diafol
0
159
Member Avatar for minitauros

Hello there. I would like to know if there is a way to write files to my server without CHmodding a certain directory. I have an auto-update script that downloads a .ZIP from my main server, and then extracts those file to the corresponding directories on the current server. However, …

Member Avatar for minitauros
0
217
Member Avatar for sammer021486

I am having difficulty getting the php include for my menu to show the active page on my site. When the site is using just plain html to show the active page, it works as expected. But when I switch to the php include the menu is not styling to …

Member Avatar for sammer021486
0
3K
Member Avatar for Dani

Hi, I'm getting really frustrated with an issue that Ancient Dragon discovered is happening here. Anytime that the combination `% 02` (without the space) is submitted via a textbox, it's recieved by PHP $_POST[] array just as a space. It's like URL decoding is happening on the fly. This happens …

Member Avatar for Dani
1
327
Member Avatar for gabbytheking

Hi I'm doing this for a project so no need to worry about real world worries such as encription etc. I'm trying to put imported Values into the below form via a seperate php form on a different site. ie my website is a client of an online creditcard server(CCS) …

Member Avatar for veedeoo
0
362
Member Avatar for kilowatt46

I am setting up a secure area of a web site that will be accessible to members only. Members may or may not pay their yearly membership dues online through our web site. The membership year is from Jan. 1 to Dec. 31. I want to give the paid members …

Member Avatar for newbie1234
0
160
Member Avatar for invoguesoft.com

<?php function my_money_format($num){ $money=explode('.',$num); if(strlen($money[1])==0) $money[1]='00'; if(strlen($money[0])==0) $money[0]='0'; if(strlen($money[0])>2){ $taka=$money[0]; $thousand=substr($taka, -3); $taka=substr($taka,0,strlen($taka)-3); $i=0; while(strlen($taka)>0){ if(strlen($taka)>1){ $pp[$i]=substr($taka, -2); $taka=substr($taka,0,strlen($taka)-2); }else{ $pp[$i]=substr($taka, -1); $taka=substr($taka,0,strlen($taka)-1); } $i++; } for($j=sizeof($pp)-1;$j>=0;$j--) $taka_add .=$pp[$j].','; return $taka_add.$thousand.".".$money[1]; }else return $money[0].".".$money[1]; } ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; …

Member Avatar for Dani
-1
156
Member Avatar for momonq1990

Code blocks are created by indenting at least 4 spaces ... and can span multiple lines <script> function del(delUrl) { var r=confirm("Are you sure you want to delete?"); if (r==true) { alert("Deleted record!"); document.location = delUrl; } else { alert("Delete cancel!"); } } </script> <a href='delete.php?id=$sysid' class='view' onClick='del()'> <img src='image/vie.png' …

Member Avatar for DavidAntaramian
0
169
Member Avatar for Dani

Quick question ... What happens if you use array_slice() and specify a length that is longer than the length of the array? Sorry but I couldn't find the answer on PHP's doc pages or in a quick G search.

Member Avatar for Dani
0
172
Member Avatar for don't give up

hello this my code : <?php $con=mysql_connect("localhost","root",""); if(!$con) { die('can not connect'.mysql_error()); } mysql_select_db("test", $con ); $others="others"; $sql="SELECT * FROM $others"; $result=mysql_query($sql); $num = mysql_num_rows($result); echo"<thead> <tr> <th>#</th> <th> id </th> <th>topic</th></thead>"; echo"<tbody>"; $i=0; echo"<table border='1' width='100%' id='table1'>"; echo"<thead> <tr> <th>#</th> <th> id </th> <th>topic</th></thead>"; echo"<tbody>"; $i=0; while( $i < …

Member Avatar for don't give up
0
135
Member Avatar for uvray90

Hello guys... Iam developing a stock maintenance system for a hotel (PHP-MySQL) in which the client will be updating the consumption everyday. Suppose the items are like Pepsi Buns Sauce Then everyday consumption he needs to keep track. He will login and enter the consumption details for 23rd March then …

Member Avatar for diafol
0
114
Member Avatar for prem2

Dear team, I need to get the information for a particular domain name using the php and some linux commands.So, i have tried a small program in php in Lamp Environment. When the user gives,www.google.com.My program uses the below commands and functions ping,dig,host,get_host_names etc.To retrive the informations. But i need …

Member Avatar for cereal
0
210
Member Avatar for webweaverssss

<?php ob_start(); session_start( ); include 'authenticate.php'; ?> aurheticate.php---------> <?php mysql_connect("localhost", "root", "") or die (mysql_error()); mysql_select_db("pms") or die (mysql_error()); if (!isset( $_SESSION['user_id'])) { if(!isset($_POST['txtuser_name'])) header('location:login(Admin).php'); $value=mysql_real_escape_string($_POST['user_value']); $user_name = $_POST['txtuser_name']; $pass = $_POST['txtpassword']; //user isentification if($value==1) { $query="select admin_name , admin_id from admin where admin_name='$user_name' AND admin_password='$pass'"; $sql = mysql_query ($query); …

Member Avatar for pritaeas
0
228
Member Avatar for belber

hey all i have a problem here... i recently download xampp for windows, but when i go to phpmyadmin i got some error message : error #2002 The server is not responding (or the local MySQL server’s socket is not correctly configured). in addition i not using mysql service from …

Member Avatar for belber
0
101
Member Avatar for gopi17

okay guys....currently i'm using session for my web application, the problem is evertime i click the browser "back" button, the session expires and the variables are reseted. i want to retain this value until the user quits the browser.

Member Avatar for pritaeas
0
56
Member Avatar for arihantphp

Hey all , I am working on a website on which the user has to upload images, most of the images are of large size and that takes a lot of time for the image to be uploaded, is there a way by which i can reduce the time taken …

Member Avatar for pritaeas
0
301
Member Avatar for klemme

Hi all, In the section of the order confirmation mail: $get_cart_info, when I include this theres is somehow a syntax error, as I keep getting this error after mail has tried to send: Catchable fatal error: Object of class mysqli_result could not be converted to string in /home/www/ebm-fashion.dk/views/betaling_accepteret.php on line …

Member Avatar for pritaeas
0
226
Member Avatar for laura301019

Hi, so ive various number of files and database tables including artist, album and tracks. On the webpage user's can choose and artist, an album then songs or the album to buy. However ive to write code so that when the user selects to buy the album all the tracks …

Member Avatar for laura301019
0
168
Member Avatar for bavenbabu

I am new to ajax jquey in programming.I had successfully inserted values which i posted via form field(id,name,age) in my xml file.But i am not printing the correct result in my HTML table.I had to insert the datas in xml file and also display the result in an HTML table. …

Member Avatar for bavenbabu
-1
131
Member Avatar for shahbaz13

I need to convert this code to web.config file. Plz Help.. #Fix Rewrite Options -Multiviews RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d Rewriterule ^(.*)$ $1.php [L,QSA]

Member Avatar for shahbaz13
0
214
Member Avatar for Mestika

Hi everyone, I’m currently working on my Master Thesis which in few words concentrates about NoSQL databases and performance and tuning tests of particular MongoDB. I’m trying to create some test dummy data to put in so I can run some initially tests to create a baseline for comparison. I’ve …

Member Avatar for curlissue657
0
247
Member Avatar for codemonkey88

A client has an ecommerce site, which is hosted on Magento but could be exported if easier. We are now trying to set up a couple more new branded sites which have independant designs but use the same product and client base. I have done some Googling and found that …

Member Avatar for veedeoo
0
150
Member Avatar for RickCJ7

I have an application that is writen in PHP and connects to a MS SQL Server 2008 Database. I'm using ADO recordsets. There are cases where specific IDs and years in the table returns nothing. How do I test for when there are no results? I searched and most of …

Member Avatar for RickCJ7
0
1K
Member Avatar for Ana D.

Hi, I have a PHP file that gets an XML files from a HTML form. The PHP files needs to generate a new HTML file containing a table with the the data retrived from the XML file. I was able to this this properly (using expat). However, before adding the …

Member Avatar for veedeoo
0
280
Member Avatar for lgriess

I've seen other old old posts from 5 years ago asking why you would want to use cold fusion and no one came up with a proper answer as to why to use it over a more popular language platform like PHP or .Net. I'm against Cold Fusion, I've seen …

Member Avatar for arrgh
-1
237
Member Avatar for MnMmatz

Notice: Undefined index: txt1 in C:\xampp\htdocs\php\conversion.php on line 76 Notice: Undefined index: select1 in C:\xampp\htdocs\php\conversion.php on line 77 Notice: Undefined index: select2 in C:\xampp\htdocs\php\conversion.php on line 78 Notice: Undefined index: convert in C:\xampp\htdocs\php\conversion.php on line 79 error! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title></title> …

Member Avatar for pritaeas
0
289
Member Avatar for shielaolid

Hello there, I'm having a problem on this one. I want to update my records, but when I click save, the specific fields/record is null. instead of updating/edit. These is my PHP code for admin_view.php (This is the form where you can choose a specific record/field that you are going …

Member Avatar for pritaeas
0
176
Member Avatar for dyingatmidnight

I'm a total noob to using mod_rewrite and I'm reading tutorials and trying to wrap my head around it but it's not quite coming together. What I need to accomplish is this: take a bunch of urls structed this way: yoursite.com?index.php?id=# and rewriting it so it becomes yoursite.com/whatever depending upon …

Member Avatar for dyingatmidnight
0
158
Member Avatar for lastgame2007

can anyone take alook at my code, i dont get errors or anything but it doesnt save in my db??? please ... thanks! <?php if(isset($_POST[save])) { //student,grade,section,subject $ids=$_POST['id']; $grades=$_POST['fg']; $secs=$_POST['secs']; $subs=$_POST['subs']; $yirs=$g_year['acad_id']; debug($_POST); if(isset($_POST['save'])) { unset($_POST['save']); $i = count($_POST['id']); $x = 0; for($x=0; $x <$i;$x++){ foreach($_POST as $data =>$d){ echo …

Member Avatar for pzuurveen
0
150
Member Avatar for samidha

here is a code for HTML form [code] **<html> <head> <title>Registration Form</title> </head> <body> <form action="registration.php" method="post"> <fieldset> Name: <input type="textbox" name="fname"/><br/><br/> Last Name: <input type="textbox" name="lname"/><br/><br/> Gender:<select><option value="text">Male</option><option value="text">Female</option></select><br><br> Address: <input type="textbox" name="address"/><br/><br/> Contact: <input type="textbox" name="contact"/><br/><br/> E-mail: <input type="textbox" name="e-mail"/><br/><br/> User_Name: <input type="textbox" name="user_name"/><br/><br/> Password: <input type="password" name="password"/><br/><br/> …

Member Avatar for Avenirer
0
2K

The End.