39,316 Topics
| |
Hello everybody, I'm very excited to find a community towards programming. I've been doing web development for about 5 years now, and I'm starting to get down some serious projects, one of which I need help with right now. Over at: [url]http://www.startinggrounds.com/forums.php[/url] Problem: In forums.php I have this: [code]if($count >= … | |
i am using mac os x 10.5 with apache php and mysql. i tried below program but end up with following message.. Upload: insurance1.jpg Type: image/jpeg Size: 845.189453125 Kb Temp file: /private/var/tmp/php0Vueol Warning: move_uploaded_file(uploads/insurance1.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /Library/WebServer/Documents/php/upload_file.php on line 25 Warning: move_uploaded_file() [function.move-uploaded-file]: Unable … | |
helloo... i am working on IOM (Inter office memorandum ) i saved differnt record in database and i can also fetch that data on my php page. in my prog let suppose user 1 send iom to user 2. this record is saved in database and on the other side … | |
Hi, I'm designing a web page that has 6 drop down html form inputs (d, m, y, d, m, y) for pulling records from a mysql database depending on users input of a range of dates. I'm trying to use an Ajax script that will hopefully, on submit of form, … | |
I want to send an email and I am using the code below. It always works on my test server and my production server which are both IIS on Windows. It sometimes works the client's server. Once or twice in ten it sends. The client's server is running Apache on … | |
I have a similar project to one posted on Sep 29th, 2009: Interactive Timetable. The difference is that the timetable is to be generated automatically. Lessons can be placed anywhere on the timetable.There are 11 lessons in a day, and three breaks. Could anyone help with this or give any … | |
Hi all, I am having a projectassign page,in that page i am having a dropdown box in which names of the projects are present.I am getting that project names from database. Below that list of users with checkbox are present. So i can select a project from dropdown and check … | |
Hi, can anyone tell me why the below PHP code keeps returning mysql_num_rows(): supplied argument is not a valid MySQL result resource ?? [code=php] $result = mysql_query("SELECT * FROM RewardGenUser WHERE UserID = 123"); $num = mysql_num_rows($result); [/code] | |
How can we create a program to visit a website through a proxy server? | |
I have the following script to resize and crop images. I can use jpg and png files, but can't use tif files. Can you please help? [CODE=php] <?php function Image($image, $crop = null, $size = null) { $image = ImageCreateFromString(file_get_contents($image)); if (is_resource($image) === true) { $x = 0; $y = … | |
Hi I need a script for a web hosting directory and all the one's I found, are not what I exactly need. If anyone know a good & advanced script, please post a link. I would appreciate all the help. Thank You. | |
Hello I have another problem. Here is previous thread: [url]http://www.daniweb.com/forums/post1237196.html#post1237196[/url] and my code: [CODE]$tipster = mysql_query("SELECT SUM(Analysis.Profit), Users.id, Users.Country_name, Users.Username, User_status.id_status FROM Users INNER JOIN User_status ON Users.User_status_name=User_status.user_status left outer JOIN Analysis ON Users.Username=Analysis.Tipster WHERE User_status.id_status>=3 GROUP BY Tipster ORDER BY SUM(Analysis.Profit) DESC"); while ($row = mysql_fetch_array($tipster)) { $sel_tipster=$row['Username']; echo … | |
Hey guys, need your help here. How best can i Normaliza the sql query below [CODE]#---------------------------- # Table structure for litorder #---------------------------- CREATE TABLE `litorder` ( `id` int(10) NOT NULL auto_increment, `name` varchar(50) NOT NULL default '', `address` varchar(50) NOT NULL default '', `xdate` date NOT NULL default '0000-00-00', `ref` … | |
| I have a database some short notes in a .txt format file and i have created a php webpage that includes a txt file in html format. Now I have to use "Next" and "Preview" links for that .txt format files. Can anyone suggest me the php or JavaScript code … |
Dears I have Developed a System for UPLOAD PDF files in Database. [INDENT]I Require to rename the file as LA when file is Uploaded in DB.[/INDENT] Here is my Form [CODE]<form enctype="multipart/form-data" action="dS.php" method="POST"> <tr> <td><table width="98%" border="0" cellspacing="0" cellpadding="0" > <span class="style7 style1">Site Id</span><input type="text" name="id" value="" /> <tr> … | |
I have seen the mail function preceded with an @ symbol. I have tried it in my code and I cannot see what difference it makes. I have searched Google and the PHP documentation and I have not been able to find an explanation for this @ symbol. Would someone … | |
hi all, i had a page where we can upload files.so when i upload pdf,wmv,win files, they are not uploading. but the rest like txt,doc,jpeg are uploading fine. so i need pdf,wmv,win files also upload. so can any one please... here is my upload code. [CODE]<?php ob_start(); @session_start(); require_once ("check.php"); … | |
Hello. I know that there are many ways to convert date in PHP, but i use those to two convert from/to MySQL DB. | |
I have placed three comboboxes on PHP form. One for Year, one for month, one for year. How do i pick values from these three combos and concatenate them & transfer them to Dateofbirth field in Mysql table. Please give code. | |
Hi All, I want to display local time on the page based on user's selected country. Is there any [B]FREE [/B] API available for getting local time of any country. Input may be whatever, country or longitude and latitude. | |
Hi Guys, Anybody tell or give me the code for show and play video in PHP. Reply as soon as possible..... | |
hi all, i am having some check boxes in my page. so i dont know the number because it is cuming from data base, so i need a javascript validation for this check boxes because he should check atleast one check box. so can any one please... here is my … | |
I am doing a database search using php. Everything works rights except when I just press the enter button (not searching anything) or a match is not found. In those two situations, I want a message displaying no items were found. Currently, when I search for nothing by pressing submit, … | |
ive been coding the plain old procedural way in php and i want to move that code to object oriented. can i just simply use my currently written php code into a function and then call it? pleas let me know an easy way to make my normal php code … | |
hello to all, php web hosting is great thing of the any php programmer.so i would like to suggest online php web hosting tips.thank u. | |
Hello, I have looked over many examples of how to populate a dropdown with rows like [code=php] $sql="SELECT id, thing FROM table"; $result=sqlsrv_query($conn,$sql) or die("Couldn't execut query"); while ($data=sqlsrv_fetch_array($result, SQLSRV_FETCH_ASSOC)){ $id=$row["id"]; $thing=$row["thing"]; $options.="<option value=\"$id\">".$thing "</option>"; } [/code] But i need to populate this list with tables and will need to … | |
I I am trying to make a site checker for my traffic exchange Now i was able to get this to work [CODE] SELECT*FROM vtp_urls where ID=326 [/CODE] and it puled up the right file and everything so I search the web for a way to display the url so … | |
Having trouble with this little DOM PHP task. When i parse it from unix with the command -> php DOMSearch.php "Brookside" it prints out Channel 5 Start : 2001-07-0521:55:00 However, it should print out all channels and start times from the "Brookside" series like below: Channel 4 Start : 2001-07-05T20:00:00 … | |
Hi there. Okay heres the scenario. I have 2 tables "Logins" and "User_Details" What I want to do is write a PHP query that whenever a new user is created, that is manually entered into "User_details" table using a form, the next thing that should happen is that it should … | |
Is there a better way to write this if statement? Option1: [CODE]if (isset($_GET['item']) || isset($_POST['item'])){ $path = 'uploads/file/'.$filename; }else{ $path = 'uploads/'.$filename; }[/CODE] Option2: [CODE]if ('item' != $_GET['news'] || 'item' != $_GET['events'] || 'item' != $_GET['download']){ $path = 'uploads/file/'.$filename; }else{ $path = 'uploads/'.$filename; }[/CODE] |
The End.