Posts
 
Reputation
Joined
Last Seen
Ranked #578
Strength to Increase Rep
+6
Strength to Decrease Rep
-1
94% Quality Score
Upvotes Received
70
Posts with Upvotes
63
Upvoting Members
46
Downvotes Received
4
Posts with Downvotes
4
Downvoting Members
4
8 Commented Posts
7 Endorsements
Ranked #260
Ranked #317
~192.19K People Reached
Favorite Tags
Member Avatar for vegaseat

Out of all the things I lost I miss my mind the most - ozzy osbourne

Member Avatar for Reverend Jim
15
13K
Member Avatar for LastMitch
Member Avatar for Dani
Member Avatar for CarterLangley

`$db = new mysqli('','','','');` `$results = $db->query("SQL STATEMENT");` while($row = $results->fetch_assoc()){ echo $row['field_name']; }

Member Avatar for Ajit_786
0
1K
Member Avatar for falak_1

Try this: public function insert_into_db() { if( $this->db->insert('reservation', $this->input->post('no_of_poeple', TRUE)) ){ return TRUE; }else{ return FALSE; } }

Member Avatar for happygeek
0
431
Member Avatar for Dilawar_1

What are you trying to accomplish? When you say " Multidementional Array" from form, what are you doing with the array? The for post data is aready array.

Member Avatar for john_111
0
402
Member Avatar for Raju_3

