Posts
 
Reputation
Joined
Last Seen
Ranked #372
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
~165.52K People Reached
Favorite Tags

333 Posted Topics

Member Avatar for spud91

Your code seem fine for me. Have you tried to echo out the $user and $pass before the query and compare manually to the database?

Member Avatar for GESTIC
0
1K
Member Avatar for ianhaneybs

Or we can direct use `$datetime1 = new DateTime(date("Y-m-d H:i:s",strtotime("{$row->exstdate} {$row->exstime}")));`

Member Avatar for lps
0
199
Member Avatar for Shiva_20

From your code: Session["Items"].ToString().Split('|'); I assumed that Session["Items"] is a string where its content is get through concat the session_item_arr array with '|' Therefore the return should be String.Join("|", session_item_arr)?

Member Avatar for lps
1
247
Member Avatar for Sananil

location.reload() will reload the document, while your code only need the div to be replaced. So in my opinion, can try remove those location.reload() and try again

Member Avatar for Biiim
0
4K
Member Avatar for AngelEyes

Had your code calling for the function with correct parameter parsed in from action_page.php?

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

May refer https://www.w3schools.com/php/php_form_url_email.asp for the validate of email and url, if matched then perform the action for each of them.

Member Avatar for knarfs
0
178
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
302
Member Avatar for Laith_2

This is due to during the looping, textarea with same id `id="reply"` created. Try change the id into class.

Member Avatar for lps
0
191
Member Avatar for Latrell_vie
Member Avatar for garyrichard

If I am in the case, I will probably wrap the question and answer in same div. Then use class instead of id, and bind the script to the class. html: <div> <div class="flip"></div> <div class="panel"></div> </div> script: $(document).ready(function(){ $(".flip").click(function(){ $(this).sibling(".panel").slideToggle("slow"); }); });

Member Avatar for garyrichard
0
287
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
220
Member Avatar for slowlearner2010

First of all, the php code(line 106 - 108) These codes show that the return of the php code will display $name,$add and $postcode with each of the value append behind. Next I seen your ajax response(line 47 - 50) You assign the same data into each of the field …

Member Avatar for slowlearner2010
0
149
Member Avatar for malatamil

Use $_GET to get the variables into array, then use asort() to sort it. Next, joins the parameters using http_build_query()

Member Avatar for lps
0
111
Member Avatar for uttar14

You are resize-ing the div. What can be done is set the image to having its max-width and height based on its container. .TA_selfserveprop img{ max-width: 100%; max-height: 100%; }

Member Avatar for lps
0
203
Member Avatar for masimies

As per your code(line 4-5), after getting the content from file_get_contents(), the content of the file is not stored. It should be a variable declared to store the content, then parsed the data into file_put_contents (). Is there any error/warnings displayed after the process? As if it is permission issue, …

Member Avatar for masimies
0
3K
Member Avatar for janicemurby

The code `if($exists)` only it insert the data. Shouldn't it be `if(!$exists)`?

Member Avatar for cereal
0
300
Member Avatar for shany0786
Member Avatar for shany0786

Use array_merge(). Detail API can refer to http://php.net/manual/en/function.array-merge.php

Member Avatar for lps
0
200
Member Avatar for ramsiva

http://stackoverflow.com/questions/9693758/how-do-you-bind-jquery-ui-autocomplete-using-on

Member Avatar for ramsiva
0
106
Member Avatar for Latrell_vie

