Posts
 
Reputation
Joined
Last Seen
Ranked #367
Strength to Increase Rep
+8
Strength to Decrease Rep
-2
91% Quality Score
Upvotes Received
98
Posts with Upvotes
88
Upvoting Members
58
Downvotes Received
7
Posts with Downvotes
7
Downvoting Members
7
16 Commented Posts
10 Endorsements
Ranked #180
Ranked #182
~158.13K People Reached
Favorite Tags
Member Avatar for spud91

I have the following code: <?php session_start(); // Starting Session include_once('config.php'); $error=''; // Variable To Store Error Message if (isset($_POST['submit'])) { if (empty($_POST['user']) || empty($_POST['pass'])) { $error = "Please complete both fields"; }else{ // Define $username and $password $user=$_POST['user']; $pass=md5($_POST['pass']); // To protect MySQL injection for Security purpose $user = …

Member Avatar for GESTIC
0
1K
Member Avatar for ianhaneybs

I have a database that has columns called start date, start time, end date and end time and want to be able to output the difference so it shows the total time spent per project. Below is the code I have but it shows the error PHP Fatal error: Uncaught …

Member Avatar for lps
0
178
Member Avatar for Shiva_20

## I am deleting item from cart through Jquery ajax,but it is not removing. It is returning "System.String[]". ## [WebMethod(EnableSession = true)] public string ClearItem(string Img) { try { if (Session["Items"] != null) { string[] session_item_arr = Session["Items"].ToString().Split('|'); for (int i = 0; i < session_item_arr.Length; i++) { string[] key_arr …

Member Avatar for lps
1
227
Member Avatar for Sananil

Hi, first of all let me thank anyone willing to help out with this. Jquery / Ajax update Span or Div by ID without refreshing page <?php } $select = $DatabaseCo->dbLink->query("select sh_id from shortlist where to_id='" . $Row->matri_id . "' and from_id='" . $user_id . "'"); if (mysqli_num_rows($select) == 0) …

Member Avatar for Biiim
0
3K
Member Avatar for AngelEyes

I am trying to create a search box on my website that will allow readers to type in search words and display results strictly from all pages of my .org. I found a php code on this website that I think will do this? So I have created a page …

Member Avatar for Dani
0
1K
Member Avatar for charlie.kirk.140

