473,775 Members | 2,621 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP Forum

PHP web programming language - Ask questions about php scripting, databases, mysql, templates, PEAR, php functions, PHP-GTK, setup and installation, object oriented programming, classes, files, security, sessions, arrays and more.
1
1,225
thread by: dgs | last post Nov 17 '07 by: Jerry Stuckle
How to produce a tooltip ? Like one we have in VB as elements attribute. Is there any function for it ?
1
1,372
thread by: anbumozhip | last post Nov 17 '07 by: ak1dnar
i have the following error when i trying to execute the page Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\wamp\www\test\ouraction.php on line 14 here's my ouraction.php <?php $host = "localhost"; $user = "root";
6
3,105
thread by: olddocks | last post Nov 17 '07 by: olddocks
what is the safe way to implement file upload in your server with PHP. Here is my situation.. 1. i want to let users upload small avatar like image files in the website. 2. I tried setting upload folder 777 permission and i am afraid that it could be a serious security concern? 3. i tried setting permissions to 755 or 775 , but upload fails....
3
7,115
thread by: eihabisaac | last post Nov 17 '07 by: pradeepjain
im trying to do the following : i want to insert an image into my database into a field called car_picture "BLOB" ,i also have other fields within this table then i want to retrieve for example the car name and the picture for it i did the following : i put this field <input name="picture" type="file" /> that will help me browse from my...
2
2,341
thread by: Keychain | last post Nov 17 '07 by: Keychain
I'm looking for a template-based PHP mailer script to send personalized messages to about one hundred pre-defined recipients. Database support would be nice, but a simple CSV import feature would suffice. Any recommendations is appreciated.
2
1,514
thread by: megahurtz | last post Nov 17 '07 by: pbmods
This isn't necessarily specific to PHP, but I am trying to figure out a way to pseudo-randomly generate a number based on the month. To clarify a little, I want the number returned to stay the same for the entire month, and then change to another "random" number for the next month. There would also need to be a ceiling on how big the number could...
5
2,542
vijcbe
thread by: vijcbe | last post Nov 17 '07 by: pbmods
Hello friends!! I have a question.. Let me have a table which consists the details of 5 employees, starting from employee id 1 to 5 as given below. emp_id fname ... .... address 1 john ... ... ... 2 .
2
4,298
thread by: whitey | last post Nov 17 '07 by: pbmods
Hi all, The below code should be allowing me to modify entries which i choose from the script before hand, however it give the 500 error code. it generates ...... http://tramp-space.co.uk/edittest/test/addentry2.php?master_id=1 where 1 is the record number (which exists)
4
4,091
thread by: hussain123 | last post Nov 17 '07 by: LacrosseB0ss
Hi All, I have a web site which was hosted on m/c A and PHP version there was 4.4.3 Now I have moved my website to m/c B and the PHP version is 5.0.4 But now the problem is that the on the m/c B my session variables(HTTP session variables) used in the PHP code are not maintained across all the pages which is creating problem on my website. I...
3
1,045
thread by: mtuller | last post Nov 16 '07 by: mtuller
I have links that display dates, incremented from one value up to another. When I click on each link though, it adds the value to the url. This is a snippet of the code: for ($i=$first_year; $i<=$last_year; $i++) { echo '<td><a href="'.$_SERVER. $_SERVER.'?year='.$first_year.'">'.$first_year.'</a></ td>'; $first_year++;
10
2,312
thread by: deciacco | last post Nov 16 '07 by: deciacco
I'm writing a command line utility to move some files. I'm dealing with thousands of files and I was wondering if anyone had any suggestions. This is what I have currently: $arrayVirtualFile = array( 'filename'=>'filename', 'basename'=>'filename.ext', 'extension'=>'ext', 'size'=>0,
7
2,652
thread by: lawrence k | last post Nov 16 '07 by: lawrence k
I've got a music studio for a client. Their whole studio is run with Macintosh computers. Macintosh computers allow file names to have open white spaces, such as "animal hospital.mp3". I have a download script, so customers on the website can download MP3s to their harddrive (rather than merely listen to it in their browsers):
6
62,767
thread by: Andy2500 | last post Nov 16 '07 by: phpCodeHead
Hi, I'd like to upload an image to a folder, then I have 3 diffrents examples but all of them give an error "failed to open stream: Permission denied", althrough the C:\Inetpub\wwwroot is not protected. Any suggestions would be helpful, thank you for your time.
4
1,436
thread by: keerthitest | last post Nov 16 '07 by: code green
hi below is my code. <?php include("Globals.php"); $connection = mysql_connect("localhost","root","drmz"); mysql_select_db("drmzmove"); $Room = mysql_query("select id, ordre, name, e_name, f_name, p_name, color from Rooms where id ='" . get_id("id")."'"); $Room = mysql_fetch_assoc($Room); $room1=$_REQUEST;
4
2,820
thread by: mukeshrasm | last post Nov 16 '07 by: Atli
Fatal error: Call to undefined function cpdf_open() in D:\mukesh\www\mukesh\school\pdf.php on line 3 and code is: <?php $cpdf = cpdf_open(0); // create a 600x400 page cpdf_page_init($cpdf, 1, 0, 600, 400, 1); // display text
3
45,283
thread by: mtuller | last post Nov 16 '07 by: Rik Wasmus
I want to get the first record and last record in an array. I don't want any other records, but am not finding how to do it. What I am doing is pulling out information from a database, where the sql query would have a result much like this: 10 11 12 13 14
0
1,266
thread by: noel.whelan | last post Nov 16 '07 by: noel.whelan
I've been working through the zend gdata client lib example for google base: http://code.google.com/apis/base/samples/php/php-sample-zend.html. I've installed the zend framework version 1.0.2 for this purpose. The first issue I experience is when I copy google's example code, which includes the line: ...
1
1,059
thread by: anbumozhip | last post Nov 16 '07 by: Atli
i have a mysql db which has a table containing all universities in the country .tuttion fee, start date,course name , location etc,based upon the user selection for search i need to output the searched result . For this how to get all the inputs in a variable so that get thru the db and display result. whether we have to take each...
4
1,471
thread by: Steve | last post Nov 16 '07 by: Steve
i know i know...just get over it. look at the date of the last post/response in an oracle ng. :) this is a mysql specific query. i want to do the same thing in oracle. i don't know how. the following gives a dynamic/unique id number to a set of selected records. it kind of mimics RANK() in oracle. it's based on a cartesian...anyway, if...
1
1,546
thread by: jsd219 | last post Nov 16 '07 by: Steve
I have a report.php page that displays data from a mysql database. I would like to create a text box to input an email address and upon submitting, have the report attached and sent to the email specified. The page can be converted to PDF or .xls or .doc whichever is easier. Does anyone know how to do this? first and foremost, convert the...
2
2,073
thread by: upendrajpr | last post Nov 16 '07 by: Jerry Stuckle
Dear friends I am sending mail from my site but it gives me some error "Warning: mail() : "sendmail_from" not set in php.ini or custom "From:" header missing in C:\P............." my code is this
6
6,258
thread by: Mad Hatter | last post Nov 16 '07 by: Mad Hatter
Hi folks I'm a bit confused with an upload script that I've written. I want to be able to check the file type of an upload by checking the mime type but I'm not getting the results that I thought I should. According to what I've read .zip files should return something like 'application/zip' or 'application/x-zip-compressed', RAR should...
1
1,627
thread by: mukeshrasm | last post Nov 16 '07 by: Atli
hello i want to maintain the session of particular user throughout the webpage after login. it should display the login name on each and every page. i tried it in this way: session_start() $_SESSION=$name;
3
4,679
thread by: Andy2500 | last post Nov 16 '07 by: Erwin Moller
Sorry that I use the new post because when I replied in the old one, nothing display ! here is the code of the simplest example with its errors : ==========================================================
2
1,171
thread by: patsman77 | last post Nov 16 '07 by: Atli
Hello All, I have a slight problem/small question.... I am trying this code out, but am not getting correct results.... any help would be great. if (($pass-$pass) > ($pass+$pass)) { echo "$pass is Winner.\n"; } elseif (($pass-$pass) < ($pass+$pass)) { echo "$pass wins.\n"; } else {

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.