Wordpress is already built in with its own search function. Anyway, if one insist, there is some suggestion [Click Here](https://wordpress.org/support/topic/add-search-box-in-header)

Member Avatar for jkon
0
405
Member Avatar for Member #120589
Member Avatar for hamza_8
Re: plz

Just for your info: we are not here for a job. There are a few ways to achieve the effect. If I am in the case, I will play with CSS to have all images positioned in same place, then use the onclick to hide/display certain image. Another way is …

Member Avatar for aaronplo
0
150
Member Avatar for Ashleigh1

I had been developing the payment system in my previous employment and we do provide a few payment methods for the users to 'Go Premium'. Coding wise I will suggest MOLPOINTS as its implementation is similar to paypal and can be easily adopted into same class of payment verification in …

Member Avatar for cpsi
0
363
Member Avatar for SimonIoa

Please show a more complete code, based on the code provided, we cant even know where your variables getting data from. What I can see from your code, there is problem with `<a href="'localhost/project/'.$id.'" >`

Member Avatar for SimonIoa
0
327
Member Avatar for davy_yg
Member Avatar for James_43

maybe using a `<select><option>` was what you wish for, by using then onchange event from to select box using jquery/javascript, you can easily change the form's attribute. You may even prevent default action from the form submit using jquery function and based on the user's selection and then submit the …

Member Avatar for James_43
0
312
Member Avatar for Member #1118149

You should gone throught your own array of `$this->session->userdata()` using `<pre><?php print_r($this->session->userdata()) ;?></pre>`. You `$this->session->userdata('username')` working as it is declared directly beneath `$this->session->userdata()`. But, your `'user_id'` is under `'sessiondata'`

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

Your problem should be the part of foreach($imggall as $key => $imgname) { $path = "./img/gallery/".$imgname; foreach($imgtemp as $key1 => $imgtemp1) { move_uploaded_file($imgtemp1, $path); } $confirm = mysqli_query($connect, "INSERT INTO gallery (image) VALUES ('$imgname')"); } I assumed the values for $imggall = $_FILES["gallery_img"]["name"]; $imgtype = $_FILES["gallery_img"]["type"]; $imgtemp = $_FILES["gallery_img"]["tmp_name"]; are …

Member Avatar for lps
0
253
Member Avatar for kannasekar

First of all, mysql_* is depreciated. Please consider to use mysqli_* or PDO as alternative. Please do give us details like what is the exact error caught, the information of the database structure of your `stud_class` table, especially its indexes. Through digging the provided code, what I suspected is your …

Member Avatar for kannasekar
0
304
Member Avatar for Ventech_IT
Member Avatar for lps
0
289
Member Avatar for UK-1991

First of all, had you check your database if last data that matching the condition is having values? As from what I can see from your code, for every rows of data the `mysqli_fetch_assoc` fetch, you will replace your $h1,$h2 etc with the newly fetched data. So, if the last …

Member Avatar for Member #120589
0
158
Member Avatar for kannasekar

First of all, mysql_* is already depreciated. It is encourraged to use the PDO or mysqli_* instead. For you problem, here is what doesn't work in php: `for( $i=0 ; $i<sizeof($checkbox1); $i++)` In php, we use `for( $i=0 ; $i<count($checkbox1); $i++)` and the query `$query = "insert into stud_class (class_id) …

Member Avatar for kannasekar
0
189
Member Avatar for دليل تطبيقات
Member Avatar for davy_yg

Your array structure is having problem where the error `Notice: Undefined offset: 3 in C:\xampp\htdocs\latihan2\print4.php on line 44` is actually informing that you try to assign a value into Array[application] and probably you not defined the veriable 'application'. I assume your array creation is in text pointer. Then the array …

Member Avatar for lps
0
160
Member Avatar for SimonIoa

If you wish all elements to be in one place regardless the resolution, then don't bother to use percentage to style your page, simply use fixed value.

Member Avatar for SimonIoa
0
199
Member Avatar for UK-1991

One thing I wanna ask: are you defining all the functions in a class? or just a normal php and inplement the functions. If it is second choice, then the problem might be that when you calling message() function, the session may not be started as you put the session_start() …

Member Avatar for Member #120589
0
268
Member Avatar for Siberian

Your question is about 'I want to style only a span using javascript'. I assume your code maybe consist of more than one span. Eg. (copied from @diafol) <div id="sometext"> <span>Let's</span> <span> do something...</span> </div> so, what you wisht to do in jquery to style only the desired span, Eg, …

Member Avatar for Member #120589
0
241
Member Avatar for Ritesh_4

If you means to directly made the connection from jquery to database, then from my understanding, it cannot be done or not encaurage to be done. As jquery script is a client based scripting, so it is too risky to connect using jquery. However, we can always using a ajax …

Member Avatar for Lau_1
0
308
Member Avatar for hwoarang69
Member Avatar for Stefce

Based on my experience, you would probably set the body with a fixed width like 1000px with margin:auto; where it will fixed the content width to 1000px and centered. With this, the layout will not be distorded due to your float:left condition. If you wish to be more flexible, then …

Member Avatar for pacav69
0
425
Member Avatar for faisal.qureshi.7121614_1

Maybe a little more google shall answer your question. Here is an example: http://stackoverflow.com/questions/3611682/facebook-graph-api-how-to-get-users-email Instead of storing [email protected], I suggest your site to store the email used to register the fb account.

Member Avatar for lps
0
269
Member Avatar for chrisschristou

Wrap your .change event in `$(document).ready();`. As you code your script before the body, the script loaded before the DOM is ready and causing the issue. Another way is moving the javascript to end of the file before closing the body.

Member Avatar for lps
0
256
Member Avatar for SimonIoa

Have you include the jquery library before your scriptings? View the console tab in developer tools(F12) to see if any include is having error/warnings.

Member Avatar for SimonIoa
0
442
Member Avatar for Emma_4

Have you tried to echo the variable holding the description before put it into the `title` attribute?

Member Avatar for lps
0
178
Member Avatar for Muhammad_92

Hehe, this is a bit tricky that needs some help from jquery/ajax. Here is a few solution: 1. Ajax Your existing code: <select name="dept_id" id="dept_id" onChange="showCompany(this.value);"> <option value="">--Select--</option> <?php $sql1 = "select * from dept"; $sql_row1 = mysql_query($sql1); while ($sql_res1 = mysql_fetch_assoc($sql_row1)) { ?> <option value="<?php echo $sql_res1["dept_id"]; ?>" <?php …

Member Avatar for lps
0
138
Member Avatar for asutechltd

1. Try google for solutions/explaination on why the error occurs by search the key word like 'Notice: unserialize(): Error at offset'. There is plenty of explaination found. Eg. http://stackoverflow.com/questions/10152904/unserialize-function-unserialize-error-at-offset 2. Show us the code and the solution you tried if you still failed to solve the problem.

Member Avatar for lps
0
122
Member Avatar for jaiuriyal

Probably the php is having error in the line `$subject = @trim(stripslashes($_POST['subject'])); ` where your form is not having the post for 'subject' area.

Member Avatar for Ventech_IT
0
287
Member Avatar for Hilal2009

Does your meaning of 'getting user infomation' refered to the basic information? if it is basic user info, then you can direct get data from graph.facebook.com/username and json_decode() the data.

Member Avatar for cereal
0
1K
Member Avatar for DocTech25

Just want to be confirm, is your html file is in the root directory? If yes, then try `<link rel="stylesheet" type="text/css" href="./resources/css/docTech25Banner.css">`

Member Avatar for DocTech25
1
228
Member Avatar for ravi142

May I know why you just backup your wp_content folder? Normally I will just dump the whole folder containing my wordpress sites to new path, then the database I will export as .sql and edit with notepad(or what ever editing tools) replacing the url to the new path url.

Member Avatar for lps
0
133

The End.