39,323 Topics

Member Avatar for
Member Avatar for json101

How to read a text file into PHP with set format? My text file: [QUOTE]user@example.com user1@example.com user2@example.com user3@example.com user4@example.com user5@example.com ...[/QUOTE] How do I add the text file to my PHP file like this: [B]'user@example.com', 'user1@example.com'[/B] [CODE]<?php function nl2br2($text){ return preg_replace("/\r\n|\n|\r/", "<br>", $text); } $str= file_get_contents("sheet5.txt"); echo nl2br2($str); ?>[/CODE] This …

Member Avatar for json101
0
1K
Member Avatar for Tauseefuomian

hi, i have uploaded images correctly but i can't upload a video file. plz any one help me in this regard......... thanxxxxxxxx........

Member Avatar for Tauseefuomian
0
52
Member Avatar for pbcomput

hi... i know how to upload video...even i can upload video to specific folder...but my question is user are upload video of any formate.. and i want to convert that video into .flv after uploading... can any one tell me how to do this..?? i will be very thankful to …

Member Avatar for Tauseefuomian
0
157
Member Avatar for LloydFarrell

Hi all, I have been doing some reading into security with PHP session data and I have changed a few things around in my script - For example - I am now using $securecode=sha1(uniqid(rand())); as before I was using $securecode=md5(uniqid(rand())); As reading through daniweb has taught me that sha1 is …

Member Avatar for Zagga
0
526
Member Avatar for umandajayo

hi friends I am developing a osCommerce website and I am strucking with displaying items. Ok Ill explain what my issue in my site ok I am using a sql query to display all the product in database. ok this is my query [CODE]$products_new_query_raw = "select * from " . …

Member Avatar for Virtualbase
0
73
Member Avatar for MalikAamir

MalikAamir! Plz help me i how can remove this error!!!!!!!!!!!!!! Parse error: syntax error, unexpected T_VARIABLE in C:\wamp\www\libtest\index.php on line 110

Member Avatar for Virtualbase
0
103
Member Avatar for mongo23

I've been using the code below to successfully create spreadsheets for a few years. Now I have the need to insert page breaks at random times. I haven't found any code that does that without having to abandon this code and installing something completely different which I'd rather not do. …

Member Avatar for mongo23
0
995
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
241
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
158
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
134
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

The End.