39,323 Topics

Member Avatar for
Member Avatar for fireburner29

Hi there, please help me to write script encryption/decryption in php? i am using below code for my encryption/decryption ... Please tell your suggesstions if there is security issues in this script. thanks.. $key_value = "prtiv24$"; $plain_text = "password"; $encrypted_text = mcrypt_ecb(MCRYPT_DES, $key_value, $plain_text, MCRYPT_ENCRYPT); // password encryption echo ( …

Member Avatar for fireburner29
0
265
Member Avatar for charliehustle88

Hello, The particular code I have in place is based off of search, that will then grab items from my data base and render the results in a table formatted display. pagination included. } $var1 = $_POST['var1']; $query = "SELECT * FROM table WHERE state LIKE :search OR city LIKE …

Member Avatar for broj1
0
387
Member Avatar for Ankit_15

Hi friends, I am making an application which need pronunciation of words (name) in hindi language. like:- Ambar -> अंबर I cann't use third party tool. I have to create it by myself. Please help me, How can I do this?

Member Avatar for DJBirdi
0
113
Member Avatar for Niloofar24

Hello everybody! There is a problem with my db table. For example i send 6 posts (with title, author and content) to the db table one after an other, so their post's id would be 1-2-3-4-5-6. Then if i delete the post number 6 and then write a new post …

Member Avatar for DJBirdi
0
303
Member Avatar for rhodoscoder

What i'm i doing wrong? here is my code FUNCTIONS.PHP <?php function get_header(){ include 'header.php'; } function get_footer(){ include 'footer.php'; } HEADER.PHP <?php function set_title($title){ echo $title; } ?> <!DOCTYPE html> <html> <head> <title><?php set_title();?></title> <meta charset="UTF-8"> <meta name="description" content="Photography site" /> <meta name="keywords" content=" Angelic Photography" /> <!-- <link …

Member Avatar for rhodoscoder
0
203
Member Avatar for Niloofar24

Hello. Please look at this: <?php $servername = "localhost"; $dbname = "mydbname"; $dbusername = "mydbusername"; $dbpassword = "mydbpassword"; try { $conn = new PDO("mysql:host=$servername;dbname=$dbname", $dbusername, $dbpassword); $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $id=$_GET['id']; $sql = "DELETE FROM Posts WHERE ID = :id"; $stmt = $conn->prepare($sql); $stmt->bindParam(':id', $id, PDO::PARAM_STR); $stmt->execute(); header("location: admin.php"); } catch(PDOException $e) …

Member Avatar for Niloofar24
0
516
Member Avatar for Zeeshan_4

Hi all, i need some help to finding a good Time slot booking plugin which allows to have a multiple breaks. i have googled it found hundreds of plugins but no one seems to allow multiple breaks during day. my customer requirements on timeslots are monday - friday timings: 8.00-8.45 …

Member Avatar for DJBirdi
0
83
Member Avatar for Trabelsi

i am trying to develop a humain ressource management application with php, html 5 and jQuery the access to this application must be with a login and password, below the source code of two scripts i have developed to ensure access with login and password to the application (login and …

Member Avatar for Trabelsi
0
314
Member Avatar for Niloofar24

hello me again:) There is a page in my cms that users can see my posts there and i want to limit the number of posts that must be shown to users in each page and paginate. This is my code: <?php $servername = "localhost"; $dbname = "mydbname"; $dbusername = …

Member Avatar for Niloofar24
0
588
Member Avatar for ravi142

