39,316 Topics

Member Avatar for
Member Avatar for haribo83

I have a php page showing records from an sql database, when the user clicks on a link they are taken to a detail page with more info etc. All of this works fine - the issue is that I wiould like uses to be able to submit a form …

Member Avatar for saiprem
0
393
Member Avatar for Bar2aYunie

Hello, I have a sql database which contains the names and descriptions of a product and the price. However, all products have a starting price of 5 and then the value of the product itself is added. THey also have a multiplier. eg. if a price is 210.13 dollars, the …

Member Avatar for Bar2aYunie
0
87
Member Avatar for virspy

Hello friends I want to send the attachment with mail in my code iam successful in sending the mail but the problem is the attachment iam getting is in unknown format can any one please help me in resolving the issue i already posted this but i not get any …

Member Avatar for DonaldAlexander
0
173
Member Avatar for ianlowe

I have just become involved with PHP. I am running Vista with IIS7 and PHP 5.2.13. The installation was done via the Windows Web Installer and after a few issues I believe it now working. My initial question is one of basic environmental understanding by this I mean all the …

Member Avatar for rajarajan2017
0
75
Member Avatar for loveisblind

I'm inexperienced with Javascript and I found this script, but I'm not sure how to alter it to do what I want. I have a PHP script that creates forms in a loop. $z in this case could equal 3, and 3 forms each containing 1 Position/Office field will be …

Member Avatar for fxm
0
156
Member Avatar for dcgiann

What is PHP and how is it used? Can one market it (the idea) of support on the internet?

Member Avatar for rajarajan2017
0
77
Member Avatar for DonaldAlexander

Hiya. Im new and in need of some help. i have a form which is full of DropDowns and has functions so that in 1 drop down if a value is selected ten a function happens. but this is for one section. I would love to have an Add button …

0
54
Member Avatar for atullalit91

This error comes for mismatch use of parenthesis but i didn't succeed in tracking it Running this code, i am getting unexpected $end error kindly track the error and let me know with the required change code..... [CODE]<?php $host="localhost"; // Host name $username=""; // Mysql username $password=""; // Mysql password …

Member Avatar for rajarajan2017
0
138
Member Avatar for bidbul

hello, i used to had a working methode but it doesn't work now, and i have no idea why. i'd like to create a flash panel with text. the text is kept in a txt file and sent by php to flash. (it works fine.) i have an other flash …

Member Avatar for rajarajan2017
0
85
Member Avatar for achinaseller
Member Avatar for baseballfury

I keep getting an object expected error at the start of my <body> I've set a form to value="Accountants" and <body onload="showindex()"> in an attempt to automatically submit this value to a js file whenever the page loads. My aim is to have dozens of html pages all using the …

Member Avatar for baseballfury
0
142
Member Avatar for jhellein

Rebuilt an existing site: Old site used aspx pages, for example: [url]http://www.americascarshow.com/Detail.aspx?dct=11&mid=1656[/url] (broken) New site is in Joomla; new link is: [url]http://americascarshow.com/gadgetcentral[/url] I tried a 301 redirect in .htaccess file but cld not get it to work. I need a solution to redirect links to new pages and/or at least …

Member Avatar for diafol
0
232
Member Avatar for tyson.crouch

Just wondering, why is it that PHP seems to be the preferred option over JSP when dealing with MySQL databases? I've long gone off PHP and have moved onto JSP in more recent times and find that it handles the over-all performance much better. I'd like to hear from all …

Member Avatar for griswolf
0
191
Member Avatar for leegeorg07

Hi all, I'm trying to get the content of a div with php. I can't find a way to use javascript in php to do it so I was thinking that regex would be the way? If it helps the div id is "editor". Thanks in advance, if you need …

Member Avatar for leegeorg07
0
6K
Member Avatar for gymangel812

I'm getting this error and I can't figure out why: "Parse error: syntax error, unexpected $end in C:\Program Files\IndigoPerl\apache\htdocs\process_menu2.php on line 160" thanks :) [code]<?php echo '<html> <head> <title>Uploading...</title> </head> <body> <h3>Uploading file...</h3>'; // Set up the database connection. require_once ('mysqli_connect.php'); //if name selected from drop down box if (isset($_POST['product_name'])) …

Member Avatar for rajarajan2017
0
167
Member Avatar for sksingh73

I am writing a php code in which i am trying to implement the following - I have made a exe program in c++ which takes a string input from the user and then displays the output; - Now in php, i am calling this program using passthru(), system(). like …

