841 Posted Topics
Re: [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] | |
Re: use this: [code] if(empty($_GET)) { //code } [/code] | |
Re: put this [code]<img src="downArrow.gif">[/code] in [code]<a href...></a>[/code] and then use onclick function..... | |
Re: [url]www.w3schools.com[/url] is ever best for beginners.... And all the best to you for your programming... | |
Re: 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] | |
Re: 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 … | |
Re: have you checked [URL="http://lijinjoseji.wordpress.com/2008/03/31/possible-solutions-for-jdbc-sql-server-connection-problem"]these[/URL]... | |
Re: 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] | |
Re: 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] | |
Re: 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, … | |
Re: 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] | |
Re: 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... | |
Re: [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 … | |
Re: 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. … | |
Re: 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] | |
Re: [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] | |
Re: 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] | |
Re: 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... | |
Re: [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..... | |
Re: 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"; /* … | |
Re: 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'])) … | |
Hello guys... Please give me any information or links about web development certification exams, which is in php,java script,html, css.... Thanks shanti | |
Re: 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.. | |
Re: yes like this: [code=php] window.location.href='updateReg.php?idValue='+idValue+'&idValue2='+idValue2; [/code] | |
Re: i think you are not complete with your posts..... Please provide your thread clearly... | |
Re: 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.... | |
Re: hello try this instead of your 87th line: [code]if(!empty($_POST['master_id'])) [/code] | |
Re: 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 … | |
Re: [code=mysql]select * from table where c_id like '% 4%';[/code] | |
Re: hello dickersonka and pritaeas... Please give clear explanation about mysql indexing...how to use?? Thanks in advance... | |
Re: [code]echo $_POST['sel_id'];exit;[/code] see what it prints... | |
Re: 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] | |
Re: 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.. | |
Re: 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 … | |
Re: 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) … | |
Re: see this link will teach you: [url]http://www.c-point.com/JavaScript/articles/file_access_with_JavaScript.htm[/url] | |
Hello all.. Can anybody clearly explain about web 2.0??? And tel me about mashup also.... | |
Re: 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] | |
Re: 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] | |
Re: 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 … | |
Re: 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 … | |
Re: 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] | |
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.. … |
The End.