You can complete this task with typeahead.js library. [Bootstrap Typeahead](https://github.com/bassjobsen/Bootstrap-3-Typeahead) <input id="email_search" type="text" name="email_search" value=""> $('input#email_seach').typeahead({ ajax: '/search_database_for_email.php' displayField: 'email', valueField: 'id', onSelect: function(item) { //This is used to populate a hidden field with the email id if returned. $('input[name="email_id"]').val(item.value); } }); On the backend, do a query to the …

Member Avatar for gabrielcastillo
0
529
Member Avatar for janicemurby

How are you tracking the number of events being listed? @hericles mentioned update statment, you should show the full code for this script so we can see what is going on.

Member Avatar for gabrielcastillo
0
161
Member Avatar for prieku

do a `var_dump($pdf_decoded)` after the var assignment and see if you get your decoded content. Also, Where are you getting `send_custom_email()` function from? If you have created a custom function, within the same class, it should be `$this->send_custom_email()`

Member Avatar for gabrielcastillo
0
2K
Member Avatar for Fiorentino01^
Member Avatar for dizy

Well to start, when you echo out your input checkbox, don't set id="delete". This will give all your inputs the same id of "delete" and that is bad html code.. If you want to assign delete to all you checkbox input's use a class So change: `<tr><td>Bil</td><td>Name</td><td><input id='delete' value='delete' title="select …

Member Avatar for dizy
0
259
Member Avatar for praba_web

That is strange, I have a hostgator shared hosting account and I have never had an issue with CI and admin routing.. I have had issues with "www.example.com/cpanel" and or "www.example.com/webmail" Check your dns settings... maybe you have a record that belongs to /admin. Also, this could be issue with …

Member Avatar for praba_web
0
4K
Member Avatar for Pavan_9

I believe etsy is runing ruby stack.. If not they should be, for an application of that size, you would get perfomance with a ruby stack.

Member Avatar for cereal
0
456
Member Avatar for gabrielcastillo

Quick help, I can't seem to think right now, and I need to add these array values into a single total value for each array key. Importantly the total value. Array ( [0] => Array ( [sub_total] => 1000 [total_tax] => 82.5 [total] => 1087.5 ) [1] => Array ( …

Member Avatar for cereal
0
354
Member Avatar for SimonIoa

You better off storing the audio file within the file system and saving the file path into the database. If you want to store the audio file, you will need to store the file in binary, by using the BLOB datatype. I would recommend saving the file on the file …

Member Avatar for SimonIoa
0
2K
Member Avatar for Muhammad_95

You could trying using a framework to help with the issue.. but for the most part. IE will be a bit different from FF or Chrome.. Bootstrap is good for most browsers, UIKit is a nother good framework as well.

Member Avatar for gabrielcastillo
0
129
Member Avatar for Reverend Jim

Have you noticed, more and more as time moves on, your is replacing you're. I see this all the time in txt and social media posts.

Member Avatar for Reverend Jim
7
5K
Member Avatar for rjony321

Here is my version of csv uploading script. I user a library call [parsecsvlib.php](https://github.com/jimeh/php-parsecsv) include($_SERVER['DOCUMENT_ROOT'].'/public/lib/parsecsv.lib.php'); $csv = new parsecsv(); if(isset($_FILES['company_file'])){ $file = $_FILES['company_file']['name']; $upload = $_SERVER['DOCUMENT_ROOT'] . '/uploads/'; if(!file_exists($upload)){ mkdir($upload); } $allowed = array('.csv'); $ext = substr($file, strpos($file, '.'), strlen($file)-1); if(!in_array($ext, $allowed)){ echo 'File type not excepted!'; exit; } $file …

Member Avatar for daksh singh
0
6K
Member Avatar for Evil_genius82

Have you tried putting the function above all other code.. I usally set `e.preventDefault();` before any other code. Can we see the full code for your ajax and html form?

Member Avatar for diafol
0
270
Member Avatar for babir

You want us to do the work for you? Or do you want us to help you? We need to see what code you have so we can see the problem.

Member Avatar for diafol
0
128
Member Avatar for praba_web

Do you get any errors in you console.log? I usually add my `e.preventDefault()` at the top of my function, before the ajax. try: $('#addwishlist').on('click', function(e){ e.preventDefault(); var test = 'Test_post'; $.ajax({ url: '/addwishlist/test_ajax', type: 'POST', data: {post: test}, dataType: 'JSON', cache: false, success: function(json){ alert(json.message); console.log(json.post); } }); }); In …

Member Avatar for gabrielcastillo
0
578
Member Avatar for babir

I saw you had a duplicate post.. You should not post duplicate posts, this will not get your question answered. As for your problem.. you can use a simple foreach loop to uplaod multiple files. $photos = $_FILES['photoimg']; foreach( $photos as $photo){ //Run your upload code and database code. $photo_name …

Member Avatar for gabrielcastillo
0
543
Member Avatar for zeeshan009
Member Avatar for nabin634

Can we see some code? I usually, create a timeout function with jquery and make ajax calls to a php funciton to update the database with any information I need saved. So, you can create a timer; then when the timer has reached its max value, send ajax call to …

Member Avatar for moneeshot
0
426
Member Avatar for Wael1988

Where is the page? Can we see some code? Where are you searching for the query string? Are you doing this in the textbox with the website? We need to see some code to understand what you are talking about.

Member Avatar for Richard_27
0
118
Member Avatar for Sayam_1

If you are using this script to log someone into a session, then I would think you would want to use a call back to notify the user of success or failure. Also, you would want to redirect the set a cookie for the user. All will require a callbackfunction. …

Member Avatar for gabrielcastillo
0
199
Member Avatar for falak_1

Like @cereal said you need to interate the array of data, then, if you would like to set the value of an input field, you would use. `set_value('name of input field', return data)` <input id="" class="" name="book_name" value="<?php echo set_value('book_name', $row->book_name); ?>" />

Member Avatar for gabrielcastillo
0
246
Member Avatar for myrtsgrc

You can try using SimpleHtmlDom library to achieve your goals. Scrap the results from your query and save to DB or display on to the page. [SimpleHTMLDom](http://simplehtmldom.sourceforge.net/)

Member Avatar for diafol
0
255
Member Avatar for falak_1

Codeigniter has join functions with active records enabled. Like: `$this->db->join(table, matching id, type);`, but with complex tables I write my queries out. Like: $sql = "SELECT item_id, MAX(IF(prop = 'color', value, NULL)) AS color, MAX(IF(prop = 'size', value, NULL)) AS size FROM properties GROUP BY item_id;"; $q = $this->db->query( $sql …

Member Avatar for gabrielcastillo
0
113
Member Avatar for chozotheqhai
Member Avatar for diafol
0
580