39,316 Topics

Member Avatar for
Member Avatar for Squidge

Ok, following from my previous thread (now resolved) i want to convert and use namespace. **headScript.php**: <?php class headScript { public function connection() { try { $dbh = new PDO("mysql:host=localhost;dbname=roundth4_rtb2", 'root', ''); // Dev return $dbh; } catch(PDOException $e) { echo "Error :- " . $e->getMessage(); die(); } } public …

Member Avatar for Squidge
0
187
Member Avatar for heshanm

Hi All, I have a small problem. I want to add time tables for each grade in a school. Therefore in my addTimeTable.php page i have created a form to enter student grade, class and stream. (required only for grade 12 and 13) When a user clicks on "Add" button …

Member Avatar for diafol
0
201
Member Avatar for vinay7868

i am working with php and trying something new that if user inputs "a" than all the records of name starting with "a" in employee table should be displayed... $letter=$_POST["letter"]; sql="select * from emp where emp_name='".$letter."'* " //is above query write and the wild character to be used is write …

Member Avatar for vinay7868
0
137
Member Avatar for harsha.netpem

Hello, When I run this query then i am getting **SELECT * FROM upload where cas_no=''104-55-2''** Why I get backslash in my query ? Otherwise query is ok. and URL value is exact value. www.abc.com/upload_reportt.php?cas_no='104-55-2'.... so what happen with my sql query? <?php session_start(); include(functions.php); ?> <body bgcolor="#F5F5DC"> <a href="logout.php"><h3 …

Member Avatar for simplypixie
0
145
Member Avatar for joshuao

Im trying to get transaction details of a paypal account, which I was successful in doing so, but I get this long (what i assume is an array) but I need to insert the details into a mysql database. I've tried several foreach methods but apparently I am doing something …

Member Avatar for LifeSteala
0
623
Member Avatar for PhilEaton

I am a new PHP developer, I run a LAMP server but use Win 7. For the PHP Developers out there, is it much more helpful to have a local WAMP server? I can see how it would be nice to be able to develop without uploading every four seconds …

Member Avatar for PhilEaton
0
170
Member Avatar for arshadshaikh

I have to make a virtual host with xampp. I have IIS installed already for windows 7. So I had to change port number for apache with Xampp. I have configured many times different virtual host with port 80 that is default port for apache server. However right now I …

Member Avatar for arshadshaikh
0
346
Member Avatar for weirdCreature7

Hello there! I just want to know how to check if session variable is array because thee code that I am trying to work is not working see below :) <?php if(is_array($_SESSION['cart'])){ echo '<tr bgcolor="#FFFFFF" style="font-weight:bold"><td>Serial</td><td>Name</td><td>Price</td><td>Qty</td><td>Amount</td><td>Options</td></tr>'; $max=count($_SESSION['cart']); for($i=0;$i<$max;$i++){ $pid=$_SESSION['cart'][$i]['productid']; $q=$_SESSION['cart'][$i]['qty']; $pname=get_product_name($pid); if($q==0) continue; ?>

Member Avatar for diafol
0
509
Member Avatar for dan_code_guru

I want to be able to get the html of many different sites and parse them to pull the article text from them, it cant be specific for one site as i want to use it form many sites, what would be the best way of doing this?

Member Avatar for diafol
0
221
Member Avatar for liezlardo

Hello! I really need help! I have these codes but I can't make them work. In my first drop down list box, if I chose one option, I only wanted to see its appropriate value in the second drop down list box. For example, if I chose 'Quezon City' in …

Member Avatar for diafol
0
1K
Member Avatar for sandeep555
Member Avatar for davy_yg

Hello, I have this contact form [website](http://www.rustoleum-indonesia.com/konsultasi-konsumen.php ) Try to fill in the whole information then after you press submit, the next page start to hang. Why is it? <?php // FORM VALIDATION AND RECAPTCHA SETTING // Include ReCaptcha and define keys require_once('recaptchalib.php'); define('RECAPTCHA_PUBLIC', '6LdRStUSAAAAAH4f_NMg-Fmdp2bDo4LYNhN36ScB'); define('RECAPTCHA_PRIVATE', '6LdRStUSAAAAABctjZq_iX249auG_kjaNvn_4vfN'); // Define notification …

Member Avatar for joshl_1995
0
147
Member Avatar for Riu 2009

this is how is inserted link on line 53.but its giving syntax error.i could not find any mistake as i already put ; at the end of the line but still it is saying missing ; or , please help. <?php include("../includes/config.php"); ?> <!DOCTYPE HTML> <html> <head> <title>Admdin Home</title> <link …

Member Avatar for Riu 2009
0
4K
Member Avatar for ali3011

hi i'm still learning some basics of php, and now i'm trying to modify codes.. and follow tutorials after following a tutorial i made this multi-uploader which uploads images and thumbnails but there's a little thing with it, it changes the image name to random name, and i want it …

Member Avatar for ali3011
0
195
Member Avatar for vindyauwu

Is there any way I can get PHP support ticketing system tutorial?????????????

Member Avatar for diafol
0
512
Member Avatar for debal

I installed Xampp and have the apache, FTP and MySql server running. Initially i was getting an error:- ## error :- ## MySQL said: Documentation 1045 - Access denied for user 'root'@'localhost' (using password: NO). Connection for controluser as defined in your configuration failed. phpMyAdmin tried to connect to the …

Member Avatar for debal
0
274
Member Avatar for bLuEmEzzy

I want to make a message textbox, when there is a newline the text will go down to fit the size of the textbox text here text here text here text here text here text here text here text here text here text here text here text here text here …

Member Avatar for diafol
0
94
Member Avatar for accra

Hi all, i manage to write this query to select data from 2 different tables, here is it $query ="SELECT * FROM illness,symptoms WHERE symptoms.sympId = illness.illId"; am trying to echo the result of the query, here is my script if($med == !'') { $query ="SELECT * FROM symptoms,illness WHERE …

Member Avatar for pritaeas
0
110
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
554
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
85
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
102
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
398
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

The End.