841 Posted Topics

Member Avatar for vssp

try this: [code=php] <? $address = getenv("REMOTE_ADDR"); echo $address; // Or simply use a Superglobal ($_SERVER or $_ENV) $ip = $_SERVER['REMOTE_ADDR']; ?> [/code] The function 'getenv' does not work if your Server API is ASAPI (IIS). So, try to don't use getenv('REMOTE_ADDR'), but $_SERVER["REMOTE_ADDR"].

Member Avatar for bab2501
0
785
Member Avatar for Sorcher

check the following : [url]http://www.daniweb.com/web-development/php/threads/174718[/url] [url]http://www.daniweb.com/web-development/php/threads/170201[/url] [url]http://www.daniweb.com/web-development/php/threads/162319[/url]

Member Avatar for diafol
0
87
Member Avatar for IWDesigns
Member Avatar for ChaseTonyReid
Member Avatar for akshayphp

i dont know much abt this: but this forum link can be helpful for you : [url]http://hostmonsterforums.com/archive...hp/t-964.html?[/url]

Member Avatar for Shanti C
0
69
Member Avatar for davy_yg

why didn't you missed semi colon for line numbers : 9 and 11. try with this, if not success again post your error.

Member Avatar for cossay
0
136
Member Avatar for davy_yg

try to print what that function returns : [CODE]echo mix("John", "Wayne", "King"); [/CODE] else put [QUOTE]echo[/QUOTE] in that function its self. Please tell me clearly , if i understood your query wrongly.

Member Avatar for Shanti C
0
70
Member Avatar for michael123

Hello try this.. [code=php] <td><?=substr($_POST['textarea'],0,20);?>.....</td> [/code] You can print only some of the content...

Member Avatar for cicovy
0
195
Member Avatar for waaliban

Please read about "FileSystemObject". Find files with JavaScript [url]http://www.codeproject.com/jscript/search_in_files.asp[/url] JScript FileSystemObject Object [url]http://ns7.webmasters.com/caspdoc/ht...ect_object.htm[/url] Current Directory [url]http://javascript.internet.com/navig...directory.html[/url] Scripting.FileSystemObject Examples [url]http://www.eggheadcafe.com/articles/20030627b.asp[/url] And also check this: [url]http://javascript.internet.com/navigation/current-directory.html[/url]

Member Avatar for nudelsalat
-1
28K
Member Avatar for Shanti C

Hello all.... Good Evening... Here i am creating a thread, Where you can, Post what new thing ,you are going to learn today or what new thing ,you learned today.... And also you can post a brief description of that thing and also links about it,or any if you have....That …

Member Avatar for Netcode
0
925
Member Avatar for Shanti C

Hello, i have used ireport tool for creating jrxml template for creating chart(XYLine chart). and i used this jrxml file in java code to create chart. Here i passed csv file as data source. Now i can freely change color,title,subtitle,font ect from java code . what i want is how …

Member Avatar for vimukthirandika
0
901
Member Avatar for ErangaD

hi, first, please try with some code then post your code here for help. Anyway try with example script: [CODE] function test() { var x=document.getElementById("A"); document.getElementById("A")=x-document.getElementById("B"); } [/CODE] Use this test() on'onchange' for A text box. Please post your required peice of code.. All the best.

Member Avatar for ErangaD
0
154
Member Avatar for neclark2

once refer these links: [url]http://www.rafaeldohms.com.br/2008/02/12/adding-text-to-images-in-real-time-with-php/en/[/url] [url]http://www.developertutorials.com/tutorials/php/adding-custom-text-to-image-050620/page1.html[/url] or try this: [code=php] <?php $image = ImageCreateFromPNG("base.png"); $color = imagecolorallocate($image, 0xFF, 0xFF, 0xFF); $colorShadow = imagecolorallocate($image, 0x66, 0x66, 0x66); $font = 'arial.ttf'; $fontSize = "10"; $fontRotation = "0"; $str = "Example of GD in PHP. Date: " . date("m-j-Y g:i:s (a)"); /* Shadow …

Member Avatar for cereal
0
758
Member Avatar for anita_86

you have to give unique id for dynamically added input fields.Based on that ids you should have to calculate total.

Member Avatar for anita_86
0
150
Member Avatar for vanpersie

