39,402 Topics
![]() | |
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!!! ![]() | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … ![]() | |
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 … | |
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 … | |
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 … ![]() | |
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 … | |
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 :( | |
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 … ![]() | |
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 … | |
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 … | |
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 … | |
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 ;) | |
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 … ![]() | |
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] | |
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 … | |
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 … | |
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 … | |
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', … | |
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 … | |
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 … | |
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 … | |
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 … ![]() | |
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 … | |
What is PHP and how is it used? Can one market it (the idea) of support on the internet? ![]() | |
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 … | |
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 … ![]() | |
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 … ![]() | |
asp or php well, I want a website do not know what language, please help me | |
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 … | |
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 … ![]() | |
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 … | |
![]() | 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 … ![]() |
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'])) … ![]() | |
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 … | |
Hello, I am really new at using PHP and can anyone help me out on printing a web page using Php? Thank you. Sam | |
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 … ![]() | |
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 … | |
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 … | |
[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 … ![]() | |
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, … | |
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. … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … |
The End.