1,741 Posted Topics

Member Avatar for james1700

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..

Member Avatar for skraps
0
609
Member Avatar for rajeesh_rsn

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]

Member Avatar for PatrikIden
0
174
Member Avatar for OmniX

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 …

Member Avatar for Stefano Mtangoo
2
2K
Member Avatar for mcx76

[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.

Member Avatar for thegeekofnothin
0
431
Member Avatar for kuldeep04
Member Avatar for GrimJack

[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 …

Member Avatar for Netcode
0
601
Member Avatar for WASDted

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" :)

Member Avatar for Netcode
0
989
Member Avatar for hooray

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 …

Member Avatar for gudiya_413
0
1K
Member Avatar for dnalor
Member Avatar for bondito

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 !

Member Avatar for yeungn
-1
424
Member Avatar for ingeva

[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 …

Member Avatar for swatK
0
953
Member Avatar for iamus

[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.

Member Avatar for felixaduol
0
138
Member Avatar for mustafaneguib

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 !

Member Avatar for megadata
0
142
Member Avatar for gnomix

I wonder how did you dig out that old thread. The question was asked 3 years ago. :)

Member Avatar for jakubmisek
0
925
Member Avatar for markhammill
Member Avatar for enzogoy

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]

Member Avatar for mafhh14
0
5K
Member Avatar for Xlphos

[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 …

Member Avatar for The Dude
2
1K
Member Avatar for smith09

[QUOTE=liquidroof]I love to be in social networking sites and [B][U]any[/U][/B] community based site.[/QUOTE] Why ? to spam ?

Member Avatar for savis1
-6
823
Member Avatar for avmaza
Member Avatar for Venom Rush

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 …

Member Avatar for nuraini
0
10K
Member Avatar for snowweb

[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 …

Member Avatar for janajay
0
2K
Member Avatar for Vai

[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]

Member Avatar for sumitgupta225
0
447
Member Avatar for [omega]

Wow! what are you talking about ? Sorry for my ignorance, but what are neurons ? learning rate ? momentum ?

Member Avatar for waisalima
0
327
Member Avatar for sea

[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.

Member Avatar for karmafunk
0
1K
Member Avatar for tupac03
Member Avatar for somedude3488

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 …

Member Avatar for joeidee
3
901
Member Avatar for revathis

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 !

Member Avatar for riya...
0
203
Member Avatar for Shanti C
Member Avatar for Shanti C
0
239
Member Avatar for smchauhan

I dont think that can be done using php. As sDjh has already mentioned, try that in java/flash or in .NET !

Member Avatar for vicfen2k9
0
116
Member Avatar for kings
Member Avatar for ditty

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 …

Member Avatar for edussooriya
0
380
Member Avatar for tryphy
Member Avatar for Syntax12

[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 ?

Member Avatar for EvolutionFallen
0
154
Member Avatar for knarffrank

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 ?

Member Avatar for Borzoi
0
224
Member Avatar for ana12

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! …

Member Avatar for dexter737
-5
219
Member Avatar for The Dude
Member Avatar for praveen_dusari

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 !

Member Avatar for DanielTulp
0
828
Member Avatar for kevin wood

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 ?

Member Avatar for Vince_Cannon
0
662
Member Avatar for bkendall
Member Avatar for Stefano Mtangoo

[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] …

Member Avatar for Stefano Mtangoo
0
1K
Member Avatar for ahmksssv

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".

Member Avatar for Sam_john_2010
0
115
Member Avatar for vidyaputra

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 . …

Member Avatar for Ezzaral
0
202
Member Avatar for Dilnesaw

[quote]$message = "I found this site at [url]http://mysite.com[/url]. Check it out!"; [/quote] There.

Member Avatar for elmerthomas
-1
269
Member Avatar for bbman
Member Avatar for cancer10

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. …

Member Avatar for rajarajan2017
0
167
Member Avatar for nsrivi

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 ?

Member Avatar for madz015
0
173
Member Avatar for OmniX
Member Avatar for dhwaniparikh
0
257
Member Avatar for Chichiro

[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 …

Member Avatar for vaultdweller123
0
548
Member Avatar for dhruv_arora
Member Avatar for dhruv_arora
-1
134
Member Avatar for TigerWarrior

The End.