Member Avatar for pritaeas
0
98
Member Avatar for samira.mahamo

Hello, I am really new at using PHP and can anyone help me out on printing a web page using Php? Thank you. Sam

Member Avatar for Stefano Mtangoo
0
98
Member Avatar for niths

hi all, i am having a page in which upload and download buttons are present. so wen i click upload or down load button the values in that page are refreshing and becoming empty actually i get those values from the previous page. so i dont want the page to …

Member Avatar for rajarajan2017
0
99
Member Avatar for ruigrandaorocha

Hey, so i'm trying to make a double login page, 2 users put there user and password there and login at the same time, the problem is that it always says that the passwords are wrong... I think my problem is connecting with the MySQL database, because i can't create …

Member Avatar for colweb
0
72
Member Avatar for lakshmi4788

neethu@ubuntu:~$ mysqldump -u root -p database_name > /home/neethu/Desktop/time/backup5.sql Enter password: neethu@ubuntu:~$ this code works in terminal...but i need to implement it using php... hi, i want to dump databases... we r doing a project on replication of databases.... through terminal replication works all well ... but in developing gui in …

Member Avatar for lakshmi4788
0
252
Member Avatar for decmatt

[Code] <? //connect to mysql //change user and password to your mySQL name and password mysql_connect("localhost","******","******"); //select which database you want to edit mysql_select_db("*******"); //If cmd is not hit if(!isset($cmd)) { //display all the news $result = mysql_query("select * from Cars"); //run the while loop that grabs all the news …

Member Avatar for rajarajan2017
0
101
Member Avatar for jonathan96

Im trying to output a dropdown select menu from an array, and it all works fine, but the default option isnt working. Heres what ive got: [CODE] <?php $usertz = $user->$main["timezone"]; foreach($timezonearray as $tz => $off) { echo "<option value='$tz'"; if($tz == $usertz) { echo 'selected="selected"'; } echo ">$tz"; if(array_key_exists($tz, …

Member Avatar for jonathan96
0
101
Member Avatar for vijaysgi

Dear All I am trying to write PHP code to print the job automatically. It means, i need to schedule the job in windows server and based on schedule PHP code should execute to send the job to print the documents. I am struggling to send the job to printer. …

0
49
Member Avatar for surfgrommett

OK I have made a little progress and now face something else. I will paste my code here. OK here goes. I am loading a php page from another page by clicking on a table row. This table is filled with data from mysql. When i click on a row …

Member Avatar for surfgrommett
0
146
Member Avatar for 4789787

This is the error I keep getting, This script works fine with the local SQL server running on my windows test box but when I try it with the SQL server running on my shared web hosting account with go daddy it gives this error, I think obviously their databases …

Member Avatar for 4789787
0
323
Member Avatar for mohammed2raja

I hv design a progress bar, the method start_progrss() starts the progress bas and the method end_progrss() stops the progress bar. I develop two file 1. loginfile.php and 2. downloadfile.php My loginfile.php contain two text fields user name and password. /*********loginfile.php ************/ [code=JavaScript]function mysubmit(){ //code start_progress(); // here i start …

Member Avatar for Zebulons
0
216
Member Avatar for dan_t

Another question, Is there a way in php to send emails without having to use the "mailto:" ? Most everything I have seen uses this method, but a lot of people don't use MS Outlook. Thanks Dan

Member Avatar for dan_t
0
90
Member Avatar for k2k

i was having fun with php until i hit this road block... geolocation.class.php is in the same directory as my index.php.. anyone has any idea why it can't find it? =( /* * this is part of the index.php * / [code] <div id="midBox"> <table border="0" align="left"> <tr><td><script type="text/javascript"> var …

Member Avatar for saiprem
0
275
Member Avatar for sallecpt

hey guys. okay, I know how to count form values. something like; <?php echo count($_POST['field']; ?> where the field would be something like field[i] however, I am cracking my head to get a solution to count, but only where the field has a value. Please, someone, help me with this …

Member Avatar for diafol
0
214
Member Avatar for dan_t

Ok guys, I've kind of got this file half way working, but I get this message: [B]Notice: Undefined index:[/B] uploadedfile on line whatever. along with this: The file has been uploaded. which is the good part. But I don't understand why I always get those undefined errors. [CODE]$uploaded_size =''; $uploaded_type …

Member Avatar for dan_t
0
127

The End.