39,393 Topics
![]() | |
Hi, Which programming language is better PHP or ASP.Net Thanks. ![]() | |
Hi Everyone, I have the following prepared statement and I am having problems displaying data from my test db Can someone help me out please. $STM = $dbh->prepare('SELECT * FROM tbl WHERE var = :lsecure'); $STM->bindParam(':lsecure', $var); $STM->execute(); $count = $STM->rowCount(); $row = $STM -> fetch(); if($count > 0){ foreach($results … | |
Can you tell me what's the right way to benchmark script ? I've profilled it by using Xdebug, but the result always changes And, when i use memory_get_usage, it gives me a definite result.. But, is it right for me to say that the less memory it use, the faster … | |
Dear Friends iam facing a problem in the pagination. It was working fine in my offline wamp server when i moves it to the online it was showing Warning: mysql_real_escape_string() expects parameter 2 to be resource, integer given in /home/pps/public_html/news_and_events.php on line 10 Please help me I have gone through … | |
Hello every one, I want to select a image and preview an image before I click button Upload, I can do it and it done but I want to have a event cancle select this file by click on <a></a> or click on button, it may be look like post … | |
Im new to PHP, i just want to know if theres any rule in php in terms of single statement multiple lines. for example in VB.Net we uses "&_"(w/o the quote) to tell vb.net that it is a single statment and it has a continuation. is there any in php? … | |
Hi All, When i am trying to open any php file by Macromedia Dreamweaver 8, i am getting an error. " Please reinstall your software" A problem was detected with your application. Please reinstall this software to correct the problem" I had reinstalled and installed it , but issue still … ![]() | |
Dear firnds, I want to upload my php Forms and database...I am using godaddy.com i have my login and pwd.... I uploaded Survey project Php files and database.please,check my conn.php file code is below <?php $username="mydbphp@182.50.131.34"; $password=""; $server="166.62.8.51"; $db="mydbphp"; $conn=new mysqli($server,$username,$password,$db); if(!$conn){ echo "Connection not established"; } ?> please, suggest … | |
Hi all, I want to make a Auto Complete Text Input like a list, it similar or the same as form post status of facebook in below picture, I known it can make by ajax and jQurey, so who know link demo, link guide, or example to make it, may … | |
I need to know how many people are interested in learning how to write a desktop application using PHP? If I get enough interest on this topic, then I will write a simple tutorial on how its done. We (veedeoo and me) were experimenting on Desktop apps utilizing the [Daniweb … ![]() | |
Hi its me again =), See the code below: <style> td{ width:150px; } </style> . . . echo'<table> <tr> <td>TITLE</td> </tr> </table> . . . Im trying to style the <td> width in css but php doesnt recognize it. I've also tried this <td style="width:150px">TITLE</td>. Do you have any idea … | |
Hello, I am trying to control the table width for the form text and input box. I can't even control the main table width with this code: <table border="1" style="width: 10%;"> the width is still too large. I cannot make it smaller. Evenif I change the percentage or pixels into … | |
hya can someone take a look at this coding its for view profile and it has a on/offline on it when i log in it shows offline and nothing echos through see pic  <?php include("config/db_connect.php"); $profid = $_GET['profid']; // code for user details $query = mysql_query("select * from … ![]() | |
Hello guys does any one knows about the wordpress. I need to create a referal program in wordpress like someone wants to register on the website and been reffered by someone he or she would be required to provide a referall code so we would be able to see who … | |
how to display this charactor in page Schönefeld . it display like Sch�nefeld ![]() | |
Hi, I am trying to fetch username from session variable of one php page to another php page. This below code fetch username from login page <?php $uname = $_GET['uname']; @session_start(); if($_SESSION[$uname]) { ?>.... //Remaining Code When I click submit button to go to my next php page I want … | |
This is regarding the sending E-mail using php and OUTLOOK. I have a "php page" which collect output from previous page. once clicking on send button, it should open my OUTLOOK client, which should have collected data as the body of email. | |
Hello , I have this error Deprecated: Function split() is deprecated. How can i resolve this problem. I use explode and preg_split but the problem persist $add=long2ip($result["ip_src"]); $mask="24"; $ipNetmask = $add."/".$mask; list($ip, $netmask) = split("/", $ipNetmask ); $ip_elements_decimal = split("[.]", $ip ); $netmask_result=""; for($i=1; $i <= $netmask; $i++) { $netmask_result … | |
re, I required multiple list(checkboxes) download option in core Php. I have generated web app using core Php. There I have written report generation code. Pls help me to write the download script. | |
Dear friends, I am developin g online survey form. Please, suggest me i have a question.and three options for answer.for example-: What is your favirite Country? A-Pakistan B-India C-USA now i put redio buttons against them.Users will come and vote for countries. and he can view result after vote that … | |
<html> <head> </head> <body> <div align=center> Login <form name="form1" method="post" action="b.php"> <div align="center"> <table border="1"> <tr> <td width="120">Username :</td> <td width="144"><input name="user" type="text" id="user"></td> </tr> <tr> <td width="120">Mot de passe : </td> <td width="144"><input name="password" type="text" id="password"></td> </tr> </table> </div> <p align="center"> <input type="submit" name="Submit" value="Enter"> </p> </form> </body> </html> … | |
hi all.. using .htaccess how to rewrite this http://mydomain/page-name/ to http://mydomain/page-name.html ? pls help me to solve this... tnx in advnc. | |
I manage to display data using below query that will show value for each month. How to calculate average value starting july onwards(based on user selection). Let say the value for element 'A' are Jul=66, Aug= 65, Sep=87. If user select Aug then the average is 65.5 and if user … | |
I want to disable the user for 6hrs when he inputs the wrong password 3 times i'm using mysql... please help me... and this is my usercheck.php [code=php] <?php session_start(); include("config.php"); if (isset($_POST['sub'])) { $myusername = $_POST['txtusername']; $mypassword = $_POST['txtpassword']; $name = stripslashes($myusername); $password = stripslashes($mypassword); $myusername = mysql_real_escape_string($name); $mypassword … ![]() | |
Hello, I want to print a letter from a html page. But within the letter, I want it to contain the name of each student on the database. It is the same letter but I want to print/download it having each student's unique name. ![]() | |
how to make php security in the url with the get method for example as media.php?hal=detail&id=1 | |
Hello, I want to get checkbox depending on choice dropdown list. this is my code <html> <head> <link rel="stylesheet" type="text/css" href="style.css" media="all" charset="utf-8"/> <title>APPLICATION</title> <script type="text/javascript"> function changerub(rubrique){ var divIds= new array('agent'); for(var i=0; i<divIds.length;i++){ document.getElementById(divIds[i]).style.display = (i==rubrique)?'block':'none'; } } </script> </head> <body> <?php $cnx=mysql_connect('localhost','root','') or die ("Erreur de connexion"); … ![]() | |
Hi ... I wrote a script to send a feedback form to an email. Here's the script below; //PHP CODE: <?php session_start(); $submitted = FALSE; ini_set("SMTP","mail.sitecghana.com"); if (isset($_POST['send_message_button'])) { $submitted = TRUE; // The form has been submitted and everything is ok so far… $name = htmlspecialchars($_POST['name'], ENT_QUOTES); $email = … | |
I want to put a remember me button on my website in the login page... Any good example? |
The End.