- Strength to Increase Rep
- +7
- Strength to Decrease Rep
- -1
- Upvotes Received
- 46
- Posts with Upvotes
- 36
- Upvoting Members
- 32
- Downvotes Received
- 4
- Posts with Downvotes
- 4
- Downvoting Members
- 4
Re: http://www.php.net/manual/en/imagick.resizeimage.php | |
Re: Tables by default strech to fill up the provided space Also Google cell-padding is I believe the correct attribute to use | |
Re: you can use the `document.location.href` to look up the url and then append the new class to the appropriate element add distinct classes or ids to your tabs to make then easy to find | |
Re: you need to lookup the table id for the table you want to work with in your check function store the table id in each form or elements `$('td').removeClass("highlight")` this basically says every `td` on the page you need `$(table#tableID td)` | |
Re: leave the value of all set to empty string `<option value="">All</option>` in your php you need to check each time for each var if they are set and append an "and" something like $locations = (empty($_POST["locations"]) ? false : $_POST["locations"]); $filters = ""; if($locations) { $filters .= (empty($filters) ? "" … | |
Re: your href tag doesn't care what type of page you're going to as long as the page exists `<a href="any/valid/url">something to click on(text/image)</a>` | |
Re: anytime your `getListState` returns an empty set `$config['per_page']` will be 0 | |
Re: you dont actually state what problem you're having be descriptive no one wants to try to guess | |
Re: in your constructor code you ask for a parameter in this case `function __construct($person_name){` you're not actually setting person_name in that method but you are requiring it you should either remove it `function __construct(){` from the constructor or default it to null `function __construct($person_name=null){` if you keep it you should … | |
Re: use your console to view the response for customers.php | |
Re: google htaccess(linux) url redirect | |
Re: If your current value is the same as your new value no update happens | |
Re: post some code the value in the db stays the same? the value on the form doesn't get updated? need a little more info | |
Re: i dont see anywhere in your code where you get the posted variables ie `$price = $_POST['price']` | |
Re: your function doesn't return a statement it returns the result $statement = $handle->prepare($sql); you would need to return `$statement` for what you're attempting | |
Re: name="name[]" helps with multiple selects or multiple fields with the same name in your case i'd use a comma separated list and parse the posted value | |
Re: dont forget http://php.net/manual/en/function.strtotime.php for retrieving dates from strings | |
Re: the way you are using strlen it is returning the length of your count ie strlen(0) = 1 since strlen will always be 1 (till count > 9) and your echo is in your loop its outputting 1 then 1 then 1 | |
Re: your code shows one checkbox and 3 radios a little unclear about what the desired result is check your field naming you have some duplicates which is not allowed also name your boxes better ie for a center box radio or check use 'center' in your name that combined with … | |
Re: do you actually have a table 'mydb' that looks like the name of your database | |
my insert statement seems to be ignoring my unique index and adding duplicates what'd i mess up? thanks in advance Table CREATE TABLE `address` ( `address_id` int(11) NOT NULL AUTO_INCREMENT, `address_street1` varchar(100) NOT NULL, `address_street2` varchar(100) DEFAULT NULL, `address_street3` varchar(100) DEFAULT NULL, `address_city` varchar(45) NOT NULL, `address_state` char(2) DEFAULT NULL, … | |
Re: two ways of adding values to an array by specific index (string|int) $array = array(); $array['key1'] = $val1; $array['key2'] = $val2; print_r($array); /* array( "key1"=>$val1, "key2"=>$val2 ) echo array["key1"] // prints $val1 */ adding values by "push" uses next available int $array = array(); $array[] = $val1; $array[] = $val2; … | |
Re: Try dumping $itemsinfo to make sure is really an array | |
Re: in order to view php files (which are proccessed server side) you need to be running some kind of webserver | |
Re: you cant use fgetcsv on xls files you would need to use something like PHPExcel | |
Re: if you already have php installed you most likely just need to enable mysql in your php.ini file | |
Stupid constant in class declaration issue One of our live servers is still on php 5.3 and is breaking on the second line with this message Parse error: syntax error, unexpected '.', expecting ')' in ....... systemAdministrator is a defined constant that i can echo out with no problem before … | |
Re: you should definitely be using ajax for this kind of page |