39,323 Topics

Member Avatar for
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
297
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
163
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
186
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
400
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
220
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
227
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
244
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
121
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
100
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
87
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
137
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
228
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
395
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
176
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
Member Avatar for thilipdilip
Member Avatar for Brandon5150

I send out a newsletter using a PHP based mailing list manager installed on my server, which uses phpmailer to send. For most users that I send to, they get the newsletter fine, but users who have email accounts with cox.net , windstream.net , roadrunner.com, rr.com , earthlink.net seem to …

Member Avatar for Brandon5150
0
953
Member Avatar for bo0ga

Just got an entry level web developer position the city. It starts in 2 weeks. I would love some tips on how to effectively prepare. I'm an IT major not computer science, so my classes focused more on systems and databases rather than programming. I had a really good interview …

Member Avatar for bo0ga
0
164
Member Avatar for godzab

Here is my form.html <html> <head> <script type="text/javascript"> function ajax() { var aj; if(window.XMLHttpRequest) { aj = new XMLHttpRequest(); } else { aj = new ActiveXObject("Microsoft.XMLHTTP"); } aj.onreadystate = function() { if(aj.ready == 4) { document.getElementById("text").innerHTML = aj.responseText; } }; var param = document.forms["fo"]["text"].value; aj.open("GET", "try.php" , true); aj.send(); } …

Member Avatar for esma.ramirez
0
124
Member Avatar for Squidge

Hi all, Hoping you can assist. I am probably starring at the darn thing but i cannot see the wood through the trees :) class headScript { public function connection() { try { $dbh = new PDO("mysql:host=localhost;dbname=xxx", 'xxx', 'xxx'); // Dev return $dbh; } catch(PDOException $e) { echo "Error :- …

Member Avatar for Squidge
0
149

The End.