39,323 Topics
| |
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 ![c6bd41d477df56cf7543dd36a623ada0](/attachments/large/4/c6bd41d477df56cf7543dd36a623ada0.png "c6bd41d477df56cf7543dd36a623ada0") <?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? | |
Hi All I have a simple add to shortlist function using php and would like to add a success Alert message so that users know that the item was added to the shortlist. Ive tried the following code without success. // check if the item is in the array, if … | |
Hey guys, <?php $url = "https://api.twitch.tv/kraken/streams/greatbritishbg"; $json = file_get_contents($url); $json = json_decode($json); var_dump($json); foreach($json->streams as $stream) { echo $stream->channel->stream . '<br />'; echo $stream->channel->display_name . ' is playing ' . $stream->channel->game . '.<br />'; echo '<a href="http://www.twitch.tv/' . $stream->channel->name . '">Watch Live</a>'; echo '<hr />'; $status = $stream->channel->stream; } //PSUEDO … | |
Can you help me with this program?. I am trying to insert data into two mysql tables at once. I have two tables: property and personal. <?php define('DB_NAME', 'purchase'); define('DB_USER', 'root'); define('DB_PASSWORD', 'root'); define('DB_HOST', 'localhost'); $connection = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD); if (!$connection) { die('Could not connect: ' . mysql_error()); } … | |
mail is not getting to my inbox. while submit the form am getting message as mail has been sent, but after sending i checked my mail am getting mail in spam,how can i get the mail into inbox. index.html <form method="post" name="sentMessage" action="mail/contact_me.php" id="contactfrm" role="form" enctype="multipart/form-data"> <div class="col-sm-4"> <div class="form-group"> … | |
Hello, I am trying to create a form, yet I wonder why the form does not works like usually: index.php <form action="login.php" method="POST"> <input type="text" class="form" name="email"><br> <div style="margin: -60px 0 0 165px;"><input type="password" class="form" name="password"></div> <div style="margin: 235px 0 0 -125px;"><input type="button" name="submit"></input></div> <div style="margin: -170px 0 0 350px;"><input … | |
Can I create user log in application without starting a new session(without using session_start()). I've created a application where user can log in but session is not created.But everything is working correctly.My application is working under one url.URL is not changing when user navigates.Everyting is happaning behind the scene usign … | |
Hello Anyone, I am new with PHP, I have nearly no experience. I need to update PHP though. I have no idea how to. I have PHP version 5.2.0 and need to update to a newer version. The web server it's used for is also using MySQL and IIS. If … | |
Hi Guys! I'm having problem with uploading the file to the server. This is my code. $path = "Files/01 Admin Procedure/" . basename($_FILES["txtFilename"]["name"]); $x = move_uploaded_file($_FILES['txtFilename']['tmp_name'], $path); //Move file to directory if ($x) { echo "<script>alert('File " . basename( $_FILES["txtFilename"]["name"]) . " has been uploaded!')</script>"; } else { echo "<script>alert('Error … | |
Hello, after migrating from localhost to the server my ckeditor also disabled. I wonder why? At first, I thought maybe because of file path, but my file path appears just fine: input_berita_static.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Squprime</title> <!-- … |
The End.