Hello I getting current user friends list by php api of facebook. can you suggest me what is missing.[LINK](https://github.com/facebook/facebook-php-sdk) <?php require 'facebook.php'; $facebook = new Facebook(array( 'appId' => 'removed', 'secret' => 'removed', )); if($facebook->getUser() == 0){ $login = $facebook->getLoginUrl(); echo "<a href= '$login'>Login with Facebook</a>"; } else{ $user_profile = $facebook->api('/me'); …

Member Avatar for Itirk
0
2K
Member Avatar for Manoj_16

Using the below code i am getting the data from database(mysql) and displaying it in the textbox that is in the form of table(textbox inside the table data). Now I can edit the data(td) on browser(table) but the problem is updating it to database upon changing( onChange option ) data …

Member Avatar for lps
0
3K
Member Avatar for bolfescu

Hy, i'm having a problem with php excell, i have in my db a row that its have a full url, when i export it its not make it HYperlink, i've see the docs on the internet but unft its for only one cell not for entire column this is …

Member Avatar for broj1
0
655
Member Avatar for dennishall

Hi: I've been banging my head over this all day... I'm attempting to create my first WordPress theme and have hit a wall trying to work with the "the_post_thumbnail()" function. In my theme, I'm using panels to navigate the site (rather than a top menu) and have them setup so …

Member Avatar for lps
0
257
Member Avatar for punji

hello PHP tycoons, i beg for help in giving me a way forward to write php script which will solve the problem i'm facing now. currently i'm developing basic student information system but in php knowledge i'm not that good, thus why i'm asking for help.so what i want to …

Member Avatar for lps
0
325
Member Avatar for Niloofar24

Hello. i'm creating a simple CMS for myself. There is a register form, i can register as the admin of the cms and then with login form, i can enter into admin area to write a new post or edit or delete posts. But there is a problem. I typed …

Member Avatar for Niloofar24
0
1K
Member Avatar for 88dbsakthi

I am trying to decrypt this PHP file(See the pastpin link given below) for the past one week using many tools around web but nothing worked. After then i found out the ,even i am acessing the tools which is really not build for the particular decryption type.Automated engine fails,Human …

Member Avatar for KaSHihaXor
0
532
Member Avatar for SoMa_2

I'm trying to create a webpage to help teacher determine CLO and PLO for exam questions First user will type the keyword in text box and select the chapter CLO() function will start the AJAX the result should be a CLO Number in CLO column and PLO options in PLO …

Member Avatar for asgs
0
359
Member Avatar for phoenix254

Somebody can help me, why isnt working this code ? <form action="" method="post"> Firstname:<input type="text" id ="changefirstnamebox" name="firstname " maxlength="20"> Lastname: <input type="text" id ="changefirstnamebox" name="lastname" maxlength="20"> <center> <input type="submit" id ="changeusernamebutton" name="changeusernamebutton" value="Change"> </center> </form> <?php $con=mysqli_connect("localhost","root","","user_registration"); if(isset($_POST["changeusernamebutton"])){ echo "working"; if(!empty($_POST['firstname']) && !empty ($_POST['lastname'])) { $newfirstname=mysqli_real_escape_string($con,$_POST['firstname']); $newlastname=mysqli_real_escape_string($con,$_POST['lastname']); echo $newfirstname;echo …

Member Avatar for cereal
0
100
Member Avatar for Manish_9

I have database with columns event_date, subject and description in my mysql table. currently, I am using following code to show calendar to highlight dates on which event is scheduled and on click on that specific date, description is shown.. But with this code, on page load, it shows current …

Member Avatar for AleMonteiro
0
278
Member Avatar for stokie-rich

Hi guys, Hope you're all well. I have managed to get the quiz that I have been working on to work now thank god! I just want to show just 20 random questions from the 80 questions that I have in the question bank. Looking at the quiz files I …

Member Avatar for stokie-rich
0
401
Member Avatar for elamigosam

hello everyone, I am looking to remove some stuff from my string: $list = "7:2,3:1,5:1,33:1,23:2"; $list = "7:2,3:1,33:1,23:2"; // REMOVE THE "5:1," OR ANY OTHER DINAMICALY AT ANY POSITION $list = substr($list, 0, strpos($list, "3:")); // i was thinking about this, but i dont think it willwork. thanks

Member Avatar for AleMonteiro
0
118
Member Avatar for David_55

HI All, Im a little confused as to the best way to approach the dealings with sessions when checking out, logging in, and logging out, in some cases the session can be written into the config file which is included in every page to help follow the user, however in …

Member Avatar for DaveAmour
0
300
Member Avatar for xvadias

Friends would like to know if anyone can help me decoder this file my script below, I will be very grateful to those who help min and thanks to all. https://mega.co.nz/#!LVcAUDbQ!lef5l4I8LNLXia-NopXQYMia1lqWIN5MFpDeeqmfajc

Member Avatar for cereal
0
32
Member Avatar for shitanshu_1

<html> <head> <title> Company Login </title> <style> li { display:inline; } </style> </head> </html> <?php session_start(); echo"Welcome ". $_SESSION["cname"]; $cp= $_SESSION["cname"]; $dbhost='localhost'; $dbuser='shitanshu'; $dbpass='123'; $dbname='placment'; $conn=mysql_connect($dbhost,$dbuser,$dbpass); if(! $conn) { die('could not connect'.mysql_error()); } mysql_select_db($dbname); $sql= "SELECT companyname,jobid,profile FROM compnayjob"; $result=mysql_query($sql,$conn); $count=mysql_num_rows($result); ?><table width="400" border="0" cellspacing="1" cellpadding="0"> <tr> <td><form name="form1" method="post" …

Member Avatar for DaveAmour
0
141
Member Avatar for uchejava

I need your suggestion on something. I want to display a 'message notification' on my menu bar. I want it to be like the Facebook message notification. When I have a new message, '1' should show close to the message menu e.g. 'Message 1' (I can use CSS to style …

Member Avatar for Eagle.Avik
0
204
Member Avatar for Borzoi

I have been tasked with making some internal software (as you can probably tell from the section I'm posting in, it's PHP based). I have been asked to make it so the user is automatically logged in and doesn't need to have another password for another piece of software. The …

Member Avatar for Borzoi
0
10K
Member Avatar for janicemurby

hya i am getting the following error message Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in /home/jktempla/public_html/WEBINTERSECT/template_status.php on line 20 Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in /home/jktempla/public_html/WEBINTERSECT/template_status.php on line 21 can anyone help and see whats causing it im lost ty <?php …

Member Avatar for cereal
0
210
Member Avatar for MarkDbro

I have a question about inserting images into a product page. I have 5 images (saved as longblobs in my products table) and would like to put them in my table like the id, name, quantity and price.... any idea of how i would do this? I have this so …

Member Avatar for MarkDbro
0
1K
Member Avatar for Niloofar24

Hi everybody. I have a page with some post's title in it. I have put every title in an <a> tag. I want to click on each title and enter into an other page (single-post-page.php) to see the content of that post's title. The script of that page (single-post-page.php) should …

Member Avatar for Niloofar24
0
2K
Member Avatar for Niloofar24

Hi, as you know i'm creating my own CMS. This is a part of my code: if (!empty($_POST["Title"]) && !empty($_POST["Author"]) && !empty($_POST["Content"])) { $sql = "INSERT INTO Posts (Title, Author, Content) VALUES ('$title', '$author', '$content')"; } I want the script to check if Title Field and Author field and Content …

Member Avatar for Niloofar24
0
487

The End.