38,020 Topics

Member Avatar for
Member Avatar for Kamal_6

while executing the below program i am getting the error "Parse error: syntax error, unexpected '<<' (T_SL) in C:\xampp\htdocs\registration.php on line 5" . can i get some help ?? <?php extract($_POST); include "connection.php"; $link= md5($txtuname); $str= <<<abc account is created click on the activation link <a href="http://abc.com/active.php?$link">click </a> abc; if(mysql_query("insert …

Member Avatar for Gideon_1
0
182
Member Avatar for jonlloydd

I am trying to code a search box that will search though a column in my database. If the search matches the column then that record will be printed in the table below. I am searching on a column that contains the county of a company record. There are no …

Member Avatar for Gideon_1
0
9K
Member Avatar for G_S

Hello everyone. I am trying to make a simple to-do list program using PHP and the MVC pattern. I have managed to make the login page, the model and the controller for managing logins. It is working properly because it can discern if the user exists or not. After validating …

Member Avatar for G_S
0
231
Member Avatar for solomon_13000

I have two modules built by two developers: 1) backoffice 2) reporting However they share a single connection. The problem now is the security aspect. Both modules are independent in their respective folder(s) but they share the same connection. A developer mention that with the current architecture it is impossible …

Member Avatar for cereal
0
250
Member Avatar for opelio4n

