- Upvotes Received
- 5
- Posts with Upvotes
- 5
- Upvoting Members
- 5
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
17 Posted Topics
**Yes, you can include multiple files in PHP Code.**
Hello, you can use javascript window.print method to print web page using php and javascript. I am using following php example to print Visitor Card. Example:[Print page in php](http://rajeshstutorials.blogspot.in/2012/11/print-web-page-using-php-javascript-code.html)
**Check Following Query: ** INSERT INTO webapp1.App1_invoice(transno, amount, subject)(SELECT transno, amount, name FROM webapp2.App2_invoice WHERE transno NOT IN ( SELECT transno FROM webapp1.App1_invoice ))
Check below code: <?php if ($GET['msg']!="") { $err = urldecode($_GET['msg']); echo $err; } ?>
Hello, use below code: $url="pendig_tracker_time.php"; if($success) { echo "<script> popitup('$url'); </script>"; }
Hello, Just declare **$found** variable above while loop..as currently if records not found in Query..you are geting error. use below code: <?php **$found=false;** while($row = mysql_fetch_array($result)) { $found = true; echo "Character/Alias: " . $row["CharName"] . "<br>Created: " . $row["CharBorn"] . "<br>Game: "; if ($row["CharGame"] == '0') { echo "None"; …
Hello, [Object Oriented Programming in PHP](http://rajeshstutorials.blogspot.in/p/object-oriented-programming-interview.html) This article introduces Object Oriented Programming (OOPs) in PHP with examples. I hope this article will help you to understand OOPs concepts.
**Example:Send Mail using PHP ** $message1="<table cellpadding=2 cellspacing=0><tr valign='top' >Test</tr></table>"; $semi_rand = md5(time()); $email_from ="[email protected]"; // Who the email is from $email_subject = "Test"; // The Subject of the email $email_message = $message1; $email_to =" [email protected]"; // Who the email is to $headers = "From: ".$email_from. "\r\n"; $headers .= "Content-type: …
It is very easy to **Change background color on radio select**. Please check below script <script> $("input").click(function() { $("div").css('background','white'); var divid=$(":checked").val(); $('#'+divid).css('background',blue); }); </script> **Source**:[http://rajeshstutorials.blogspot.com/2012/06/jquery-change-background-color-based-on.html](http://rajeshstutorials.blogspot.com/2012/06/jquery-change-background-color-based-on.html)
Hello, use **PHP addslashes function** The addslashes() function returns a string with backslashes in front of predefined characters. addslashes($message);
you have to write **AJAX function** on **onchange event** to display dynamic data from database. **Please check following example:** <script> function showDetails(id) { if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && …
**Hello, Just include below code after <?php tag...** $ebits = ini_get('error_reporting'); error_reporting($ebits ^ E_NOTICE);
**ensure that session_start() is literally at the very top of your script.**
Hello, **Please check follwing code:** <?php $sql_display_words="SELECT * FROM Data1stWord"; $result=mysql_query($sql_display_words,$conn); // Add this line while($row = mysql_fetch_array($result)) { $ID = $row['ID']; $Word = $row['Word']; ?> <td><?php echo $ID ?></td> <td><?php echo $Word ?></td> <?php } ?>
**Please check following Query..it's working** SELECT (SELECT plast FROM table1 WHERE pdate = DATE(NOW()) AND STKNO = 10) AS `weighted index`, (SELECT plast FROM table1 WHERE pdate = DATE(NOW()) AND STKNO = 11) AS `price index` FROM table1 GROUP BY pdate
**isset() returns TRUE if a value is NULL. You can use below code for string validation** <?php if($_POST['user']!="" && $_POST['title']!="" && $_POST['body']!="") { echo "Insert"; exit(); } ?> <form action="test.php" method="post"> <input type="text" name="user" id="user" /> <input type="text" name="title" id="title" /> <textarea name="body" rows="20" cols="60">
You can use CSS height property. The height property sets the height of an element. e.g. height:100px;
The End.
rajengg