Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
6
Posts with Upvotes
6
Upvoting Members
6
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
4 Endorsements
Ranked #397
Ranked #1K
~38.8K People Reached
Favorite Forums

32 Posted Topics

Member Avatar for GhostDragon

Hmm... It's weird how you've managed to arrange the code... First of all you have a function in a function. Second, I don't remember using the switch statement that way... The variables namings are all wrong (for example.... getNum() is not returning you a number but a string). I don't …

Member Avatar for bobgodwin
0
538
Member Avatar for zebnoon1
Member Avatar for davy_yg

First of all, I don't think you can use `$this->load->model()` having an array as parameter. You can't do a `$this->load->model(array('Mediatutorialaccount'));` Secondly, you have `$data['sub_data']` which is an array, but you want to echo it. You must use `print_r()`, or iterate the array.

Member Avatar for davy_yg
0
355
Member Avatar for koneill
Member Avatar for koneill
0
301
Member Avatar for davy_yg

Well... it has to change everything, because you can't call jquery.dataTables.min.js before calling jquery.js. If you have Developer Tools installed on your browser look at the Console tab and view if any errors appear.

Member Avatar for davy_yg
0
346
Member Avatar for Nurul_2

Your query is all wrong: you are asking the database to update, not a table but a row. The update query should be something like: 'UPDATE atable SET atable.acolumn = avalue.....

Member Avatar for kamini_1
0
181
Member Avatar for destination0014
Member Avatar for gabrielcastillo
0
129
Member Avatar for munchlaxxx

instead of `$("#send").click(function(e) {` you should write something like: `$('form').on('submit', function() {` and just after you close that function's last if statement, do an `else return true`;

Member Avatar for minitauros
0
390
Member Avatar for nadiam

Why not do something like this? <input type="button" value="Click me" id="clickme"> <script src="https://code.jquery.com/jquery-2.1.1.min.js"></script> <script> $(document).ready(function() { var element = '<input type="text" id="textbox">'; var count = 0; $("#clickme").on("click", function(event) { event.preventDefault(); count++; $(element).insertAfter('#clickme'); }); }); </script> If you need explanation on what is wrong with your code: - you did a …

Member Avatar for AleMonteiro
0
16K
Member Avatar for ernesto22

Some code hints would be nice: like, where do you get the data from, in what form? Considering that the users can only be male or female, you need radio buttons (only use checkboxes for design reasons). Theoretically you can do something like this: echo '<input type="radio" name="sex"'.($sex=='male') ? ' …

Member Avatar for diafol
0
354
Member Avatar for an00p

What are you talking about? Tabs, as I understand them, can only be worked upon by javascript (with AJAX maybe). I think that you have some design which only emulates "tabs" (and every link finishes by a page request to the server). You can talk about performance issues only if …

Member Avatar for veedeoo
0
434
Member Avatar for malatamil
Member Avatar for toxicandy
0
150
Member Avatar for ma.da.7140

On line 11 is user a constant? Put it between quotes if not. Also, on line 18 put a space between asterisk and from.

Member Avatar for Adrian_5
0
270
Member Avatar for davy_yg

What 'group_id' are you talking about in the where clause (at line 7)? The one in 'group' table or the one in 'invoice' table? Put the name of the table just before group_id. For example: group.group_id or invoice.group_id.

Member Avatar for Adrian_5
0
566
Member Avatar for edwinthomas25
Member Avatar for johnef_sh

`check_time` is a datetime, time, or a varchar (with timestamp) field in the database? I am asking this because in your question you seem to check from a time field but in your response you check for a date-time field. Also, in your response your $checkTime will always be 1 …

Member Avatar for johnef_sh
0
272
Member Avatar for wikit

At line 67: `<input type="file" name="userfile" style="width: 222px;" multiple />`. After that you will have to find out how many files were updated: `$number_files = sizeof($_POST['userfile']['name']);`. After you've found out how many files were uploaded you can process them in a for() loop.

Member Avatar for Adrian_5
0
279
Member Avatar for Dani

ok... so... This code: location / { try_files $uri $uri/ /index.php; } ...says that if nginx can't find a file or a folder ($uri), it should redirect to index.php. You should try this: location / { try_files $uri $uri/ @rewrites; } location @rewrites { if (!-e $request_filename) { rewrite ^/(.*)$ …

Member Avatar for Adrian_5
0
2K
Member Avatar for aquilina

When working with sessions, you always have to put the `session_start()` before any output to the browser. Unfortunately, in this case, you've put `session_start()` after you called header.php, which does output to the browser...

Member Avatar for Adrian_5
0
362
Member Avatar for paulogaiski

First of all when working with sessions in php, make sure that session_start() is first (not after `include('connect.php);` line, but before.). And, what is `$SESSION[...]`? Are you sure is not `$_SESSION[...]`?

Member Avatar for Adrian_5
0
262
Member Avatar for jaspertan
Member Avatar for amit.chaudhari.71

The maximum value of a 32-bit integer is 2,147,483,647. 2,147,483,647 seconds from 01-01-1970 00:00:00 is January 19, 2038. If you add one more second, you get a date somewhere in 1902... so, your answer would by what @diafol said

Member Avatar for amit.chaudhari.71
0
391
Member Avatar for faisaldss

It seems to do some kind of ***lazy loading*** (that is the term if you want to google it...). As you can see, when you scroll down the scroll bar changes position everytime you get to a certain position. That means that it loads new results with ajax when you …

Member Avatar for vikiweb
0
278
Member Avatar for minghags

It seems to me that you put a wrong value to $start_from variable. Because you ask for 30 rows, it should be: `$start_from = ($page-1) * 30;` Also, on line 102 you should write: `$total_pages = ceil($total_records / 30);`

Member Avatar for Adrian_5
0
453
Member Avatar for mexabet
Member Avatar for iamthwee
Member Avatar for iamthwee

As an alternative, I would advise you to try Phil Sturgeon's caching library (https://github.com/philsturgeon/codeigniter-cache). It allows you to cache anything: from database results to blocks of content.

Member Avatar for Dani
0
395
Member Avatar for pooja.naik.1297

Speed wise, any application written directly in PHP, if written right, is faster than an application written using a framework. If by "stronger" you mean "without bugs", there is a chance that a framework, whatever its name is, could be stronger...

Member Avatar for diafol
0
373
Member Avatar for munchlaxxx

Javascript is not my strong point, but: I think that your script doesn't find the form because you didn't select it corectly from your DOM tree. Try it like this: <!DOCTYPE HTML PUBLIC "-//SQ//DTD HTML 2.0 HoTMetaL + extensions//EN"> <HTML> <HEAD> <TITLE>Courses Radio Button Project</TITLE> <SCRIPT Language="JavaScript"> <!-- function choiceChecker(){ …

Member Avatar for Adrian_5
0
258
Member Avatar for veedeoo

@Veedeoo, I would like to start by thanking you for this great script. But, I also would like to corect you on some points you made in your comentary. Talking about composer, Laravel, and the autoloading, I must say that the autoload in Laravel and composer is actually happening at …

Member Avatar for veedeoo
2
2K
Member Avatar for shapeape

From what I see, you are concatenating `$errors`, but you didn't define the variable as string. Somewhere between lines 3 and 4 I would have made a `$errors = ''`; I also see that you ask again if the form was submited in line 14 after you asked in line …

Member Avatar for diafol
0
392
Member Avatar for Sujan Shrestha

Before redirecting, try `$this->load->helper('url');`. Also, try to do a redirect like so `redirect('login','refresh');`

Member Avatar for Adrian_5
0
2K

The End.