HOW CAN I STYLE THE ANCHOR TAG IN ECHO? if(isset($_SESSION['valid'])) { include("config.php"); $result = mysqli_query($conn, "select * from users"); echo "<a href='view.php'>View and Manage Users</a>"; echo "<br/>"; echo "<a href='viewdept.php'>View and Manage Departments</a>"; echo "<br/>"; echo "<a href='viewrep.php'>View and Manage Reports</a>"; echo "<br/><br/>"; echo "<b>Login List:</b><br/>"; echo "<table width='35%'>"; echo …

Member Avatar for opelio4n
0
196
Member Avatar for abhi10kumar

I am inserting a record via Campaign Monitor API; as I am passing below array; why I am getting error: Array( [EmailAddress] => tljljljl@example.com [Name] => Trial test [CustomFields] => Array ( [0] => Array ( [Key] => First name [Value] => trial ) [1] => Array ( [Key] => …

Member Avatar for pritaeas
0
499
Member Avatar for flynismo

Im having problems getting this to work.. What I need to do is scan a directory, and search for all images that belong to the member. Here's the basic process: 1. A member uploads a photo 2. If accepted, the photo is automatically renamed by appending the member's name as …

Member Avatar for diafol
0
490
Member Avatar for AntonyRayan

Hi, In a form, I have 4 select boxes(default), and two text boxes(default). If I click the first (static values) based on that next second(new) select box will come (it has been done by ajax), based on the new select box, I display checkboxes based on the select box values, …

Member Avatar for Gideon_1
0
3K
Member Avatar for nadiam

$username = $_POST['username']; $password = $_POST['pass']; $query = "SELECT id,name,username,password,status FROM users WHERE username = " . $dbh->quote($username); $result = $dbh->query($query); $userData = $result->fetch(PDO::FETCH_ASSOC); $userName = $userData['username']; $hash = $userData['password']; $status = $userData['status']; if($username == $userName) { if(password_verify($password, $hash)) { if($status == 'Request') { echo "<script>alert(\"You have not been activated. …

Member Avatar for diafol
0
282
Member Avatar for King_Of_lords

I want to pass array value directly into the js fucntion which in loop and wanted to retrieve its query string id of selected employee here is code as i said in loop i wanted to pass array value while($row = mysql_fetch_array($res)){ echo "<tr>". "<td> <p><button onclick=func({$row[0]}) >View</button></p> </td>" ."</tr>"; …

Member Avatar for Gideon_1
0
597
Member Avatar for ramsiva

I have array Array ( [0] => 1,2,3,4,5 [1] => 1,2 [2] => 1,2 ) how to remove duplicate elements and i want to single array like Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 [4] => 5)

Member Avatar for ramsiva
0
237
Member Avatar for chrisschristou

hello my friends i have posted this article before but it stil didn't work so so i tried many time different way but i dont see the reason why my menu is not working. in my main page `template.php` here is the content <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"> <head> …

Member Avatar for pixelsoul
0
2K
Member Avatar for Jc

I'm trying to print out form input using getElementById but it doesn't seem to work. Please help. <?php $strhtml = 'DomDoc.html'; // create the DOMDocument object, and load HTML from a string $dochtml = new DOMDocument(); $dochtml->loadHTML($strhtml); // get the element with id="dv1" $elm = $dochtml->getElementById('name'); // get the tag …

Member Avatar for diafol
0
216
Member Avatar for drag

I have array like this stdClass Object ( [0] => stdClass Object ( [field_id] => 10 [value] => 46426 [value_integer] => 0 ) [1] => stdClass Object ( [field_id] => 9 [value] => 1987 [value_integer] => 0 ) [2] => stdClass Object ( [field_id] => 8 [value] => 558/65 [value_integer] …

Member Avatar for diafol
0
275
Member Avatar for hrushi9

How to create simple photo Album in wordpress **Photo Albums Requirements** `albums.php` to listout Albums `gallery.php` to listout images inside selected album 1. Set Album cover 2. hover effects for album (http://tympanus.net/Development/HoverEffectIdeas/) 3. fields to create Albums 4. fields to upload images

Member Avatar for hrushi9
0
232
Member Avatar for hrushi9

I'm Wordpress beginner. Trying to create plugin "Business Directory Plugin". Need Help to complete code. How to get information about business listing? How to get following information, 1. Business Name 2. Business Category 3. Business Description 4. Business Phone Number 5. Business Address 6. Business Email 7. Business Website, if …

0
118
Member Avatar for UK-1991

Hello Experts, I hate PHP when these things comes in front of me every time when i create and insert query I stuck up by viewing everything is ok but not working don't know why. please help me out previewuser.php <?php include_once('includes/header.php'); include_once('includes/session.php'); include_once('includes/functions.php'); include_once('includes/connection.php'); if(isset($_POST["submit"])) { echo add_user(); } …

Member Avatar for pritaeas
0
2K
Member Avatar for Tko_1

Hello so i have this encode/decode script <?php // Encoding key $key = "vns98ogavna5489hverz9np950yhz9gzx89fghjv9pv4598hj"; function encode($string,$key) { $key = sha1($key); $strLen = strlen($string); $keyLen = strlen($key); for ($i = 0; $i < $strLen; $i++) { $ordStr = ord(substr($string,$i,1)); if ($j == $keyLen) { $j = 0; } $ordKey = ord(substr($key,$j,1)); …

Member Avatar for Tko_1
0
234
Member Avatar for AhmedHan

I heard a rumour that there is a program named "PHP Tripod" that does the same thing as PHP, MySQL and Apache. Like "three in one". The reason I am looking for this program is having troubles with Apache. Do you know how can I get this program? I searched …

Member Avatar for cwarn23
0
331
Member Avatar for ribrahim

Hello, I'm using fpdf library to generate pdf invoice. I manage to view the pdf invoice for one item row only. below is the code: $qry = "SELECT invitems.itemId, invitems.invoiceId, invitems.itemNumber, invitems.ChargesID, invitems.itemDesc, invitems.itemAmountO, invitems.itemAmountP, invitems.discountAmount, charges.ChargesTitle, invitems.itemqty FROM invitems LEFT JOIN charges ON invitems.ChargesID = charges.ChargesID WHERE invoiceId = …

Member Avatar for ribrahim
0
2K
Member Avatar for hareeshshinde
Member Avatar for Gideon_1
0
143
Member Avatar for Firmace

Hello Guys.... Im a first year student in web coding. Im making my exam project right now and i really need you guys help for this simple thing :D. In my school we are using PHP, and ofcause im making my menu with a database and php.. Well my problem …

Member Avatar for diafol
0
1K
Member Avatar for Stephano

CODE 1 <input name="input_19" value="Job Seeker" id="choice_19_1" tabindex="19" type="radio"></input> CODE 2 <input id="register_role_job_seeker" type="radio" checked="" value="Job Seeker" name="register_role"></input> Iwant to have code 1 two changed to be code 2, through assigning it in an if statement that i want to place in the functions.php , so that values that are …

Member Avatar for bnmng
0
147
Member Avatar for scorpionz

Hi this is scorpionz I am uploading an excel sheet file using PHP Now the file code is working fine for gif files but not working if i provive xls extension Here is the php main code [code] <?php // include 'config.php' include 'uploadcode.php'; if(isset($_POST['upload_file'])) { $user_file = $_FILES["car_info_file"]["name"]; upload_files($_FILES["car_info_file"]["name"]); …

Member Avatar for SuperGOAT
0
13K
Member Avatar for grakovski

Hello, I search wysiwyg editor with fully support of HTML and PHP. I dont want extra <p> and <b> tags after <?php and before ?>. I prefer to work with PHP to get the content with $_POST. I dont want ajax methods. I test some editors all morning and cannot …

Member Avatar for Gideon_1
1
671
Member Avatar for mattster

Recently I've stumbled on a nice tool that I really quite like, so I thought I'd share it: Personally, I love the power behind PHP. I find it a very simple to use yet possesses the techniques seen in the more complex desktop applications such as Perl/Python/C/C++/C# etc. PHP has …

Member Avatar for Gideon_1
7
1K
Member Avatar for veedeoo

This tutorial is intended for people who are looking for alternative to PHP template engines like smarty, twig, dwoo, TBS, and others. Not all developers are willing to take the extra efforts needed to learn the template engine syntax. Some are just left behind thinking that PHP is a template …

Member Avatar for Gideon_1
6
2K
Member Avatar for CodeAngry

# SEO URL Redirection Basics: TUTORIAL # First you can see/get/use some code here. <?php /** * Redirect the visitor to another URL using a proper status code. * * @param string $URL * @param int $StatusCode * @copyright Claude "CodeAngry" Adrian * @license http://www.wtfpl.net/ */ function RedirectURL($URL = null, …

Member Avatar for Gideon_1
0
550
Member Avatar for Devi_3

$str="james//bond"; $str= mysqli_real_escape_string($con,$str); //insert query after successful insert in database it value shows as "james/bond" how I can insert exact string

Member Avatar for Gideon_1
0
270
Member Avatar for paul-lucas

Hello, I'm looking for the download solution from data on MySql to file .ical aims to import to Outlook Calendar. Do you have something to share with me? Thank a lot.

Member Avatar for diafol
0
245

The End.