1,741 Posted Topics
Re: [code] <script language="javascript" type="text/javascript"> //start display day/date code //file: DaysofWeek = new Array() DaysofWeek[0]="Sunday" DaysofWeek[1]="Monday" DaysofWeek[2]="Tuesday" DaysofWeek[3]="Wednesday" DaysofWeek[4]="Thursday" DaysofWeek[5]="Friday" DaysofWeek[6]="Saturday" Months = new Array() Months[0]="January" Months[1]="February" Months[2]="March" Months[3]="April" Months[4]="May" Months[5]="June" Months[6]="July" Months[7]="August" Months[8]="September" Months[9]="October" Months[10]="November" Months[11]="December" function fixNumber(the_number){ if (the_number < 10){ the_number = "0" + the_number; } return the_number; … | |
Re: [quote]What syntax should I use for my multiple table query? Will a JOIN be the fastest? Or would a simple multi-table query work just as quickly? [/quote] I think sub-queries are much faster than joins and also easier to understand. [quote]What is the difference between using INNER and LEFT Joins? … | |
Re: One of the main reason to use primary key is, because of its uniqueness. Say for example you have 4 columns in your table(name, age, city, country). If you don't have a primary key/unique id to differentiate between rows, your query may not do what you expect it to. Eg. … | |
Re: Welcome Rick! P.S You will find help in Windows forum bout formatting your harddisk and installing windows ! | |
Re: Welcome to Daniweb! Please post your question in msaccess forum. | |
Re: Welcome to Daniweb! Please post your question [url=http://www.daniweb.com/forums/forum23.html] here. [/url] | |
Re: First check the file type you are trying to upload. You can get the filetype of the file you are trying to upload by using $_FILES['file']['type']. I guess you are uploading a different file type(and checking for a different filetype). [code=php] if($_FILES['file']['type'] == "image/pjpeg" || $_FILES['file']['type']=="image/jpeg" || $_FILES['file']['type']=="image/gif") { //do … | |
Re: Alright ! I see the same error ! (Using WinXp, Mozilla) Edit: No such mis-alignment in IE6. | |
Re: Welcome to Daniweb! You forgot to mention the programming language you work on :P | |
Re: Welcome to Daniweb! I am sure you will learn alot from this community :) | |
Re: [QUOTE=Taffd;508107]It's ok folks, I've just cracked it. Here's the solution SELECT username, title, COUNT(replies.comment) AS 'count' FROM users, topics LEFT JOIN replies ON topics.topicid = replies.topicID WHERE users.userid = topics.userid GROUP BY topics.title ORDER BY RAND()[/QUOTE] Order by rand() ? Thats something new that I am seeing. What does it … | |
Re: I was playing Driver-parallel lines some days ago. Now i am playing NFS-UG2. I will be playing Bioshock soon. | |
Re: Well, I would invest half of the money in shares/bank and donate the other half to animal welfare and human welfare(somalian kids). | |
Re: [quote]I cant figure out what code to construct and use to check if one of the numbers has been selected (apart from the obvious 1-20 which is not an option).[/quote] What exactly do you mean by that ? Do you want to access the value of $variable when submit button … | |
Re: Try this. [code=php] mysql_query("update greenslip set date_completed='$date_completed', location='$location', person_reporting='$person_reporting', solution='$solution' where id='$id'") or die(mysql_error()); [/code] It will show you why its not updating. Then let us know, cuz, I don't see any error in your script. | |
Re: Welcome to Daniweb! Please post your question in respective programming forum. Read the guidelines before posting. We won't do your homework/office work. So, please show us what you have done so far. Cheers, Naveen | |
Re: You can learn php [url=http://www.w3schools.com/php/default.asp]here.[/url] If you have any problem understanding anything, we will always be there to help you. ;) All the best.. Cheers, Nav | |
Re: Umm.. welcome to Daniweb..:confused: | |
Re: I wanted to do the same thing some time ago. But its simply not possible. You can have multiple <input type="file"> tags though. | |
Re: [QUOTE=frezek;506479]i need web but i don't no what program i need to make?? :D[/QUOTE] Web ? What web ? Do you mean website ? Do you know any bit of programming ? Start by learning [url=http://w3schools.com/html/html_intro.asp]html[/url]. | |
Re: Welcome to Daniweb! Post your question [url=http://www.daniweb.com/forums/forum10.html]here[/url]. | |
Re: For Engineering projects, what you have suggested is more than enough. If you plan to continue using your laptop even after your graduation, with more advanced softwares(like SAP, .NET, etc) or if you plan to install vista, then you better go for a better system! | |
Re: Umm.. are you asking whether it is possible to refresh other visitor's page when 'one' of the visitor clicks a link/submits a form/.. ?? | |
Re: I think its kernel32.dll (dynamic link library, not an exe), which is located in windows/system32. | |
Re: You can use window.opener.location.reload(); in the popup to reload your parent window. You can use window.close() to close the popup. | |
Re: Is your WAMP server running ? What do you see when you type [url]http://localhost[/url] in the url ? Does it show Wamp startup screen or page not found ? Also check if apache service is started when you start WAMP. |
The End.