Posts
 
Reputation
Joined
Last Seen
Ranked #345
Strength to Increase Rep
+7
Strength to Decrease Rep
-1
90% Quality Score
Upvotes Received
46
Posts with Upvotes
36
Upvoting Members
32
Downvotes Received
4
Posts with Downvotes
4
Downvoting Members
4
12 Commented Posts
~210.89K People Reached
Favorite Tags

194 Posted Topics

Member Avatar for garyjohnson
Member Avatar for davy_yg

Tables by default strech to fill up the provided space Also Google cell-padding is I believe the correct attribute to use

Member Avatar for Purvi_1
0
770
Member Avatar for Jon_7

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

Member Avatar for jstfsklh211
0
387
Member Avatar for Mati_1

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)`

Member Avatar for jstfsklh211
0
395
Member Avatar for ychan623

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) ? "" …

Member Avatar for teja_2
0
2K
Member Avatar for divinity02

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>`

Member Avatar for Mr.M
0
1K
Member Avatar for janicemurby

anytime your `getListState` returns an empty set `$config['per_page']` will be 0

Member Avatar for jstfsklh211
0
780
Member Avatar for afaaro

you dont actually state what problem you're having be descriptive no one wants to try to guess

Member Avatar for jstfsklh211
0
2K
Member Avatar for davy_yg
Member Avatar for jstfsklh211
0
193
Member Avatar for davy_yg

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 …

Member Avatar for jstfsklh211
0
601
Member Avatar for davy_yg
Member Avatar for jstfsklh211
0
288
Member Avatar for rjusman90
Member Avatar for patk570
Member Avatar for jstfsklh211
0
285
Member Avatar for vivosmith

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

Member Avatar for vivosmith
0
1K
Member Avatar for vivosmith
Member Avatar for vivosmith
0
369
Member Avatar for mexabet

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

Member Avatar for mexabet
0
329
Member Avatar for SimonIoa

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

Member Avatar for SimonIoa
0
249
Member Avatar for AntonyRayan

dont forget http://php.net/manual/en/function.strtotime.php for retrieving dates from strings

Member Avatar for diafol
0
236
Member Avatar for Stefce

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

Member Avatar for Stefce
0
302
Member Avatar for PsychicTide

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 …

Member Avatar for PsychicTide
1
287
Member Avatar for Latrell_vie
Member Avatar for Lloyd_4
Member Avatar for jstfsklh211

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, …

Member Avatar for Teddy112
0
1K
Member Avatar for masterjiraya

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; …

Member Avatar for diafol
0
72K
Member Avatar for James_43
Member Avatar for paulkd
0
265
Member Avatar for mattyd

in order to view php files (which are proccessed server side) you need to be running some kind of webserver

Member Avatar for almostbob
0
507
Member Avatar for rjony321
Member Avatar for SimonIoa

if you already have php installed you most likely just need to enable mysql in your php.ini file

Member Avatar for diafol
0
318
Member Avatar for jstfsklh211

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 …

Member Avatar for diafol
0
257
Member Avatar for AntonyRayan
Member Avatar for Bensirpent07

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');});

Member Avatar for pixelsoul
0
383
Member Avatar for berserk

looks like you may be hashing the password twice when when checking once on form post and once on test

Member Avatar for berserk
0
1K
Member Avatar for jonsan32
Member Avatar for RobertDecousta
0
332
Member Avatar for Lonestar Jack

whats with the extra function wrapper around your click handler where/when/how are you calling it

Member Avatar for Lonestar Jack
0
243
Member Avatar for Niloofar24
Member Avatar for gestler

try overflow hidden on your wrapper assuming the scrolling is handled by your inner layout anyway

Member Avatar for gentlemedia
0
281
Member Avatar for paulo.guedes1992

<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]`

Member Avatar for jstfsklh211
0
215
Member Avatar for Sutarusu

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;

Member Avatar for Sutarusu
0
2K
Member Avatar for AntonyRayan

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

Member Avatar for mangel.murti
0
6K
Member Avatar for jay.barnes

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

Member Avatar for jay.barnes
0
3K
Member Avatar for elamigosam

your parameters are in the wrong order http://php.net/manual/en/pdostatement.bindparam.php your short a bindparam also

Member Avatar for elamigosam
0
328
Member Avatar for Kristiano

$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 ] ]

Member Avatar for diafol
0
2K
Member Avatar for Niloofar24
Member Avatar for Niloofar24
1
1K
Member Avatar for UK-1991
Member Avatar for charliehustle88

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 }

Member Avatar for broj1
0
395
Member Avatar for SimonIoa
Member Avatar for SimonIoa
0
493
Member Avatar for berserk

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 = ''`

Member Avatar for berserk
0
322
Member Avatar for AntonyRayan

as long as you dont violate any cross domain rules you can access your parent page through js parent."somejsfunc"(selected checkbox values)

Member Avatar for AntonyRayan
0
86
Member Avatar for mattyd

what's the rest of the error message also post more of the code around the erroring line

Member Avatar for mattyd
0
422
Member Avatar for programmingman

some hosting services (godaddy) block the standad port required for this

Member Avatar for jstfsklh211
0
122

The End.