- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
83 Posted Topics
Hi quite a simple question i hope, i want to include a couple of checkboxes in my form and if they are checked i'd like to set the appropriate db cell as true... should i be looking at something like? [quote] if(chkbox_name == 'checked') { $cdplayer = true; } ... … | |
Im stuck in a mire of infinite child/parent relationships and trying to print out an organogram type tree. I have widgets with an id... a widget can have a parent widget and reference its id as the sub-widget's parent_id... now I need to print this out in a hierarchy, and … | |
Hi Im getting into a php mvc framework, available here ([url]http://www.phpro.org/tutorials/Model-View-Controller-MVC.html#8[/url]), but they only explain their code, and dont offer much other advice on the basics of working inside a framework... how would i go about posting a form? working outside of any framework i usually just post the form … | |
Hi I work on a 'play play server' on my pc, for lack of a real server, for this I use WampServer, I have recently updated my version. I suspect its running PHP5 - and Im used to PHP4 behaviour... Most of the pages I use forms on have the … | |
Hi Ive been fiddling with trying to emulate classes in javascript - but currently getting an undefined error hen I click one of the vote buttons... Ive got two vote buttons, 'vote_positive' and 'vote_negative' and have cretaed two vote button objects... on construction they firstly assign a value to the … | |
Hi I have a table storing time-sheet data, including a start & end time. I've set those fields as 'TIME' format, and tried doing the following calculation [code] SELECT SUM(log_end - log_start) AS timetotal FROM time_logs WHERE log_client = 'ECDC' [/code] It returned an integer, which doesn't correspond with any … | |
Hi, story goes... I need to process a timesheet - I want to use a csv file of the spreadsheet, so I was hoping to plug in the path to what Google said was a CSV output of a spreadsheet... [url]https://spreadsheets0.google.com/spreadsheet/pub?hl=en_US&hl=en_US&key=0AhhCntOrEg9FdF9PZkIwY08tZTdwd3lkYkJFNEtkMkE&single=true&gid=1&output=csv[/url] Unfortunately if you click on that link, it prompts … | |
Hi This isn't specifically a roll-over related question exclusively. More and more when I 'Inspect element' on a roll-over link in Chrome, which clearly has two images, i see that it is infact 1 image, and the two images are stacked... How does this work? how is only one half … | |
HI I have this js function for pulling out a couple of links which I want to add onclick handlers to... but IE can't find the rel attribute the way Im doing it, Im assuming it can another way, but I dont know how?! this works in Chrome, but not … | |
Hi Im processiing a json response [code] link_cart.setAttribute('id',bits[i].product_id); link_cart.onclick = function(){ add_to_cart(bits[i].product_id); } [/code] In the first line, the product_id value is correct, the json is a list of products, but it doesn't behave strangely, But the second reference in the onclick handler, displays a value of 22, which is … | |
Hi Building an e-commerce store, got a product table, with a price field got a discounts table with product_id, and an active field my query left joins discounts onto products, but I only want to pull in the discount if discount.active = '1'... but if I use 'WHERE discount.active = … | |
Hi Not the first time Ive wondered about this, just the first time Im asking the internet :) I have a list of 'users', and there is a table of 'photos'... each matched to a user via a 'link' table... When I use a left join, and the 'user' doesnt … | |
Hi Im pulling a list of users out of a user table and want to include photos, from the photo table, for each user. But not all users have a photo in the photo table... If I left join 'photos' onto 'users' i only get users who have photos... is … | |
Hi Ive written my own MVC framework, which uses the mod_rewrite apache tool... first part of the url is the controller and second part is the 'action'... some of my controllers have functionality which is publicly available, and other functionality which i want to restrict to logged in users... i … | |
hi Ive been posed this problem. A friend does maintenance on a companies network, and would like to do it remotely. Currently, their IP changes every 24hrs and so he has to phone them to find their IP so that he can log in... He asked me to write him … | |
Hi Im trying to make a script which when I click on the list element... it will replace a big image with anotehr picture. The list element is a thumbnail... and I want to swop the big image with the big version of the thumbnail. Each <li> has a rel … | |
Hi I need a solution for sending an email newsletter to a database of clients. Is there a script which will allow me to do this. I have read a lot about servers timing or my browser doing the same... if the script executes for too long. I am looking … | |
Re: Hi, I unfortunately don't have time to find an exact reference, but PHP has something called cURL - which can do a variety of things, but Im sure it can post vars to a URL and because it doesn't require actual navigation to that URL, you could catch your form … | |
Simple issue... If my website is storing text in a database (MySQL) - and will ordinarily be outputted in good ol' HTML... but possibly via XML, or JSON... how do I store the text, allowing for eg. paragraph breaks, but not using HTML to format it?? lworks | |
Hi I have a photo gallery... I was wondering if its possible using DOM scripting, to dynamically add a div around an existing image, making the new div the image's parent?! Thanks | |
Hi Just curious to see what everyone else thinks - its a small issue, but can be applied to a variety of situations. The website Im building allows people to rate news stories, I was just wondering if you would record each vote individually, or open a line in the … ![]() | |
Im building something that awkwardly resembles Facebook, to use as an intranet... and as such, the system allows you to organise meetings. In my attempt to make this thing useful, I thought it would be cool to email everyone thats invited to the meeting an 'Outlook meeting Request', which I … | |
Hi Been trying to use the json_parse function from the json.org website - looking for a link to a tutorial (or a short example) to show how i would use it to cycle through a list of responses - in this case im returning a JSON object with an id … | |
Hi I wasnt sure where to stick this, so Im asking this crowd I am putting together a website which works on an MVC principle, my own framework, and need some help with the .htaccess file. Specifically, if I want to make a pdf available for download, my url parser … | |
Hi Im trying to pull out a list of meetings, and the associated number of comments attached to each meeting. Comments are assigned a category (ie meetings) and a linkid (the uniqe id of the meeting) - Im using this query, buts its cutting out all meetings that don't have … | |
I tried to get as much info into the title as posible... hope it doesnt confuse anyone i have an initAll() called on window.onload within initAll() I assign a few onclick handlers to some links. However, it would be great if I could pass an argument to the handler, so … | |
Hi I think what Im trying to do is possible, just not sure how... On a button click - Ive created an object, with some properties in it. If I want to access those properties when clicking another button... how do I do that? [code] function build() { var circ … | |
Hi I spent the morning hacking together the basic components of my own MVC framework, which currently only parses a url, loads the class and calls the right method... Because I obviously dont want someone to be able to access the 'add/remove' methods associated with future classes, i need to … | |
Hi This isn't specifically a php issue, but i would be using php for the project... i am creating a site where people can upload articles, photos, docs etc - thing is, I want to keep everything as its own entity and use tables to link articles to images etc... … | |
Hi Need some advice - Ive been going more and more OO in my coding, just coming into some best-practice issues... Lets say I have a User object, and the user has some contact details... whats preferential, to call the getUserDetails() and include the layout HTML in that method, or … | |
Hi Simple problem. Ive designed a calendar for booking our boardroom - and I want it to refresh live - so using a timer and an ajax call. Thing is, if you select a new day (also using an ajax call), when it refreshes it needs to refresh with the … | |
hi got a bit stuck on this... [code] function changeDay(newDay){ ajaxCall('tools/refresh_booking_visual.php','start=' + newDay, function(x){ var pieces = eval("(" + x + ")"); document.getElementById('booking_visual').innerHTML = pieces.visual; document.getElementById('booking_date').innerHTML = pieces.date; document.getElementById('date_back').onclick = changeDay(pieces.backdate); document.getElementById('date_next').onclick = changeDay(pieces.nextdate); } ); } [/code] My code is to do with a calendar, when the user clicks … | |
im new to python, been working in php largely in the past, but wanted to learn something new and different. as such, i want to use python to create webpages, but have been tinkering in the IDLE until now... when using php, I use a local install of WAMP... is … | |
im completely new to python and not particularly experienced with anything that isnt running off of a web server... Im reading 'A byte of Python' and while my first shell script worked, which was just the 'Hello world', but if I create a separate file and have saved it within … | |
Hi I think Im dealing with an IE insertBefore bug, the script runs fine in Chrome, I have created my own modal box which gets inserted as a new node - the first inside the <body>... however, in IE, the new box is inserted within the first <div> inside my … | |
Hi Ive been using some httpRequests but have gotten tired of writing the 'preparation code' for every request... so I thought I'd make a function that accepted a URL, and a list of parameters and would return the responseText variable... But what seems to happen is that my other code … | |
hi Ive realised that I have some way to go before I can call myself an accomplished php developer. I want to transfer my skill set into legit object orientated design, and also to learn best practice for designing php apps for the web... to the extent that I need … | |
hi im new to writing functions - still havent gotten to classes yet :) and having some trouble understanding which function can access which variable... i have declared an array outside of any function... then i call a function, pass it a list(array) of urls and need to cycle the … | |
Hi Trying to pull this off in one query but my and right & left joining is giving me unusual results... i have a 'product_style' table, an 'product_item' table, an 'addto' table and a 'removefrom' table - im monitoring when products are added/removed to/from the cart... and want to pull … | |
hi im not sure if this is a php issue, or a doctype thing - im using the 'strict' doctype... all of the apostrophes (') in my text are being swopped out for black diamonds with a question mark in them...? Huh? | |
Hi Im new to OO PHP, been reading through my book and in one example they are using a class structure in a shopping cart. I have used session variables in the past for shopping carts, can I assume that if I create a class, which has a cart_contents array … | |
Hi Im setting up a news distribution system... sort of... i want to record everyone who downloads the news articles... so ive blocked direct linking to the pdf files using an htaccess file. my htaccess file redirects people to a page which captures where they came from ( for interests … | |
Hi Been trying to write a query... I have a table of documents, and a table which registers everytime someone downloads a copy of the document. I want to create a report, in one query, which pulls out each document and counts the views... I thought it woudnt be too … | |
hi i have two tables, one is products, the other is for 'discounts' on those products... when adding a new 'discount' i want to avoid adding two discounts to a single product... so i was looking for some sort of Right Join which would exclude all products which have a … | |
Hi I have a link, which triggers a script, but when the link is clicked, i want it to get a border around it... currently tried using [code=js] onclick="this.style.borderWidth = 1px" [/code] but no luck, lworks | |
Re: this should do it for you, i had the same problem a while back set your 'select' to have an id of 'cat', when you select a value, it will check which value you have selected - if that equates to new, it will make the text box 'newcat' to … | |
Hi So story goes, Ive recently started hashing user passwords to protect access, but have come to a bit of a problem in that if a user forgets their password, Im unable to retrieve it for them, because all I have is the salted-md5 hash? How has everyone else overcome … | |
Hi Ive been working with PHP, AS3 and some javascript for a while now, and want to move into something that allows me to develop desktop apps... I considered Java, but have become used to PHP's loose typing or whatever the technical name is, and so after some investigation Python … ![]() | |
Hi I need to set the border width of a link when it is clicked. The link calls a javascript and so I need a way to identify which link has been clicked, hence the outline... i tried [code] this.style.borderWidth = 'thin'; [/code] but to no avail...?! I have already … | |
Hi I hope this is an easy one... Im a bit of a noob when it comes to mootoools, but have created a menu which hides itself and slides in from the left... I'd like to have it start hidden first though... can anyone tell me what i need to … |
The End.