JustLikeIcarus
Members-
Posts
430 -
Joined
-
Last visited
Everything posted by JustLikeIcarus
-
Just thought I would say hello to everyone. I recently started posting here in an effort to fight off my boredom haha.. It keeps me pretty entertained. Is it sad that I find it fun? Hope not...
-
MooTools is not constantly watching the dom for elements with the editable class. It reads it in when it loads so it doesnt see your new/updated elements. You need to look for a MooTools plugin like the jQuery livequery plugin which should fix your issue. The other solution would be to run the MooTools function after the table is added to the dom each time.
-
Well using jQuery it would be something like $('#id_of_select').change(function(){ if($(this).val() == 2){ $(this).insertAfter('<input type="text" name="somethingElse">'); } }); Thats just off the top of my head but i think its what you want.
-
OK found your issue. .submit { font:bold 0.95em arial, sans-serif; border:none; height: 25px; background-color: #63D1F4; } } <-- Whats that for? .floatleft { float:left; padding:0px 5px 5px 5px; }
-
Seems to work fine using just the two lines of css you mentioned. Maybe your css file has something thats overriding your float? Post your css if you can.
-
can you post the actual html getting generated for that section? Cant be sure why it isnt working without more info.
-
Hahaha we were getting there.
-
Ok ive never use OLE COM objects before. According to the spec "value" does contain the value in seems to be what should be used in the if statement. See if this gives you an error if(isset($rs->Fields('Address')->value))...
-
Im thinking that $rs->Fields('Address') is an object, $rs->Fields('Address')->value being what needs to be tested or maybe try if(sizeof($rs->Fields('Address')) != 0)...
-
Also try using a switch case instead of multiple if's exit's. May make things easier.
-
Some more changes will need to be made besides what I gave u an example of. All of you "id" attributes need to be unique.
-
mail("[email protected]",$subject,$sendemail,$mailheaders, '[email protected]'); Assuming companyx.co.uk is your domain.
-
First problem is that you cant have multiple elements on a page with the same id. Second, your select box "quantity" has nothing to tell which item the quantity is for. Change the id of your elements to something unique like changing it to <select name="quantity" id="quantity_<?=$theid?>" > <option value="1">1</option> <option value="5">5</option> <option value="10">10</option> <option value="25">25</option> <option value="50">50</option> <option value="100">100</option> </select> Then change your js to do document.getElementById('quantity' + myid).value;
-
DavidAM is correct. Setting a z-index on the div with the form will make it accessible.
-
Is there any way to use PHP in CSS files?
JustLikeIcarus replied to Orionsbelter's topic in PHP Coding Help
Well simplest example is for you to just take your current css file and change its extension to .php and add <?php header("Content-type: text/css"); ?> To the beginning of it. Then change the html that calls it reflect the new file name. <link rel="stylesheet" type="text/css" media="screen" href="style.php"> Once youve done that you can add whatever else you want in the new file. -
PHP Frameworks usually provide this. I use Kohana kohanaphp.com which does it well. v2.3.4 has a nice hook system. v3.0 Does it a bit differently but it works well.
-
Is there any way to use PHP in CSS files?
JustLikeIcarus replied to Orionsbelter's topic in PHP Coding Help
Yeah just have a php file that ouputs css and use it instead of the .css file. Make sure your sending the right header. -
mySQL all records from one table some records from other
JustLikeIcarus replied to denniston's topic in PHP Coding Help
If im understanding correctly I think you need to use an OUTER JOIN. -
Per the php manual:
-
Selecting a parent and children in a single query
JustLikeIcarus replied to therealwesfoster's topic in MySQL Help
Well it depends... If he wants each question followed by its answers, Im thinking its best to loop through the questions fetching each ones answers and printing them. Or possibly pull back all questions into an array like $arr['question'][1] = ... and $arr['answers'][1][] ... If your going to do everything in one query Im thinking you would want to pull back question_id, question, answer then print out a question only once then answers untill you hit a different question id... What are your thoughts? -
Selecting a parent and children in a single query
JustLikeIcarus replied to therealwesfoster's topic in MySQL Help
@fenway very true. It isn't the optimal solution. The best way is most likely what the OP already has.