- 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
194 Posted Topics
http://www.php.net/manual/en/imagick.resizeimage.php
Tables by default strech to fill up the provided space Also Google cell-padding is I believe the correct attribute to use
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
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)`
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) ? "" …
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>`
anytime your `getListState` returns an empty set `$config['per_page']` will be 0
you dont actually state what problem you're having be descriptive no one wants to try to guess
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 …
use your console to view the response for customers.php
google htaccess(linux) url redirect
If your current value is the same as your new value no update happens
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
i dont see anywhere in your code where you get the posted variables ie `$price = $_POST['price']`
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
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
dont forget http://php.net/manual/en/function.strtotime.php for retrieving dates from strings
 
 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
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 …
do you actually have a table 'mydb' that looks like the name of your database
do you have short tags enabled
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, …
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; …
 
 Try dumping $itemsinfo to make sure is really an array
in order to view php files (which are proccessed server side) you need to be running some kind of webserver
you cant use fgetcsv on xls files you would need to use something like PHPExcel
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 …
 
 you should definitely be using ajax for this kind of page
delay is only for effect type calls probably not the cleanest but this should work $('div.slide-in-section1').effect('effect':'slide','complete':function(){$('div.slide-in-section1').removeClass('slide-in-section1');});
looks like you may be hashing the password twice when when checking once on form post and once on test
you're overwritting your onload you should have one onload function that calls both
whats with the extra function wrapper around your click handler where/when/how are you calling it
use css `display: none;` will hide elements
try overflow hidden on your wrapper assuming the scrolling is handled by your inner layout anyway
<input name="textBox[<?php echo $myid; ?>]" when you post this you'll get an array for each form element with key = id `$_POST['textBox'][$myid]`
try CREATE TABLE `user` ( `userid` char(50) NOT NULL, `password` char(12) NOT NULL, `lastlogin` timestamp(14) NOT NULL, `newmessage`int(4) NOT NULL DEFAULT 0, `companyid` char(10) default NULL, `departmentid` char(10) default NULL, `status` char(50) default NULL, PRIMARY KEY (`userid`), KEY `loginuser` (`userid`,`lastlogin`) ) ENGINE=MyISAM;
like @pritaeas said use an autoincrement field for it if you cant you can always use something like this `select (max(ionvoice_no) + 1) from invoicetable` in your insert code
assuming everything is on the same domain you could just do something like `parent.window.frames["myFrame"].location.href = 'menu.page'` from within the login iframe
your parameters are in the wrong order http://php.net/manual/en/pdostatement.bindparam.php your short a bindparam also
$sql = select Timestamp, room, device, value... $data = $stmt->fetchAll(PDO::FETCH_GROUP | PDO::FETCH_ASSOC); $data should now be an array [ timestamp1 => [ 0 => room0 device0 value0, 1 => room1 device1 value1 ], timestamp2 => [ 0 => room0 device0 value0, 1 => room1 device1 value1 ] ]
 
 use a `<pre>` tag to output the text as typed or just replace all newline chars with `<br/>`
post your form where does $_POST["login"] get set
according to the docs rowcount is not always accurate and you shouldn't use it to check your results go with something more like this $records = $sth->fetchAll(PDO::FETH_ASSOC); if($records && count($records) { foreach ($records as $row) { //html here } } else { //no data }
post the code for your form what method are you using to submit the form? did you try printing out your variables to make sure you have data? $note_sql = "UPDATE users SET customer_notes='".$customer_notes."' WHERE id='".$row."'"; `$result` would return true even if `$row = ''`
as long as you dont violate any cross domain rules you can access your parent page through js parent."somejsfunc"(selected checkbox values)
what's the rest of the error message also post more of the code around the erroring line
some hosting services (godaddy) block the standad port required for this
The End.



























