1,741 Posted Topics
Re: How can you update a table while querying the same table ? I mean, [inlinecode]update item set description=(select description from item where itemid=5384);[/inlinecode] wouldn't work since its trying to update a column by fetching the value from the column of the same table! | |
Re: Having a field (counter/id) is always good. It can be used as an index, to make the table more efficient. But why do you want a table with the links ? You can use an array of links and whenever the user has visited that link, unset that array element. | |
Re: Welcome! Whenever you have problems with malware/virus/spyware, you can post your question in virus/spyware forum :) | |
Re: Once(long long time ago) I had an answer chit in my shirt pocket. The examiner who was standing right in front of me saw it(accidently!)! He kicked me out of the classroom. That was the day I learnt my lesson. From that day onwards, I never kept the answer chit … | |
Re: Welcome to Daniweb! you can post your question [url=http://www.daniweb.com/forums/forum51.html]here[/url]. | |
Re: [QUOTE=buraine;496307]i have an HP zx5000 and i'm trying to reboot my computer using the operating system disc but everytime i restart and then hit the space bar immediately it doesn't give me any option to reinstall windows. i basically can start my computer and then there's no desktop icons or … | |
Re: Welcome to Daniweb! Please post your question in ASP.net forum. | |
Re: [QUOTE=scru;492077]What a colossal idiot you are... How on this damn blue earth can you say something is [I]interesting[/I] (sorry, "really intresting") and you haven't the greenest flying hoot what is going on???[/QUOTE] lol..very true. | |
Re: Put all the links in an array, use rand function to get a random link! | |
| |
Re: I am fat ! My new year's resolution would be to lose some tonnes of weight ! lol.. | |
Re: You can't use C or C++ to create a web application. You need a server side scripting language for a web application (or a dynamic web page, Eg, registration form, login form, etc). php, asp, jsp, asp.net etc are some server side scripting languages. If your site is static, which … | |
Re: Welcome to Daniweb! What do you mean by it doesn't allow me ? Something wrong with the java forum ? And please read community guidelines before posting a question :) | |
Re: I use windows because of its simplicity. I also find linux lil boring. :) | |
Re: What I don't understand is, why does it show the 'server side scripts' ! | |
Re: Use limit in your query when you are fetching posts from the table. [inlinecode]select * from table order by colname desc limit 0,20[/inlinecode] ? | |
Re: Yep, possible. Use nl2br ! Eg. [code=php] <?php print nl2br($_POST['textarea']); ?> <html> <body> <form method=post action=test.php> <textarea name=textarea cols=20 rows=20></textarea> <input type=submit name=submit value=submit> </body> </html> [/code] Cheers, Nav | |
Re: [QUOTE=chicago1985;495619]I have my PHP inserting into Oracle 9i. But how do I prevent duplicate record entries? I only have 3 fields in the insert in the action page and my below attempt doesnt output anything or insert anything even if not a duplicate: [/quote] There are some errors in your … | |
Re: I have used [url=http://uber-uploader.sourceforge.net/]this[/url] one and its good (Perl, php and javascript). | |
Re: If you have phpmyadmin, click on the "export" tab. Select "Microsoft Excel 2000", check the "Save as file" option. Then click on "Go". | |
Re: Are you starting apache service ? Is it configured properly ? (servername=localhost and stuff like that ?) Check error.log in logs folder of apache to check if there are any errors. I have never used sokkit, but a similar software called [url=http://www.wampserver.com/en/download.php]wamp[/url]. You don't have to do configure anything in … | |
Re: Check [url=http://www.stunicholls.com/gallery/left_right_click.html]this[/url] out. @ryan_vietnow, How can we use fopen to create a thumbnail ? It can be done using css( and maybe javascripts, I m not sure). | |
Re: In your oscommerce, check for the file which connects to the database. Check hostname, username and password. Hostname should be localhost, specify the username and password if you have created any (by default, username is root). | |
Re: window.location='url.php?user=blah&password=blah' | |
Re: Welcome to Daniweb Tim. But this isn't the right forum to post your question ! Try [url=http://www.daniweb.com/forums/forum64.html]here[/url]. | |
Re: Welcome to Daniweb Daniel. If you know java, then i am sure it won't be difficult for you to learn php. Cheers, Nav | |
Re: [QUOTE=cscgal;490869]The bad words filter now works on the reputation system.[/QUOTE] I can still see the F word in the reputation for this post :P | |
Re: [code=php] <html> <body> <form name="form" method="post" action="test.php"> Number: <input type="text" name="number"><br /> <input type="submit" name="add" value="+"><input type="submit" name="subtract" value="-"> </form> </body> </html> <?php $conn=mysql_connect("localhost","username","password"); mysql_select_db("dbname"); if(isset($_POST['add'])){ $add=$_POST['number']; $query="update goods set stock=stock+$add where id=1"; mysql_query($query) or die("Cannot update"); } if(isset($_POST['subtract'])){ $subtract=$_POST['number']; $query="update goods set stock=stock-$subtract where id=1"; mysql_query($query) or die("Cannot subtract"); … | |
Re: Welcome to Daniweb. This isnt the right forum to post your code. Post it in php forum. Cheers! Oh, and one more thing. when you post your code, please use [ code] .. [/ code] tags. | |
Re: Simple. By using [url=http://in2.php.net/fgetcsv]fgetcsv[/url]. | |
Re: [url=http://www.w3schools.com/php/php_file_upload.asp] Uploading a file[/url]. And what do you mean by send the file to a private link ? | |
Re: Welcome to Daniweb. But this isn't the right forum to ask your question. :) | |
Re: [QUOTE=kishou;493433]thanks dude! So then it would look like this? [CODE]$res=mysql_query("SELECT * FROM registered_members=$_POST['Username']"); if (mysql_num_rows($res)>0) { echo "Username is already taken!"; } else { [/CODE] ok then i get this error: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource. [/QUOTE] Thats because, you have your query wrong. … | |
The End.