39,316 Topics

Member Avatar for
Member Avatar for StartingGrounds

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 >= …

Member Avatar for StartingGrounds
0
74
Member Avatar for cthoes

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 …

Member Avatar for cthoes
0
1K
Member Avatar for iqra123

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 …

Member Avatar for sergb
0
71
Member Avatar for benhowdle89

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, …

Member Avatar for benhowdle89
0
185
Member Avatar for slyme

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 …

Member Avatar for slyme
0
156
Member Avatar for Svelte

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 …

Member Avatar for Svelte
0
68
Member Avatar for niths

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 …

Member Avatar for niths
0
84
Member Avatar for toasty525

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]

Member Avatar for rajarajan2017
0
81
Member Avatar for jobykjoseph
Member Avatar for Manuz
0
898
Member Avatar for kishan112

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 = …

Member Avatar for kishan112
0
112
Member Avatar for senaia

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.

Member Avatar for mailvin123
0
151
Member Avatar for Boskor

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 …

Member Avatar for Boskor
0
240
Member Avatar for fizanos

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` …

Member Avatar for rajarajan2017
0
122
Member Avatar for kirtan_thakkar

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 …

Member Avatar for kirtan_thakkar
0
157
Member Avatar for ayesha789

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> …

Member Avatar for ayesha789
0
1K
Member Avatar for slyme

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 …

Member Avatar for slyme
0
96
Member Avatar for niths

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"); …

Member Avatar for json101
0
114
Member Avatar for MitkOK

Hello. I know that there are many ways to convert date in PHP, but i use those to two convert from/to MySQL DB.

Member Avatar for asimshahiddIT
0
193
Member Avatar for rics

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.

Member Avatar for urtrivedi
0
132
Member Avatar for vibhaJ

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.

Member Avatar for vibhaJ
0
114
Member Avatar for shailendra_agra

Hi Guys, Anybody tell or give me the code for show and play video in PHP. Reply as soon as possible.....

Member Avatar for vibhaJ
0
87
Member Avatar for niths

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 …

Member Avatar for niths
0
104
Member Avatar for gymangel812

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, …

Member Avatar for urtrivedi
0
338
Member Avatar for rukshilag

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 …

Member Avatar for jenyroger
0
205
Member Avatar for Nile Hadwards

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.

Member Avatar for jenyroger
-4
307
Member Avatar for Odubz

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 …

Member Avatar for jenyroger
0
2K
Member Avatar for tjcares

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 …

Member Avatar for scaiferw
0
155
Member Avatar for vho123

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 …

Member Avatar for MVied
0
124
Member Avatar for vista

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 …

Member Avatar for vista
0
146
Member Avatar for json101

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]

Member Avatar for json101
0
118

The End.