39,326 Topics

Member Avatar for
Member Avatar for phoenix254

Hi, i want to change format of date . This code i add in my register page.... if(!empty($_POST['dob'])&& !empty($_POST['mob'])&& !empty($_POST['yob'])) { $yob = mysqli_real_escape_string($con,$_POST['yob']); $mob = mysqli_real_escape_string($con,$_POST['mob']); $dob= mysqli_real_escape_string($con,$_POST['dob']); $date = mysqli_real_escape_string($con,"$yob-$mob-$mob"); $addtothedb="INSERT INTO login (Dateofbirth) VALUES ('". $date . "')"; $result=mysqli_query($con,$addtothedb); and when i get back data from db …

Member Avatar for cereal
0
417
Member Avatar for UK-1991

Hello, I created a user login form with a crietaria fixed that if the user type is admin then it should be redirected to admin page and if it is an agent it should be redirected to home.php The admin type is working properly but when i enter agent id …

Member Avatar for UK-1991
0
261
Member Avatar for charliehustle88

I'm currently having an issue with the pagination script that I have in place. When a search is made for a particular item containing an "apostrophe", the results are rendered correctly. However, the pagination is not corresponding correctly. An error is produced when attempting to move on to pages extending …

Member Avatar for charliehustle88
0
386
Member Avatar for lloyd.farrell.7

Hi, Morning everyone. I am looking for some help from more experienced php coders. I am trying to create a Stamp Duty Land Taxes script that will automatically calculate stamp duty on the sale of a house or flat. The amount of stamp duty is worked out as follows Nothing …

Member Avatar for diafol
0
114
Member Avatar for Makara

someone help to change this code to php please` USE [FastJet] GO /****** Object: Table [dbo].[service] Script Date: 04/14/2015 11:37:12 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[service]( [ser_id] [int] IDENTITY(1,1) NOT NULL, [ser_name] [varchar](100) NULL, [ser_status] [varchar](1) NULL, CONSTRAINT [PK_ison_service] PRIMARY …

Member Avatar for cereal
0
249
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
388
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
114
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
304
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
204
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
517
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
317
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
670
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
326
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
543
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
360
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
280
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
403
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
119
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
301
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
142
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

The End.