841 Posted Topics

Member Avatar for yasmena

[QUOTE=xan;698440] [code=php] <? $currentFile = $_SERVER["SCRIPT_NAME"]; $parts = Explode('/', $currentFile); $currentFile = $parts[count($parts) - 1]; if($currentFile == 'admin.php') { //put JS code here } ?> [/code] [/QUOTE] Instead we can use simply: [code=php] $currentFile=basename($_SERVER['PHP_SELF']);[/code]

Member Avatar for R0bb0b
0
132
Member Avatar for mohammed2raja
Member Avatar for mohammed2raja

put this [code]<img src="downArrow.gif">[/code] in [code]<a href...></a>[/code] and then use onclick function.....

Member Avatar for Shanti C
0
109
Member Avatar for pletch99
Member Avatar for sri28

[url]www.w3schools.com[/url] is ever best for beginners.... And all the best to you for your programming...

Member Avatar for peter_budo
0
482
Member Avatar for mohammed2raja

check these urls: [url]http://www.java2s.com/Code/JavaScript/Development/ProgressBar1.htm[/url] [url]http://www.javascriptkit.com/script/script2/progressbar.shtml[/url] [url]http://www.ebusinesshelpcenter.com/sitetools/process-progress-bar-free-javascript.php[/url] [url]http://www.knowledgebase.vunet.us/web/progressbar.html[/url] [url]http://www.webappers.com/2007/07/31/webappers-simple-ajax-progress-bar-with-css/[/url]

Member Avatar for Shanti C
0
135
Member Avatar for servis

hello servis... the following function will get your page name: [code=php] $currentFile = $_SERVER["PHP_SELF"]; $parts = Explode('/', $currentFile); $pagename=$parts[count($parts) - 1]; echo $pagename; [/code] And then, compare your required page name with $page name by using if condition, then make your table get highlighted... by this: [code=php] <? if($pagename=="index.php"){?> <li><a …

Member Avatar for Shanti C
0
310
Member Avatar for php2sheik

have you checked [URL="http://lijinjoseji.wordpress.com/2008/03/31/possible-solutions-for-jdbc-sql-server-connection-problem"]these[/URL]...

Member Avatar for Shanti C
0
134
Member Avatar for ayshasherilps

provide us with appropriate code... or check these urls: [url]http://www.daniweb.com/forums/thread134714.html[/url] [url]http://www.wellho.net/solutions/php-example-php-form-image-upload-store-in-mysql-database-retreive.html[/url]

Member Avatar for R0bb0b
0
130
Member Avatar for shai_chinnu
Member Avatar for ocbphoto

use [B]PHP String Functions[/B] to do this... take a look at [URL="http://www.w3schools.com/PHP/php_ref_string.asp"]this[/URL]

Member Avatar for ocbphoto
0
126
Member Avatar for bear24

Try this: [code=javascript] <html> <head> <script language="javascript"> function refreshpage() { window.location.reload(); } </script> </head> <body> <form action="" method="" name="" onsubmit="refreshpage();"> <input name="submit" type="submit" value="submit"> </form> </body> </html> [/code] or [code=html] <input type="submit" value="Change Image" onclick="history.go(0)" /> [/code] "history.go(0)" takes you to the current page in IE's history, in other words, …

Member Avatar for bear24
0
124
Member Avatar for phpsnook

check this url: [url]http://www.xfunda.com/index.php?option=com_content&view=article&id=69:printable-document-generation-with-php&catid=41:php&Itemid=44[/url] [url]http://www.europeanexperts.org/question/954.html&lazone=PHP&c=2664[/url]

Member Avatar for Shanti C
0
44
Member Avatar for ocbphoto

You can store them with comma separated... And retrieve them with implode and explode functions... And tel me , by which reason you are trying to store multiple image paths into single field...

Member Avatar for Shanti C
0
491
Member Avatar for ajfoucault

[QUOTE=ajfoucault;696884] This community more than exceeds my expectations. I expect to abide by the rules, find lots of useful information that will allow me to improve and enhance my abilities, and I also hope to someday be able to give back what the community has given me. Thank to all …

Member Avatar for Shanti C
0
48
Member Avatar for mangel.murti
Member Avatar for dharam_05

Truncate 1.Truncate Can be DDL Command. 2.it cannot be rollback. 3.we cann't use Where clause. 4.truncate=delete+commit so we cann't rollback. 5.truncate delete all record from the table. 6.truncate is a DDL command and cannot be rollbackand all memory space is released back to server. 7.speed faster. 8.do not chcek constraint. …

Member Avatar for Shanti C
0
112
Member Avatar for Sheridan

hello try this: [code=html] <FORM> <INPUT type="button" value="Click here to go back" onClick="history.go(-1)"> <INPUT type="button" value="Click here to go forward" onClick="history.go(1)"> </FORM> [/code]

Member Avatar for Shanti C
0
159
Member Avatar for chennaiaras

[QUOTE=anuj576;695865]What is the "binlog" option????[/QUOTE] see this: [url]http://dev.mysql.com/doc/refman/5.1/en/binary-log.html[/url]

Member Avatar for Shanti C
0
83
Member Avatar for anuj_sharma

yes , you can write joins to get your desired details... [code=mysql] select l.user_name,l.password,u.fname,u.lname,u.address from login_table as l,user_table as u where l.user_id=u.user_id; [/code]

Member Avatar for Shanti C
0
71
Member Avatar for johnwayne77

yes, if you put your order_id in session, after order is completed,then make your session destroy... then you can write that query as: [code=php] select product_id from orders where order_id='".$_SESSION['sess_order_id']."' [/code] So, this will not disturb any other orders...

Member Avatar for Shanti C
0
74
Member Avatar for anuj_sharma

[QUOTE=peter_budo;696077] with PHP you need to do lot of checking and set up many rules to prevent injections.[/QUOTE] Need more information on this.....

Member Avatar for Shanti C
0
90
Member Avatar for php2sheik

Try this: [code=php] /* To send HTML mail, you can set the Content-type header. */ $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; /* additional headers */ $headers .= "To: Mary <mary@example.com>, Kelly <kelly@example.com>\r\n"; $headers .= "From: Birthday Reminder <birthday@example.com>\r\n"; $headers .= "Cc: birthdayarchive@example.com\r\n"; $headers .= "Bcc: birthdaycheck@example.com\r\n"; /* …

Member Avatar for mexabet
0
86
Member Avatar for bear24

i have modified your code.. and its working now: [code=php] <?php $host="localhost"; // Host name $username="root"; // Mysql username $password="1234"; // Mysql password $db_name="opulent_online1"; // Database name $tbl_name="users"; // Table name // Connect to server and select databse. mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); if($_SERVER['REQUEST_METHOD']=='POST') { if(isset($_POST['check_compare'])) …

Member Avatar for bear24
0
131
Member Avatar for Shanti C

Hello guys... Please give me any information or links about web development certification exams, which is in php,java script,html, css.... Thanks shanti

0
44
Member Avatar for mohammed2raja

i think you can't use a php variable in a html file... If you want send some value from php file to html file, then put it in hidden variable at php file , and send it to html file..

Member Avatar for mohammed2raja
0
143
Member Avatar for mohammed2raja

yes like this: [code=php] window.location.href='updateReg.php?idValue='+idValue+'&idValue2='+idValue2; [/code]

Member Avatar for Shanti C
0
119
Member Avatar for mattyb15

i think you are not complete with your posts..... Please provide your thread clearly...

Member Avatar for Shanti C
0
243
Member Avatar for nikesh.yadav

hello nikesh... that image having a back ground image is same for all... and the text (name,posts,solved threads) will coming from database and also an image of ours(avatar)... i think nothing hard to do this....

Member Avatar for nikesh.yadav
0
153
Member Avatar for NLCGraphics

hello try this instead of your 87th line: [code]if(!empty($_POST['master_id'])) [/code]

Member Avatar for NLCGraphics
0
578
Member Avatar for donkeydal

hello, here i have written js code for validating your unit field and radio buttons... and write remaining code by your self.... [code=php] <script type="text/javascript"> function formValidator(){ var d=document.valform; if(trimstr(d.unitnum.value)=="") { alert("Please enter a valid unit number"); d.unitnum.focus();return false; } if(d.campus1.checked==false && d.campus2.checked==false && d.campus3.checked==false) { alert("Please check atleast one …

Member Avatar for essential
0
90
Member Avatar for vssp
Member Avatar for mwasif
0
107
Member Avatar for vaishalinagare

hello dickersonka and pritaeas... Please give clear explanation about mysql indexing...how to use?? Thanks in advance...

Member Avatar for pritaeas
0
65
Member Avatar for saikishore
Member Avatar for Shanti C
0
61
Member Avatar for baltazar
Member Avatar for NLCGraphics
Member Avatar for Shanti C
0
106
Member Avatar for Aussi3ies
Member Avatar for anuj_sharma

hello anuj.. if you want to store images into your database... Its very best thing to store image path to database and store image into a folder.... Then retrieve that image whanever you want... For this follow this tutorial: [url]http://www.php-mysql-tutorial.com/php-mysql-upload.php[/url]

Member Avatar for Shanti C
0
87
Member Avatar for edoal

refer : [url]http://www.tizag.com/mysqlTutorial/[/url] And assume some columns to fulfill your requirement...and then start creating database on that fields...if changes required ,then change your database according to your application need..

Member Avatar for MVied
0
105
Member Avatar for siriyal

Web 2.0 is really starting to mean a combination of the technology (like AJAX) allowing the customers to actually interact with the information. Web 2.0 is starting to mean the situation where amateur writers and developers are able to create applications and Web sites that get more credibility than traditional …

Member Avatar for MVied
0
94
Member Avatar for odysseous

Export one table, then import it in the other database.... If you are using PHPMyAdmin then follow the below: OK. For example, database name: db1 and db2 The table name is tb. Export table 1) Use phpMyAdmin, select db1 2) Click Export 3) Select db table 4) unselect Structure 5) …

Member Avatar for dickersonka
0
209
Member Avatar for hidash_in

see this link will teach you: [url]http://www.c-point.com/JavaScript/articles/file_access_with_JavaScript.htm[/url]

Member Avatar for Shanti C
0
217
Member Avatar for Shanti C

Hello all.. Can anybody clearly explain about web 2.0??? And tel me about mashup also....

Member Avatar for nikesh.yadav
-1
541
Member Avatar for Madawa

have you tried this?? uksort — Sort an array by keys using a user-defined comparison function.. or ksort See this for reference: [url]http://in.php.net/manual/en/function.uksort.php[/url]

Member Avatar for nikesh.yadav
0
101
Member Avatar for Silvermice

i think this line should not have two css paths.. [code] <link rel="stylesheet" type="text/css" href="<?php echo PATH_CSS; ?>main.css" /> [/code]

Member Avatar for Shanti C
0
575
Member Avatar for vssp
Member Avatar for ionutz
Re: hey

Yes... If you take good points from this site to solve your problem,you can be more smart in your programming..may be that will give you the chances in your life as a good programmer... so browse daniweb to get smarter... I really enjoyed and got good tips,solutions here... So keep …

Member Avatar for Ezzaral
-1
135
Member Avatar for yuvrajsinghshak

No it is not possible. this is due to limitations of the upload capabilities of the web browsers. You can upload just one file at the time from each Form File Field control you place. So you can have 5 File Fields on your form - then 5 files can …

Member Avatar for MVied
0
286
Member Avatar for queenc

you just create a table with column like view.. the increment that column every time user visited your site like: [code=php] if(isset($_GET['view'])) { $r="update viewtable set views=(views+1) "; $r1=mysql_query($r); } header("location:yournextpage.php"); [/code] and use this: [code=html] <a href="www.yousite.com?view" > [/code]

Member Avatar for MVied
0
159
Member Avatar for Shanti C

Hello... Hope i will get right answers here... One day i have found that ,some of my web page content changed by unknowns . I really shocked about that.. Can any know how to prevent our web pages content to be changed and how is it possible??? Thanks in advance.. …

Member Avatar for Shanti C
0
82

The End.