39,320 Topics

Member Avatar for
Member Avatar for janicemurby

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 …

Member Avatar for diafol
0
282
Member Avatar for UK-1991

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 …

Member Avatar for lorenzoDAlipio
0
137
Member Avatar for arafath077

how to display this charactor in page Schönefeld . it display like Sch�nefeld

Member Avatar for diafol
0
109
Member Avatar for Azii

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 …

Member Avatar for broj1
0
312
Member Avatar for Azii

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.

Member Avatar for broj1
0
1K
Member Avatar for jarmouz

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 …

Member Avatar for jarmouz
0
198
Member Avatar for fireburner29

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.

Member Avatar for matrixdevuk
0
117
Member Avatar for zebnoon

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 …

Member Avatar for zebnoon1
0
325
Member Avatar for CrashDiesel

<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> …

Member Avatar for CrashDiesel
0
149
Member Avatar for amith_ami

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.

Member Avatar for amith_ami
0
132
Member Avatar for Hakim_2

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 …

Member Avatar for broj1
0
183
Member Avatar for bbinais

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 …

Member Avatar for diafol
0
2K
Member Avatar for Ebroxy

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.

Member Avatar for diafol
0
151
Member Avatar for arafath077
Member Avatar for bro_1

how to make php security in the url with the get method for example as media.php?hal=detail&id=1

Member Avatar for veedeoo
0
508
Member Avatar for jarmouz

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"); …

Member Avatar for diafol
0
117
Member Avatar for connoisseur2010

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 = …

Member Avatar for cereal
0
415
Member Avatar for SimonIoa

I want to put a remember me button on my website in the login page... Any good example?

Member Avatar for SimonIoa
0
142
Member Avatar for razar63

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 …

Member Avatar for broj1
0
1K
Member Avatar for bradly.spicer

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 …

Member Avatar for bradly.spicer
0
566
Member Avatar for jorwill.harion

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()); } …

Member Avatar for jorwill.harion
0
415
Member Avatar for malatamil

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"> …

Member Avatar for malatamil
0
308
Member Avatar for davy_yg

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 …

Member Avatar for broj1
0
256
Member Avatar for yavindu

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 …

Member Avatar for diafol
0
285
Member Avatar for Sockoiid

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 …

Member Avatar for cereal
0
108
Member Avatar for xuexue

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 …

Member Avatar for xuexue
0
135
Member Avatar for davy_yg

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> <!-- …

Member Avatar for diafol
0
294
Member Avatar for RobertDecousta

I want to know what is PHP, amd where and how it is used? Please give me the suitable answer to my question.

Member Avatar for RobertDecousta
-1
94
Member Avatar for davy_yg

Hello, I am having index.php file in portal/index.php . My question is: why if I only type portal/ in the url. Is not the file in index.php file that plays instead another file that I have deleted before. The only file that exist in the portal/ is index.php other files …

Member Avatar for cereal
0
96
Member Avatar for gptArun

The End.