1,741 Posted Topics
Re: I think you should use an alias. ie., [code=php] $sql = "SELECT userId, name, email, aes_decrypt(password,'keyhere') as password, country FROM accounts where id='". $_SESSION['member_ID'] ."'"; [/code] I guess that will do the trick.. | |
Re: You can set up a cron job to run every day (or night) and have this query. If you can't have crons, you can run this script whenever the main page is loaded. [code=mysql] DELETE FROM Table WHERE datecolumn < DATE(DATE_SUB(now() , INTERVAL 15 DAY)) [/code] | |
Re: Check this link.. [url]http://www.hudzilla.org/phpbook/read.php/17_3_7[/url] I also read [url=http://it.slashdot.org/article.pl?sid=05/11/15/2037232&from=rss] here [/url] that md5 can generate collision (and is not safe anymore!). Someone also mentions (in the 2nd link) that whirlpool (as mentioned by cwarn23) is a good replacement! SHA1 isn't a safe encryption method too! :S Hmm.. I should stop using … | |
Re: [code=php] <?php if($AuthUserName == "administrator") { [/code] You have forgotten to close this loop. And please, next time wrap your code in [code]..[/code] tags. | |
Re: [QUOTE=jwenting;609193]Not just Dallas. Dutch police are actually given financial targets to meet each year for traffic violations, split by category (speeding, red lights, etc.) as well as targets for impounded vehicles (which are sold for profit by the government), impounded driver's licenses (which mean someone needs to take another driving … | |
Re: Ask customtshirts guy! I'm sure he's got a storehouse of funny quotes :P How about, "Warning and Infractions can't stop me from posting spam!" "I am a sig spammer. Shoot me!" "I <3 1337" "I [b]hate[/b] spammers." "Favorite passtime: Reporting spammers!" "I'm a n00b. plzzz help !!!!11" "Homework kiddo" :) | |
Re: err.. You have using getElementById("favorite"), But, you have exp as the id for the textbox. [code] <html> <head> <script type="text/javascript"> function explain(value){ if(document.getElementById("list01").value=="burn") { document.getElementById("exp").value="This burns their crops" } if(document.getElementById("list01").value=="pillage") { document.getElementById("exp").value="Kill women and children" } if(document.getElementById("list01").value=="court") { document.getElementById("exp").value="huh" } } </script> </head> <body> <form id="myform" method="post"> how would you … | |
Re: Hi. Welcome to Daniweb. Your question is nowhere related to php. You can post your question in [url=http://www.daniweb.com/forums/forum6.html] geeks' lounge forum! [/url] or even better, google it ! | |
![]() | Re: [quote]The script works, but I would like to sent the POST data using the php "header" function instead so the headers don't pass from the client.[/quote] I am quite confused what you actually want. If you want to redirect the user to some other page using header function, you can … |
Re: [url]http://sourceforge.net/projects/lams/[/url] I think this is what you are looking for ! But unless you understand how the whole system works, its very difficult to change it as per your needs. | |
Re: The menus aren't the same in all the pages. In this page, [url]http://worldofpakistan.net/cms/controlpanel.php[/url] , user control seems cluttered. And also, in index.php, website statistics is out of place. See the screenshot to see what I am talking about. Good job btw ! | |
Re: I wonder how did you dig out that old thread. The question was asked 3 years ago. :) | |
Re: where is session_start in shop.php ? | |
Re: Here is an example. [code=php] <?php $file="test.xls"; $test="<table border=1><tr><td>Cell 1</td><td>Cell 2</td></tr></table>"; header("Content-type: application/vnd.ms-excel"); header("Content-Disposition: attachment; filename=$file"); echo $test; ?> [/code] | |
Re: [QUOTE=Xlphos;1048814] What I am trying to do is view a post whilst not logged in then clicking on reply to post, it used to work why has it stopped recently.[/QUOTE] Yep. There is a bug. This is what I did. I logged out, came back to this thread and tried … | |
Re: [QUOTE=liquidroof]I love to be in social networking sites and [B][U]any[/U][/B] community based site.[/QUOTE] Why ? to spam ? | |
Re: can you explain a little bit more ? | |
Re: As far as I know, you can't have insert and update in the same query. The only case where you can have insert and update in the same query is when you use [url=http://dev.mysql.com/doc/refman/5.0/en/insert-on-duplicate.html]on duplicate clause [/url]. If you are using php to insert values to the table, you can … | |
Re: [QUOTE=snowweb;526740]and why should I waste my time explaining how I fixed it when NO-ONE on this forum gave me even the slightest help? - Courtesy works both ways... not just one![/QUOTE] Well, people might not be knowing the answer for your question. You can't expect them to know the answer … | |
Re: [quote] If you have the a working example of exporting mysql data to excel I would appreciate that. [/quote] A simple example. [code=php] <?php $file="test.xls"; $test="<table border=1><tr><td>Cell 1</td><td>Cell 2</td></tr></table>"; header("Content-type: application/vnd.ms-excel"); header("Content-Disposition: attachment; filename=$file"); echo $test; ?> [/code] | |
Re: Wow! what are you talking about ? Sorry for my ignorance, but what are neurons ? learning rate ? momentum ? | |
Re: [QUOTE=visio;536542]or on the php.ini file which you upload to the directory enter this command: safe_mode = Off[/QUOTE] :) You bumped into a 2 year old dead thread. | |
Re: The application is good.. But there is kinda delay (?).. umm..I think the 2 second delay is taking more time than that.. One more thing.. [quote] <test3> test <test3> test33 <test3> test445 <test3> huh <Admin> test4 has left the chat [/quote] I got kicked out of chat but wasn't redirected … | |
Re: Your apache isn't configured to parse php files. Either try [url]http://www.expertsrt.com/tutorials/Matt/install-apache.html[/url] OR install Wamp or xxamp ! :) Wamp/xxamp is a bundled software with pre-configured apache/php and mysql ! | |
Re: [url]http://www.codewalkers.com/c/a/Email-Code/PHP-Email-Attachment-v1/[/url] | |
Re: I dont think that can be done using php. As sDjh has already mentioned, try that in java/flash or in .NET ! | |
Re: If the string is in this format [quote] [email]aaaaaaaaaabbbbbbbbbbcccccmail@yahoo.comd[/email]ddddddeeeeeeeffff [/quote] I don't think you can extract the email address, since you wouldn't know what is the exact part before @. If your string is as you stated above, ie., [quote] ssfihuihuiifhhdfhishfihfh jjjjjif [email]ee@gg.com[/email] jfiosofjojofjjm ojofjojfc ojjofjojw [/quote] then you can … | |
Re: [code] select * from table order by datecolumn desc [/code] Will work fine. How does php consider this as a math problem ? What is the query you are using ? | |
Re: Eg. [code=php] <html> <body> <a href="test.php?id=1">Click here </a> </body> </html> [/code] [code=php] <?php //test.php $id = $_REQUEST['id']; echo $id; ?> [/code] easy ? | |
Re: I stopped eating spam when I realised its not healthy anymore :( [Too much bad cholestrol] Spam nowadays are low on nutrition and taste. Sigh. What is the world turning into ? A place where people can dish out cheap, low level spam and get away with it ? Noooo! … | |
Re: AFAIK, you cant. When a page is loaded, the images are downloaded into the temporary internet files folder. Even if you disable right click, the user can save the webpage and all the images can be saved in the user's computer ! | |
Re: Syntax error while updating the record or while fetching ? [quote] $SQL = "SELECT cms_core FROM '$sContent' WHERE id=1"; [/quote] [quote] $sql="UPDATE cms_core SET editorial='$sContent' WHERE id=$id";[/quote] cms_core ? is it a table or a column name ? | |
Re: no thanks. I don't want a free account. | |
Re: [QUOTE=futhonguy;1055694]I tried to use the above code for an example and i came across a Deprecated on Call-time pass-by-reference for these following code: [CODE]array_map( 'stripslashes',&$_POST ); //Strips slashes array_map( 'mysql_real_escape_string',&$_POST ); //Escapes data to protect against sql injection[/CODE]. can anyone assist me on this? thanks[/QUOTE] Use [code] array_map('stripslashes,$_POST); array_map('mysql_real_escape_string',$_POST); [/code] … | |
Re: First of all, this question belongs to Javascript forum. Its a javascript related question. 2nd, Post your code and tell us what is not working. We aren't 24/7 free coding service to provide you with ready made code when you say "Please help me asap", or, "Its urgentttt". | |
Re: Are you sure its administrator ? I know about mysql's 'root', but never heard of administrator. And when you say phpmydirectory, are you talking about phpmyadmin or something else ? Also check which php.ini file is being used by web server. In wamp, it uses the file in C:\wamp\Apache2\bin . … | |
Re: [quote]$message = "I found this site at [url]http://mysite.com[/url]. Check it out!"; [/quote] There. | |
Re: bbman, Why are you talking to yourself ? | |
Re: Yep. This is correct. But, its a good practice to have column name in your insert query. And also, Dont execute your query directly. Store the query in a variable and then execute it. This way, if you encounter any problem, you can easily print the query for manual testing. … ![]() | |
Re: in php, you have fpdf classes to convert html/text to pdf. I guess there are classes in .net to do the same . Which server side scripting language are you using ? | |
Re: Can you show us your script ? What is the error that you are getting ? | |
Re: [QUOTE=jwenting;] ... ..... You guys have a massive superiority complex which prevents you from ever achieving anything, as you think you don't have to achieve anything because of that inherent superiority you think to have. I see this in a lot of Indians. Instead of trying to improve their own … | |
Re: Since when did Daniweb turn into a "Tips for dating" site ? :-/ | |
The End.