39,402 Topics
![]() | |
Hello, I got problem to write code excerpt in my article. [quote] CREATE TABLE IF NOT EXISTS 'articles' ( 'id' int(11) NOT NULL AUTO_INCREMENT, 'title' varchar(250) NOT NULL, 'body' text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM; [/quote] [quote] INSERT INTO 'articles' ('id', 'title', 'body') VALUES (1, 'Lorem', 'Lorem Ipsum … | |
Hello all :) Me and a friend of mine we are working in a project at the moment. We populate our database each one with his own data but now we need to merge our tables. The database has the same name in both machines, and also table name. I … | |
Hi all, I am having a page where there is a drop down box for projects.Below that i had a list of users with check boxes. so wen i select a project in the drop down and assign some users to that project by checking on checkbox. so here is … | |
Hi, This is a reaction to a post([url]http://www.daniweb.com/forums/thread1720.html[/url]) thats a bit old, and I wanted to ask something, but it suggested I'd better start a new post. I'm sorry if theres another post going about this, but I couldnt really find the search function (just joined). First of all I … | |
Hi all I'm looking for progress bar alternatives to the mass of flash solutions I've found through Google. I also don't want to use the PECL package 'uploadprogress' as it's been a headache for myself and the hosting company I host with. There must be some solution out there that … | |
I am trying to create a set of league table in MySQL and PHP. I can get the tables to show the top and bottom 5 values but the problem is when I have less than ten records in the system. When this occurs the same people can appear in … | |
Hello Everyone, I have 2 checkboxes in a form and onclick of these. Once the checkbox is checked, only the fields that are relevant to the checkbox are displayed, with default values in it and to fetch the default values i need to trigger php code. So i can't perform … | |
Hi all, I am a php rookie. I like to get a PHP function returning an array which gets a string(search query) and db results(an array) as arguments. This array should be sorted in ascending (alphabetical) order with search query positions. I tried of querying the results but i struck … | |
[CODE](https?://)?(www.)?[0-9A-Za-z]+\.com/[0-9A-Za-z]+/\?paged=[0-9]+[/CODE] i am getting this error in php [CODE]Warning: preg_match_all() [function.preg-match-all]: Unknown modifier '?' in C:\xampp\htdocs\expression.php on line 19[/CODE] i have test it on online testers it is giving correct results but when i ran it in preg match it gave above error | |
Hi, I'm learning making CMS. As you can see, I cannot do everything from scratch. So I request anyone with code in his codebase that works fine on paging or knows practical code to point me. I want to page my articles once are more than let say 10 Cheers … | |
I've got a website that has a registration page, after you type in all the information you hit an okay button and what is supposed to happen is the page sends a confirmation to the member's e-mail and then it adds the member information to the database. however I keep … ![]() | |
well there is the code and its not emailing me anything when i fill in the form. kind of new to php :((actully first time doing it.) [code=php]<?php /*code for form */ $emailSubject = ' PHP Scripting'; $webMaster = '******@gmail.com';/*just made stars for this site*/ $email = $_POST['email']; $name = … ![]() | |
[B][COLOR="Green"]Hey Guys i just was asking if i had data called zf and table cq_user and there is coulmn called emoney and i wanna increase This emoney Value By sumbit Like Increase at php page... but i need This emoneyvalue if it's 100 i need to increase it by 10 … | |
Can someone help with with a script to find broken links in the url column of a sql database and set it as broken in the status column? | |
hmm how will i start.. in my main page we can find the login form... that login form is made up of div... after i successfully logged in that login form div will become hidden then my other hidden div which is the control panel will appear.. that control panel … | |
![]() | Hi folks, just a quick form question. Whenever I have used forms in the past I have always sent the data to a seperate page to be analysed, with a 'Back' button (using history.go(-1)) to return to the form to correct any errors. When editing forms (populated from a database) … |
Hi, I wonder if anyone has tried to implement PHP with Javascript. I have the code here like this: if($name=='Mary') { echo "<script type=\"text/javascript\">window.alert(\"Hi, Your Name is " . $name . " \")</script>"; } For some reason, I don't get anything on the screen. Could I embed javascript in PHP … | |
![]() | I have a folder in witch i have a sub-folders and in each sub-folder i have text files(.txt). I want to count that text files and want to print the result on the page. Can someone code it out??? ![]() |
Hi There, I currently have a PHP/MySQL query script which displays the top 50 MySQL rows in the table, however, it displays the top 50 of all time. I would love a way for it to display the top 50 rows in the last 7 days. The table looks a … | |
![]() | [code=php] echo ("<a href=foldername/".$file.">".$file."</a>"."<br>"); [/code] and there [code=php] $file = readdir($handle); [/code] in that case $file is a folder name with space.. So I have to put double quotation after href=. But it doesnt printing that double quotation. The link I am getting is only the folder name's first thing … ![]() |
Hi all, I implemented jsTree([URL="http://www.jstree.com/"]http://www.jstree.com/[/URL]) in my script, which is displaying a tree structure for me, but i have a problem The problem is onCliking on the anchor tag it is not taking me to the url given on the href attribute, please help me to resolve this Ex : … | |
![]() | I have a complete list of a topics. I have to create a Index for A B C D E ... On Clicking those buttons without navigating to another page it shows only topics wich starts from that letter... How to code it in php??? ![]() |
Hello guys, pls i need a Form And PHP Code To Get Upto 15 Values Into A Normalize DB At Once Sample Attached MySQL DB Syntax [CODE]-- -- Table structure for table `litorder` -- CREATE TABLE IF NOT EXISTS `litorder` ( `order_ID` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Order identification … | |
Hi all in daniweb, I attempted some form validation but I seem to have made a complete mess of it. Before I introduced the validation and regular expressions it was working fine but because I'm not really sure of this topic I made some syntax errors. I would really appreciate … | |
Hi, I am wondering if anyone in this discussion forum uses some sort of web hosting service. Is there one that is free that supports Ajax, PHP, MySQL and ASP.NET? The one I use only supports PHP and MySQL. Anything is appreciated. | |
hello.... i want to diplay countrys vertically using <ul>.forexample there is 10 countrys. i want to dispaly first five in first column and next in secound column. how to do this dynamically. [CODE] [U]COLUMN1 [/U] [U] COLUMN2[/U] <ul> ARGENTINA <li>state1</li> <li>state2</li> <li>state3</li> </ul> <ul> AUSTRALIA <li>state1</li> <li>state2</li> <li>state3</li> </ul> <ul> … | |
I have a very strange problem... I have the exact same data on my local server and remote server, same php code everything... Same PHP Version.. I use this code.. echo ord($str[11]) << 24; And it returns a totally different incorrect result on the remote server, but totally fine on … | |
I am new to php and my sql so please bear with me. I am using a program php runner. I have 3 fields year make model that need to be drop down lists dependent on the prior selection. for instance if they chose 200 toyota there wont be a … | |
![]() | I need a php code that will open and show a random text file(something.txt) in the webpage.I found so many scripts that open a random line in one textfile but i need a code in php that will open a random .txt format file in a specific folder to see … ![]() |
Hi. I am new to PHP and would like to have the support from the members of this forum to learn PHP in depth. Here is my 1st question/post to this forum and expecting the solution from this forum. I want to read a MS Word doc file and even … | |
Hello, can anyone explain how Craigs List creates the anounomous email addresses like [email]gigs-844r7-1770905448@craigslist.org[/email] and how the server then knows who to forward that email to and how it gets forwarded too the persons real email address. thanks for any help | |
How to set local hosting in Dream weaver? and what software went for testing local hosting in Dream Weaver for php testing? | |
Hello guyz, in my website, i have links like: [url]http://localhost/index.php?Module=Search[/url] i want to hide the php extension and make it something like [url]http://localhost/ukh/Module/Search[/url] i that pssoble via .htaccess or any server commands Note: I'm using Apahce server thanx | |
I'm toying around with a script to allow users to search for other users based on certain criteria contained in their profiles. Anyhow, some of the attributes on the user profiles are things like what they are seeking like dating, someone to talk to, etc. I decided to serialize the … | |
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 … | |
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 … | |
hi, i have uploaded images correctly but i can't upload a video file. plz any one help me in this regard......... thanxxxxxxxx........ | |
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 … | |
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 … ![]() | |
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 " . … | |
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 | |
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. … | |
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] ![]() |
The End.