39,326 Topics

Member Avatar for
Member Avatar for printman55

I need help in using a variable passed in a hyperlink query string to do PHP query of a MySQL database. I want use the variable to query the database and return the unique row field data to display in a table The hyperlink is: [CODE]http://www.site.com/bios.php?pc=ab [/CODE] After connecting to …

Member Avatar for phpkiller123
0
557
Member Avatar for maori

Hi Guys I have a select form element which splits an hour up into 4 segments like so '0.15' => t('0.15'), '0.30' => t('0.30'), '0.45' => t('0.45'), '1.0' => t('1.0'), but when it adds it to the database table i get funny input like 14.6 after adding the 0.15 which …

Member Avatar for diafol
0
87
Member Avatar for akuvidz

arent those two the same function? and i want to ask, can i use 2 query statement in 1 while? `while($row = mysql_fetch_array($result))` i want to add another one beside that, it will be like this `while($row = mysql_fetch_array($result) && $row1 = mysql_fetch_array($result1))` is it valid?

Member Avatar for diafol
0
196
Member Avatar for dnbmadness

Hey guys, I have a form with fields and a file upload input which saves the uploaded file to a folder (/images), adds some random numbers to the filename and inserts the filename into a mysql DB. I'm just not sure how to add file type validation into this form. …

Member Avatar for diafol
0
148
Member Avatar for ngocham2001

Hi everyone, I am using PHP and Mysql to make a small inventory program. I have a problem with end_stock field. Detail: I have 2 tables: 1. Receiving: ID_Receive | ProductID | Date | Quantity | Price 1 | A | 01/07/2012 | 5 | 1500 2 | B | …

Member Avatar for dinacristi
0
103
Member Avatar for sandipan.rcciit