**my table contains both urls(http://) and email addresses. Using PHP, I want to take different actions depending on the current record and dont have a clue. any advice? thanks**

Member Avatar for knarfs
0
171
Member Avatar for lps

Good day, I having a problem where creating my setting table as condition below column User_id setting effective_date effective_end_date Row 1: 1 ABC 2017-03-01 2018-02-28 Row 2: 1 DEF 2018-03-01 2019-03-01 I wish to add a constraint to block if same user add in a setting with the effective_date or …

Member Avatar for lps
0
293
Member Avatar for Laith_2

Hello . Im trying to submit a form that is inside a php while loop ( im using the loop to fitch data from the database , and depends on how many data that been fetched the from will be generated ) so if we have 4 rows from the …

Member Avatar for lps
0
183
Member Avatar for Latrell_vie

Hi ! I'm including the following jquery slider plugin into my website. Unfortunatly I still don't know how to change certain parameters like displayList, adaptive Height etc. The author says you can add these options during the slider initialization to customize it. I'm furthering my jquery knowledge but for now …

Member Avatar for Community_1
0
1K
Member Avatar for garyrichard

I want to create a page like http://uhbvn.org.in/web/portal/faqs With Expand and Collapse all link Along with functionality of Individual Slide Toggle Feature I already worked like http://yamunanagar.nic.in/g/FAQs.asp But in this i have to create separate function for each toggle question Thanks in advance

Member Avatar for garyrichard
0
279
Member Avatar for lps

Hi, recently I am taking part in a project which using data-id and data-type to perform script selection. I had read a few articles regarding the issue 'HTML5 Custom Data Attributes ' including [http://stackoverflow.com/questions/15507354/what-are-the-differences-between-using-data-attributes-and-class-id-for-javasc](http://stackoverflow.com/questions/15507354/what-are-the-differences-between-using-data-attributes-and-class-id-for-javasc) I am here asking opinions on the usage of difference in performance, tidyness of code and …

0
163
Member Avatar for slowlearner2010

Hi guys, I need to put data that i get it from db2 and display it into each text boxes (Name, Address and Postcode). What i got now, its displayed Name's data that i got from db2 into all text boxes (Name, Address and Postcode) . All i want is …

Member Avatar for slowlearner2010
0
141
Member Avatar for malatamil

Hi all, can anyone help me to do the arrangements. if the URL is like example.com?mr3=50,50,50,50,50&mr2=90,70,70,70,70&mr1=90,90,90,90,90 then i want to arrange in the order ?mr1=90,90,90,90,90&mr2=90,70,70,70,70&mr3=50,50,50,50,50 Thanks in advance.

Member Avatar for lps
0
104
Member Avatar for uttar14

I have this Image code and I want to resize it using CSS.. <div id="TA_selfserveprop634" class="TA_selfserveprop"><ul id="FkGjsTFbWr" class="TA_links aICFqBWnArX"><li id="v65BTuNt" class="Id2gL5m3F1"><a target="_blank" href="https://www.tripadvisor.com/"><img src="https://www.tripadvisor.com/img/cdsi/img2/branding/150_logo-11900-2.png" alt="TripAdvisor"/></a></li></ul></div><script src="https://www.jscache.com/wejs?wtype=selfserveprop&amp;uniq=634&amp;locationId=307103&amp;lang=en_US&amp;rating=true&amp;nreviews=5&amp;writereviewlink=true&amp;popIdx=true&amp;iswide=false&amp;border=true&amp;display_version=2"></script> </div> have tested on CSS however it does not have any effect .TA_selfserveprop{ width:10%; height:10%; } Please can any one points it to me …

Member Avatar for lps
0
198
Member Avatar for masimies

Hello, Simple is not so simple i see, Trying to save file in html-format from server to local disk. <?php if(isset($_POST['submit'])) { $file = $_POST['file']; file_get_contents('files/$file'); file_put_contents('download/$file'); } ?> <form method="post" action=""> <select name="getfile" id="getfile"> <option value="">Select file...</option> <?php $dir_open = opendir('files/'); while(false !== ($filename = readdir($dir_open))){ if($filename != "." …

Member Avatar for masimies
0
3K
Member Avatar for janicemurby

hi all im in the middle of following a tutorial online for a rating system and im encountering a problem when i click a number of 1/5 to rate a topic the rating is not going into the database can someone check the code to see what going off sql …

Member Avatar for cereal
0
287
Member Avatar for shany0786

Hello everyone i have facing problem in creating a array of sub categories. below is my html code,where user can add category name crossponding this he can add any number of sub category its image and detail by adding on add-more sub category,(form is duplicated by clicking button) <input type="text" …

Member Avatar for lps
0
240
Member Avatar for shany0786

hello all i have following $_POST array array(5) { ["addcatagory"]=> string(8) "CATEGORY" ["reg_admin_id"]=> string(2) "25" ["subcatagory"]=> array(2) { [0]=> string(9) "SUB CAT 1" [1]=> string(9) "sub cat 2" } ["subCat_Detais"]=> array(2) { [0]=> string(9) "AAAAAAAAA" [1]=> string(8) "BBBBBBBB" } ["submit"]=> string(15) "Submit Catagory" } now what i want to achieve …

Member Avatar for lps
0
191
Member Avatar for ramsiva

how to use on() event with autocomplete. I am using below jquery code $(function() { $( ".skillsex" ).autocomplete({ source: 'search.php' }); }); but i want to use on() event with auto complete any body help me. how to use

Member Avatar for ramsiva
0
99
Member Avatar for Latrell_vie

Dear folks , I've already created some website from scratch with html and javascript , php etc. On the other hand i also created websites with wordpress. I find the freedom in creating from scratch grandiose to say at least but wordpress to me has the benefits of professionally looking …

Member Avatar for jkon
0
388
Member Avatar for diafol

## Contents ## Overview 1. Alternatives to Deprecated mysql_* Functions 2. SQL Injection: What to do with $_POST and $_GET variables 3. How to Insert Tablenames and Fieldnames Properly 4. What to do With Dynamic Values? 5. How to Use Aggregate Functions (COUNT, SUM, MIN etc) 6. How to Paginate …

Member Avatar for developer707
6
5K
Member Avatar for hamza_8
Re: plz

Hi, everybody, How to change the images after every mouse Click in html?????? The images should display in the same places for every Click????? can anybody send me code please.... i posted this thread in HTML forum somebody told me that post here so please help anybody And Advanced thanks...(2 …

Member Avatar for aaronplo
0
140
Member Avatar for Ashleigh1

Is there a good alternative to using Paypal for online transactions, are any other companies accepted as widely as paypal.

Member Avatar for cpsi
0
337
Member Avatar for SimonIoa

Hello i want to create a countdown with numbers for example 1. (some data from database) 2. (some data from database) 3. (some data from database) 4. (some data from database) 5. (some data from database) and so on.... I have done the ORDER BY and retreive the data i …

Member Avatar for SimonIoa
0
314
Member Avatar for davy_yg

Hello, Besides testimonial I also would like to create a slider for my clients: http://www.innovation.web.id/One/portfolio-filter.php I do not know if it is the same concept or I must use different slider? See that greybar on the buttom with a list of my clients? I would like to create a horizontal …

Member Avatar for lps
0
332
Member Avatar for James_43

Hi Guys, As part of an online store, I have a dropdown box where the user selects a size. If the user selects size L then the 'add to cart' button needs to link to a page different than if the user selected size M. I figured out that I …

Member Avatar for James_43
0
300
Member Avatar for anmol.raghuvanshi1

hello,everyone i am trying to access user id from database in session data but no success till now?? //Controller function upload() { $user_id = $this->session->userdata('user_id'); //set preferences $config['remove_spaces']=TRUE; $config['encrypt_name'] = TRUE; // for encrypting the name $config['upload_path'] = './upload/'; $config['allowed_types'] = 'jpg|png|gif'; $config['max_size'] = '10248'; //load upload class library $this->load->library('upload', …

Member Avatar for lps
0
2K
Member Avatar for UK-1991

Hello, I tried to create a gallery using php admins can upload multiple images all the images are uploading correctly like the image is saving in the database as much as I can but the problem is that the image is saving once in the folder Like loop runs images …

Member Avatar for lps
0
228
Member Avatar for kannasekar

Hi I am newbie to PHP. I just wanted to create a registration page for students. In that page I've populated checkboxes for students who wants to enroll more than one classes. Everything got done. But I'm stuck with the final phase of this idea. I just wanted to save …

Member Avatar for kannasekar
0
289
Member Avatar for Ventech_IT

Hi for some reason i keep getting a parse error when i try to load my view could someone tell me why it says unexpected end to file on line 20 <section id="login-landing" class="block block-gray"> <div class="container"> <div class="card card-container wow zoomInUp animated"> <a href="<?php echo base_url()?>"> <img id="profile-img" class="profile-img-card" …

Member Avatar for lps
0
281