39,393 Topics
![]() | |
Well, it has recently been bugging me that I have 8 years of working with PHP under my belt and not once have I tried to implement a custom solution to integrate PayPal into any of my ecommerce projects. I've worked with a lot of PCI API's from different providers … | |
Want to show div on front end wordpress website with wordpress plugin.. If User activate the plugin then div should show on the front side of the wordpress .how to add ? Used add_filter('thecontent') and some more. nothing is working . | |
Hello, I am creating an elearning that tries to record date and time and I am looking for an automated system to do that so that the user won't enter any other information: As far as now, I only uses Date Time [ input textbox ] Is there other way … | |
<?php session_start(); ?> error_reporting(E_PARSE); include "connection.php"; $User_ID=$_SESSION['UserId']; $query = mysql_query("SELECT * FROM Users WHERE UserID='$User_ID'"); $row = mysql_fetch_array($query); $filename=$row['PicUrl']; $username=$row['UserName']; $fName=$row['FirstName']; if(isset($_SESSION["UserName"])){ if(!empty($filename)){echo '<img src="'.$filename.'" align="left"width="150px" height="100px"/>';} echo $fName; echo"<li><a href='logout.php'>Click here to Logout.</a></li>"; echo"<li><a href='user_update.php'>edit your account detail</li>"; } if(empty($_SESSION['UserName'])){ echo"<li><a href='login.php'>login</a></li>"; echo"<li><a href='register.php'>Sign Up</li>"; } ?> </li> </ul> … | |
Hi, I make a delete page with php to delete clients from clients table. With this page I try to delete images from gallery table. for example I wish to delete client ABC from clients table and it have three images in gallery table. here under I paste the code … | |
I have got some piece of code to send multiple attachments through mail function in php. The mail with attachment will be sent if there is only one attachment. But mail sending fails if add two or more files in the array. This is my code // array with filenames … | |
Hi All , am geting this error Parse error: syntax error, unexpected ';' in /home/a2856241/public_html/plus1.php on line 10 whith this code, <?php $con=mysqli_connect("host1","djslim","opensaysme","missionbase1"); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } mysqli_query($con,"UPDATE table1 SET score=score+1 WHERE id=['$id'])"; mysqli_close($con); header('Location: ./LaunchControl.php'); exit; ?> … | |
Hello, I wonder why I get this error: Parse error: syntax error, unexpected '&&' (T_BOOLEAN_AND), expecting ')' in C:\xampp\htdocs\squprime\registration1.php on line 65 line 65: if(!empty($stu_fname && $stu_lname && $stu_email && $stu_telp && $stu_skype)){ Thanks before. | |
Hi, I'm trying to check the format of the string with `preg_match()`. It has to accept only the `(zero or more of ,.* )(exactly 9 or 5 digit number)(1 or more of ,.* )(postive integer <= 4digits)(zero or more of ,.* )` format of strings. Here, is what I tried: … ![]() | |
dear i lost my website cpanel password can any one help me but iam using webemail it is possible to recover through this? | |
class phpParser{ public $pageString; //some other properties and methods class software{ private $baseName; private $url; private $html; public initiateValues (){ $this->html = new phpParser (); } } // Now how to access properties and methods of phpParser class through software class member $html (which is actually object // of phpParser … | |
I want to insert a URL inside an echoed table row. Here is the URL and table column: <a href="modify-user.php?id=<?php echo $row["id"]; ?>">Modify</a> Here is the table column: printf("<td class=\"listusers\">" "</td>"); Thanks for your help in advance. | |
Hi Friends, I am using this code to upload image but it seems my call is not getting inside function. I put some echo commands for debugging. all I get output is after selecting file "hello entering function". but do not get other echo command print. Neither insert command is … | |
i have an issue, my code works wonderfully for the pupose its designed for however for security reasons i need th epages page my login page to have either randomized links or just links that cannot be bookmakred too so that one can bypass the login page. My login page … | |
Hello, I am getting an error <?Php include 'connect.php'; $userName = $_POST['Username']; $firstname = $_POST['First Name']; $Surname = $_Post['Surname']; $email = $_POST['Email Address']; $password = $_POST['Password']; $gender = $_POST['Gender']; $dob = $_POST['DOB']; $query_insertintotable = "INSERT INTO User (username,Password,First Name,Surname, Gender, DOB, Email Address) VALUES ('$userName','$password','$firstname','$userName', '$gender', '$dob', '$email)"; $query = … | |
Hi there, i have recieved this notice Warning: Header may not contain more than a single header, new line detected in C:\xampp\htdocs\a\Student_Edit_Handler.php on line 53 and these are my codes. Kindly help me to fix this. <?php session_start(); $session_id = $_SESSION['user_id']; if($session_id == null){ header("location:Student_Edit.php"); die(); } include 'Connect.php'; $flag … | |
Hi, I've developed a php web-app recently in english language. Now, I want to add support to other languages. I've googled & found some results like using `gettext()`,storing in `.ini` files etc. This is good for static websites. But, the thing here is I want to display some data from … ![]() | |
move_uploaded_file not working. althought the query works fine. newbie to php & daniweb :) . if($page=="Image") { $uploads_dir = '/gallery'; $tmp_name = $_FILES["t1"]["name"]; $name = $_FILES["t1"]["name"]; move_uploaded_file($tmp_name, "$uploads_dir/$name"); $insert="insert into gallery values('','$tmp_name')"; $query=mysql_query($insert); if($query) { header("Location:gallery.php"); } else { mysql_error(); } } | |
Hey guys, i found this piece of code that is suppose to read a port on my server and write to a .txt file the gps data it get gets. am receiving nothing, am not not sure what the problem is, also am new to gps and php socket programming... … | |
Hello, I need a little bit of assistance with parsing data from an html using xpath. Please indulge me for a moment as I attempt to explain my problem and subsequently my question: The html code from which I am parsing data is below. I would like to specifically parse … | |
I have created a chat program that is working fine on localhost but in the live server its not working fine, its sent response or text very late, So I don't know what code should I post here to get know whats the problem or how it will be solved. … ![]() | |
Through CURL Request find meta keywords, meta description, title tag, IP address, Load Time, HTTP Status, Internal & External Links of any URL. | |
Hello, I am trying to create a web message features. This is the code that I have done so far: messages.php <?php //LOAD INBOX MESSAGES $result = mysql_query("SELECT * FROM messages WHERE to_stu_username='".$_SESSION['username']."' ORDER BY date") or die(mysql_error()); ?> <table id="admintable" border="1" cellpadding="2" cellspacing="0" width="900px"> <tr> <b>Inbox</b><br><br> <th>From</th><th style="width:500px;">Messages</th><th>Date</th> </tr> … | |
My code is here $location="Delhi,NOIDA"; $cheack2 = ""; $arr=array(); $flag = false; if(isset($skill)&&$skill != ""){ $query_arr = explode(",",$skill); foreach($query_arr as $query_arr2) { $arr[] = "job_keyskills like '%$query_arr2%' "; } $cheack2=implode(" OR ",$arr); $flag =true; } if(isset($skill)&&$skill != ""){ if($flag){ $cheack2.= "OR "; } $cheack2.="MATCH (job_keyskills,job_title) AGAINST ('+$skill' IN BOOLEAN MODE) … | |
Good evening I have this code in PHP that serves to list the latest topics in a forum (IPBOARD): <?php // CONFIGURAÇÕES DE CONEXÃO $connect = mysql_connect("localhost","root","senha") or die (mysql_error()); $select = mysql_select_db("forum") or die(mysql_error()); // URL DO FÓRUM $url = "http://endereço do forum/"; // LIMITE DE LINKS QUE IRÃO … ![]() | |
Hi Sirs , I would like to ask assistance regarding this topic i have a GUI which is Email Address : Password: what will happen : when i tried to use my Google account it will allow user to access next page if google account is not valid they can't … | |
Having two Problems shown below: 1. **Want to send post form data to other domain area and receive response from that domain page**. (Ajax not working for other domain) 2. Show ads div between worpress post area through plugin. how can i make this plugin.? ![]() | |
Here is the page: <?php include( "mypath.php" ); include( "{$filepath}/config/clientdbconnect.php" ); if ( ------------------------- ) { #exit( "Security Violation" ); } include( "header.php" ); $sqle = "select * from helpconfig where cid = '1'"; if ( !( $resulte = mysql_query( $sqle ) ) ) { exit( mysql_error( ) ); } … | |
Hi every one. i have built an online fleet management app in php/mysqli successfully. I now have to add a gps device to send lon,lat, speed and so on to online app. I did some reading on php tcp socket listener, but am not very clear. Do any one have … | |
i want to display 3 data per row and n number of rows. someone help me to do this. <div class="top-box"> <?php include("config.php"); $sub2_category_id = $_GET['sub2product_id']; $sub2_category_name = $_GET['sub2product_name']; echo '<h2 class="head">'.$sub2_category_name.'</h2>'; $sql = mysql_query("SELECT p.`product_id`, p.`brand_name`, p.`brand_path`, p.`sub2_category_id`, p.`sub_category_id`, p.`main_category_id`, p.`date`,ba.`brand_amount_id`, ba.`available_pack`, ba.`mrp_amount`, ba.`our_price`, ba.`product_id` FROM `product` p JOIN … |
The End.