hi, i want to make a program where the csv file directly insert into the mysql database table. i found the code: [CODE]<?php include 'mysql-connect.php'; $rec=0; $handle = fopen ('datafile1.csv', 'r'); while (($data = fgetcsv($handle, 1000, ',', '"')) !== FALSE) { $rec++; if($rec==1) { continue; } else { $query = …

Member Avatar for sujitri
0
298
Member Avatar for raji181

hai I want to know the particular field name using search the full word in mysql database and that field name using we want to retrieve the entire table in mysql database.... Next I want to know can we retrieve the php with mysql database in PDF report in front …

Member Avatar for raji181
-1
164
Member Avatar for smarty470

Dear all, I have a website in which I am using the following htaccess code to hide the file extension RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php I then manually removed the .php extension from the entire website. Now when I am generating a site map …

Member Avatar for smarty470
0
187
Member Avatar for cacofonix

Hi All, I am newbie to XML. I want to create only one XML file each day automatically using php function with the following format. I want to use the same function for appending the follwing portion into the existing XML file ## This portion need to append whenever the …

Member Avatar for pritaeas
0
402
Member Avatar for juliadavis_2012

I am a new php programmer it’s little difficult for making some coding for an advance website, if you can post a tutorial on creating an advance website it would be a great help.

Member Avatar for xjshiya
0
221
Member Avatar for Riu 2009

hi everyone :) i know how to show all the records from database in an html table but how would i show specific category.for example i want to show records only with type T (type T is in database).im new with php and i dont know how to do it …

Member Avatar for Riu 2009
0
2K
Member Avatar for xjshiya

Hello! I have a code here that has a dropdown box which is populated with data from mysql table, itinerary to be spicific (e.g. Tokyo- London, London - Tokyo, etc.). I also have a textbox that displays the block time (no. of hours required to travel a specific itinerary) of …

Member Avatar for xjshiya
0
1K
Member Avatar for bLuEmEzzy

I'm doing a verify login in php and when i put my username and password correctly. It prompts 'Incorrect UserName Password' ?php $user = $_POST ['txtuname']; $pass = $_POST ['txtpass']; $encryptpass=md5($pass); // used mysql_connect_db instead of mysql_connect mysql_connect("localhost", "root", "") or die(mysql_error()); // This line is missing mysql_select_db("intranet") or die(mysql_error()); …

Member Avatar for bLuEmEzzy
0
3K
Member Avatar for xjshiya

Hi! I have a php code that generates an excel file that is populated with mysql data of course through a mysql_query.. Here it is.. <?php require("aacfs.php"); header("Content-type: application/ms-excel"); header("Content-Disposition: attachment; filename=Reservation Summary_sortbydate.xls"); header("Pragma: no-cache"); header("Expires: 0"); $head1="Ayala Aviation Corporation"; $head2="RESERVATION SUMMARY"; $head3="For the period ___________"; $heads="$head1\n$head2\n$head3\n"; $query = "select …

Member Avatar for xjshiya
0
217
Member Avatar for phpHelp

Hi, I need to display testimonials in a sliding way (one after another) in my website(drupal 6)....can anybody help me with this requirement???? Thank you

Member Avatar for phpHelp
0
267
Member Avatar for PhilEaton

Here is my code for this page: phileaton.est-a-la-masion.com/Day Care/contact.htm <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <META NAME="description" CONTENT="Looking for an affordable daycare for your child? Are you worried that your precious one is not learning basic skills? If so, this …

Member Avatar for PhilEaton
0
205
Member Avatar for ckarlss0n

Hello! This is my first post here, hehe. Seems to be a great site. Anyways, I'm quite new in PHP, but it's fun and I think I'm learning quite fast :) There's appeared a problem for me now though, and I can't see what the problem is...? I have made …

Member Avatar for Atli
0
229
Member Avatar for klemme

I am about to create a video upload function to a cms. But havent dealt with video and video player functionality before. So my question is what file extensions i should tjeck for under validation in the upload script? Are the a video player which is working in all browsers, …

Member Avatar for nikesh.yadav
0
161
Member Avatar for ali3011

today i was working on a php script that uploads the images and makes a thumbnails out of them.. well, i had the idea, i wrote the outline then i finished the script i had a couple of syntax errors and i fixed them,, but still there's some thing wrong …

Member Avatar for hr.Ziggurat
0
245
Member Avatar for extjac

Hello, i have this code to the insert: class test { function __construct() { $this->table = 'testtable'; } public function insert($values = array() ) { foreach ($values as $field => $v) { $data[] = ':' . $field; } $data = implode(',', $data); $fields = implode(',', array_keys($values)); $sql = " INSERT …

Member Avatar for cereal
0
122
Member Avatar for mrclark

I am working on sessioning scripts however my cookies are not carrying over from page to page. I include the session script on every page which checks the $_COOKIE['session'] cookie, and if set, keeps the session data, if not, creates a guest session and sets a cookie with a new …

Member Avatar for mrclark
0
101
Member Avatar for vaayaa1

There's a lot of discusion of web services in the industry. Have any one used web services using php. I want to learn web services using php.

Member Avatar for garima.nanda.50
0
88
Member Avatar for dan_code_guru

How can i create a php script that will search websites for articles that the contains are string?

Member Avatar for JameB
0
138
Member Avatar for extjac

Hello, i wanted to know what you guys use with PDO. Do you use ->fetchAll() or ->fetch() + while based on some reading i have done, it seems that PDO->fetchAll() is faster but uses more momory...

Member Avatar for pritaeas
0
243
Member Avatar for Utharan

Hi, I have 6 radio buttons. When I select the radiobutton I need to get the value of the radiobuttons to a php variable. Please help me. I'm new to php. Thank you in advance

Member Avatar for Utharan
0
98
Member Avatar for george.badole

Hi, I used fpdf lib to print pdf. And I want my php class be integrate in fpdf? Can anyone help me?

Member Avatar for george.badole
0
397
Member Avatar for aaadee

HI, I have a doubt in multiple selection fetching data whil edit the page. output data stored in database as comma separated.

Member Avatar for pritaeas
0
97
Member Avatar for persianprez

Here is the code for my form: <form action = "index.php" method="post"> <!--the form is being submitted to the same page--> <button class="btn" name="button" onClick="submit()">Yes</button> <button class="btn btn-primary active" name="button" onClick="submit()">No</button> </form> And on the top of my index.php I have the following: <?php $refresh = $_POST['button']; ?> When I …

Member Avatar for lps
0
177
Member Avatar for smackthat9876

I want to call a script page in php where the referral link is visible when you mouse over the image, something like this: http //mysite com/phpscript?d=www.site.com/thread/217.html (I don't know php incredibly well yet - so if that doesn't look right please let me know) And then based on whatever …

Member Avatar for smackthat9876
0
1K
Member Avatar for sheshagirig

Hi all, I have code as follows, to fetch rows from mysql table. Table it fetches is given below. I want to access now each cell in the table, how do I do that? For e.g, I want to multiply Rank for the Job "transform Brand image by 82% and …

Member Avatar for sheshagirig
0
129

The End.