39,402 Topics

Member Avatar for
Member Avatar for maunica

Hi all, Can I get a simple snippet to upload an image in php and display it on the webpage which i have developed but not yet published? I have tried 2-3 codes but they dont seem to be working..please help me!!!

Member Avatar for muaazab
0
118
Member Avatar for maunica

hi all, I want to know that how can i change the font size of the output in php. suppose this is the snippet echo 'y' echo '$ans' where i want to echo the value stored in variable ans by changing the font size to 12px.so how can i change …

Member Avatar for maunica
0
102
Member Avatar for rukshilag

Hi, well what i need to do is, through a certain interface there are assignment upload calls given by the admin, this is that interface [CODE]<html> <head> <script type="text/javascript"> function remlink(num){ var rownum=num; var rowid = "subname_"+rownum; var sn=document.getElementById(rowid).innerHTML; var cnfrm = confirm ("Are you sure you want to remove …

0
80
Member Avatar for niths

hi all, i am really breaking my head due to this problem. Actually i am having a projects table with radio buttons so wen i select one radio button and click submit i can upload files in that project and also can see if there are any uploaded files in …

0
51
Member Avatar for jhbalaji

Hello, I need your help DP Friends I need to create a script which can accept the contents post to it via email and able to store that in a DB Permanently and able to display that in a php page The individual email sent to it must display as …

Member Avatar for jhbalaji
0
246
Member Avatar for Larry_b

Hi, I have a page that can be called by either post or get. $_request is supposted to handle that. I have never used $_request and am wondering if there are any problems using it instead of checking $_get and $_post separately, which I have done in the past, because …

Member Avatar for rajarajan2017
0
84
Member Avatar for Krstevski

Hello friends, I have one stupid problem with overlapping div and object tag. I have slideshow (.swf) and now I want to add a div tag on the top of the slideshow, but when I try to do this then the div tag is hidden by object tag (slideshow). How …

Member Avatar for Krstevski
0
153
Member Avatar for jasonpclaire

I hope you can help. I have a program using 2 pages (main.php and resize_image.php) fragments shown below. Each script works fine independenly of each other. My problem comes when I want to pass a value held on my database held in $story[picture] to resize_image.php..... It simply will not transfer …

Member Avatar for jasonpclaire
0
104
Member Avatar for capoon

Good day everyone,I want to publish a website as regard to testing because this is my first attempt. My database is mysql server located at C:\Program Files\mysql , my php at C:\php and and my apache at C:\Program Files\tomcat. please how do i gather all this into one folder so …

Member Avatar for rajarajan2017
0
98
Member Avatar for Internet_Sense

Hey all, I figured for my new website that it is easier to have a contact us form, instead of just having my e-mail address. I have searched Google and Hotscripts ([url]http://hotscripts.com[/url]) and I have not found anything that is free and easy. I am looking for a first name …

Member Avatar for naping
0
521
Member Avatar for danielkull

Hi, How can I preview Word Document (located on FTP) in browser, without downloading the file to computer? I have found this [url]https://docs.google.com/viewer[/url] but it doesnt support doc/docx :(

Member Avatar for chrishea
1
107
Member Avatar for virspy

hi frnds.. Here i m trying to attach the file from my webpage..it is working..but when i checking on the mail, the attachment is corrupted and it is not giving any file format [CODE]<?php $e_mail=$result['EmailAddress']; $fileatt = $path; // Path to the file $fileatt_type = "application/octet-stream"; // File Type $fileatt_name …

Member Avatar for muaazab
0
129
Member Avatar for euantor

I'm currently writing a code for a dynami image generating script to return XBox Live gamercards. I've got everything working almost perfectly apart from imagecreatefromjpeg (which I am using to return the thumbnail images of recently played games). My code is below along with a sample image for you to …

Member Avatar for euantor
0
308
Member Avatar for cwarn23

Hi, I have a script which is meant to use all of my servers cpu but mysql will only use one core. I have 8 cores but only 1 core is being used. Does anybody know how to allow mysql to use multiple cores? -------- Second question How do I …

Member Avatar for sourcebits
0
79
Member Avatar for gymangel812

I can't figure out what the problem is with my code. What I want it to do is add a new sandwich to the database when all fields are filed out and an image is uploaded. If product name field is not entered, the sandwich selected in the dropdown box …

Member Avatar for sourcebits
0
124
Member Avatar for Stefano Mtangoo

I have recently being interested in Web security and I have some reading. I then found [URL="http://www.developertutorials.com/tutorials/php/secure-website-login-060817/page1.html"]this post[/URL], and it is great. I would like to hear what do you think is missing or what isn't necessary a.k.a overkill. It is not criticizing as such but discussing security ;)

Member Avatar for Stefano Mtangoo
0
90
Member Avatar for rogerkore

Hi all, can someone tell me if it's possible do search like this: Mysql database: test Mysql Table: something Mysql rows: id name1 name2 name3 name4 Where [CODE] id name1 name2 name3 name4 1 roger mac phill chill 2 roger chill dubs lee [/CODE] The idea is do a search …

Member Avatar for diafol
0
414
Member Avatar for jhbalaji

I was digging through my old codes to get this, still could not find. Hence when I wrote it, just made a note here such that later it wont be difficult to find atleast for me. [B]Format filesize, php filesize human readable[/B]

0
163
Member Avatar for jhbalaji

Hello in the below PHP Code Everything seems fine but it did not posts to the site when i use it Can any one spot out what type of error it is Also here the XML RPC is enabled and the when i access it directly it works(i mean the …

Member Avatar for jhbalaji
0
142
Member Avatar for crdipu

Hi All, I need to create a new web-service by using php. And I need to use SOAP RPC/encoded for implementing this. I also need to authenticate the soap request using soap header information. Before doing main task that I have created a WSDL file, client and server files using …

0
116
Member Avatar for benk1

Hi I'm a bit of a newbie with this stuff, so I'm not 100% sure where to post this. Anyway I have a mini arm based PC for which I am trying to compile a php binary in cgi-mode, which supports sqlite. I am trying to cross compile from a …

0
89
Member Avatar for cristina.h

Hi! I am trying to insert the data froma a form into 3 tables. Although I get no errors only the first insert works. Could you please help me and tell me what am I doing wrong? $query_add = "insert into autoturisme values('', '$producator', '$model', '$categorie', '$nume_poza', '$motor', '$consum', '$locuri', …

Member Avatar for urtrivedi
0
102
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
411
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
89
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
176
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
79
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
164
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
81
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
56
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
140
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
87
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
144
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
239
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
194
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
170
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
102
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
100
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
104
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
76
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
258
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
104
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
104
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
51
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
151
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
328
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
219
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
92
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
277

The End.