did you stop your server in your eclipse/any other IDE ? try to restart your server. may be your server does not installed properly..check for this.. [url]http://tomcat.apache.org/tomcat-7.0-doc/appdev/index.html[/url]

Member Avatar for peter_budo
0
266
Member Avatar for gingerfish

we can set another webpage into our webpage by frames etc... can you please eloborate your query more ???

Member Avatar for Shanti C
0
96
Member Avatar for Nollyvenon

Please use code tags for showing your code, so others can easily go through it. Please point for a peice of required code. You have already coded it, then please come with your current output that your code has given..

Member Avatar for utpal23
0
4K
Member Avatar for rnalh5gh

you can write using methods in jsp : [CODE] <%!public String generateCalc(String param) { if(param.equals("A")) { // code for generating HTML A calculator } else if(param.equals("B")) { // code for generating HTML B calculator } } %> [/CODE] If this is not your requirement, please be a bit more clear.. …

Member Avatar for Shanti C
0
96
Member Avatar for mehrantahir

It is my suggestion that , for these type of caluculations ,better use time in particular format(minutes) while saving in mysql.like : 12.00 am - 0 1.00 am - 60 2.00 am - 120 . . . . 12.00 pm - 720 13.00 pm - 780 . . . . …

Member Avatar for urtrivedi
0
93
Member Avatar for wfray

check this link, im not sure this is userful for you or not.. just for info. [url]http://books.google.co.in/books?id=Q9OP0ClTTvIC&pg=PA236&lpg=PA236&dq=if+(session_id()+%3D%3D+%22%22)+in+php+5&source=bl&ots=1E0yhfQHaO&sig=9qVWE4AtPs6W5Ed5OyYVKeYXP5o&hl=en&ei=pgApTqXMDcurrAeJp7nHBg&sa=X&oi=book_result&ct=result&resnum=7&ved=0CEYQ6AEwBg#v=onepage&q&f=false[/url]

Member Avatar for Shanti C
0
89
Member Avatar for lloydsbackyard
Member Avatar for lloydsbackyard
0
952
Member Avatar for 080346

Are you sure that you are with in these [URL="http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_support"]limits[/URL]. or try to print the error.

Member Avatar for Arkinder
0
143
Member Avatar for Stefano Mtangoo

-> encryption & descryption -> set very restrictive permissions for MySQL users -> restricting user input characters (username / login id) -> escaping characters and also refer the link : [url]http://www.learnphponline.com/security/sql-injection-prevention-mysql-php[/url]

Member Avatar for Stefano Mtangoo
0
125
Member Avatar for vaanipala

Try like this : [QUOTE]echo "<b>".$cd->item($i)->nodeName.":</b>";[/QUOTE] or [QUOTE] $val=$cd->item($i)->nodeName; echo "<b>".$val.":</b>";[/QUOTE]

Member Avatar for karthik_ppts
0
236
Member Avatar for MooGeek
Member Avatar for lastgame2007

check for the $id value , whether it is there(db table) or not. And also remove single quotes for index here : [QUOTE]WHERE 'index'='$id'[/QUOTE] if still eror: print your query like : [CODE] echo $qry="UPDATE tblinfo SET idno='$idno', name='$name', address='$address', birthdate='$birthdate', contact='$contact', email='$email' WHERE 'index'='$id'"; $result=mysql_query($qry); [/CODE] Try to excute …

Member Avatar for faroukmuhammad
0
142
Member Avatar for naru vaishnaw

can i ask one question : you want to display the to_user avatar or from_user avatar here ???? pass the appropriate username in your query while printing avatar.

Member Avatar for Shanti C
0
119
Member Avatar for jacob21
Member Avatar for Shanti C
0
208
Member Avatar for Espenij
Member Avatar for jollyjain

you can validate spaces also like this : [CODE] var invalid = " "; // Invalid character is a space // check for spaces if (document.myForm.password.value.indexOf(invalid) > -1) { alert("Sorry, spaces are not allowed."); return false; [/CODE] and also check this link : [url]http://www.dreamincode.net/code/snippet68.htm[/url]

Member Avatar for divyakrishnan
0
105
Member Avatar for feedz87

You can implement this by PHP sessions or cookies. Learn PHP Sessions here : [url]http://www.tizag.com/phpT/phpsessions.php[/url] Then you can go for implementations. refer : [url]http://marakana.com/blog/examples/php-implementing-secure-login-with-php-javascript-and-sessions-without-ssl.html[/url] If you are using only sessions, you can differ your pages by setting one session like flag 1 for admin and 0 for users. If you …

Member Avatar for mgt
0
2K
Member Avatar for jrotunda85

You can refer here: [url]http://www.bradino.com/mysql/calculate-age-using-date-field/[/url]

Member Avatar for karthik_ppts
0
153
Member Avatar for ashiiiish
Member Avatar for Supergrass

you must have to close the printf function in line no 512. like : [CODE]<?php printf( 'your content' );[/CODE]

Member Avatar for Supergrass
0
2K
Member Avatar for RazorRamon

@karthik , yes. and also you can write like this simply.. [CODE]SELECT username, timestamp, topic FROM hotspots GROUP BY topic ORDER BY id DESC[/CODE]

Member Avatar for karthik_ppts
0
196
Member Avatar for Dorar

HTML - is not a programming language, it is a markup language. you should have a basic understanding of HTMl before you learn CSS. CSS - CSS stands for Cascading Style Sheets, Styles define how to display HTML elements. you should have a basic understanding of HTMl before you learn …

Member Avatar for twiss
0
2K
Member Avatar for srdva59
Member Avatar for naru vaishnaw

After your update query redirect your page to main page. So you have to include this line after your query line (line no : 23): [CODE]header("Location: main.php");[/CODE] If this in not your requirement, Please be more specific.

Member Avatar for divyakrishnan
0
110
Member Avatar for Besherek

for quick info : [url]http://www.daniweb.com/web-development/php/threads/133560[/url] [url]http://www.daniweb.com/web-development/php/threads/178763[/url]

Member Avatar for Stefano Mtangoo
0
303
Member Avatar for gonidelux
Member Avatar for abhi10kumar

hey check this thread : [url]http://www.daniweb.com/web-development/php/threads/178181/813344#post813344[/url] and also this tutorial: [url]http://phpcreating.blogspot.com/2010/07/create-dynamic-subdomain-using-mod.html[/url] [url]http://www.reconn.us/content/view/46/67/[/url]

Member Avatar for Shanti C
0
51
Member Avatar for saikishore

first,create a table according to your requirements... then if there any problems occured,then post erros,somany will help you... if you dont have an idea about creating table...see this:[url]http://www.tizag.com/mysqlTutorial/mysqltables.php[/url]

Member Avatar for Daulat007
0
943
Member Avatar for Arthi Raman

Or you can use [COLOR="Red"]&nbsp;[/COLOR] as the above seems javascript code. I am sorry if its not help you.

Member Avatar for Shanti C
0
102
Member Avatar for veledrom

restrict your query with the name of your entries and show name is already existed in database like: [code=php] $qry1="SELECT * FROM `yourtable` WHERE name='".$_POST['name']."'"; $res1=mysql_query($qry1) or die(mysql_error()); $num1=mysql_num_rows($res1); if($num1>0) { echo "the name is already in use"; } if($num1==0) { write your insert query... } [/code]

Member Avatar for diafol
0
179
Member Avatar for justted

add this before you upload your image into a folder... [code=php] $name=time(); $target = "photos/"; $target = $target .$name. basename( $_FILES['photo']['name']); [/code]

Member Avatar for Green-z
0
5K
Member Avatar for rrlogu

I think this error is not because of your code, it is something else about, try to google on it for fixing up: Click here [URL="http://www.google.co.in/search?hl=en&client=firefox-a&hs=CHv&rls=org.mozilla%3Aen-US%3Aofficial&q=500+Internal+Server+Error+php&aq=f&aqi=g4g-m3&aql=&oq=&gs_rfai="]500 Internal Server Error php[/URL]

Member Avatar for rrlogu
0
278
Member Avatar for LWS

like this: [CODE] $imagecontent = $row[content]; header("Content-type: .$row[type]."); print $imagecontent ;[/CODE]

Member Avatar for trueedmar
0
2K
Member Avatar for sanjay11
Member Avatar for jmalbornoz

Welcome to daniweb Jose. Hope you update your knowledge here.

Member Avatar for e-papa
0
107
Member Avatar for smith09

Now internet is a friend. Later its depends on our way(good/bad) of browsing.

Member Avatar for savis1
-6
823

The End.