No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
9 Posted Topics
Hi All, I'm having a problem with a query - which is based on conditional user inputs. In all circumstances, the outputted query ALWAYS works in phpmyadmin returning rows where applicable, but not always in php. No errors are displayed, with error reporting set at E_ALL, and mysql_error hasn't been …
Hi, If it's a mysql database, then change "query($sql);" to "mysql_query($sql);"
Hi, I have a problem with setInterval (jquery). It works great, but I wan't the element to stop refreshing when a textarea is selected (so that users can insert text). Here is the refresh code I'm using currently. [CODE] $(document).ready(function() { $("#container").load("php/functions.php?page=wall"); refreshId = setInterval(function() { $("#container").load("php/functions.php?page=wall&r="+Math.random()); }, 1000); }); …
Hello, I see that your query says "ORDER BY '$sortby'" - you aren't defining a sort column here; just either ASC or DESC. You'll need to have a variable for a sort column also: [code] $column=$_GET["sortbycolumn"]; //then alter your (very complex) query to be like this ....ORDER BY '$column' '$sortby'" …
Not entirely sure how you've written this, but assuming your form posts out to a processing page, then you could have this on the page that processes the mail... (so long as it's declared before the header) [CODE] if(mail("to","subject","body","headers")){ @header("Location: form.php") & die(); } [/CODE] Just as a rough guide. …
Hi, This error means nothing without the code. Can you let us see the code? foreach is a simple structure, but it's impossible to assist from just the error reports.
Well, you'd need to be able to know if "$q[1]" exists, for example, if($q[1]){ $last=$q[1]; } else { $last=""; } There are many ways to do this, and the above is just a simple way - i.e if $q[1] is of a value other than empty, then make $last the …
Hey guys, Posted this elsewhere also, but looking for a resolution to my problem as quickly as I can. I've been developing a bespoke "helpdesk" system for work and, while it works well on the whole, I am having major problems with base64 encoded email bodies. Admittedly, this might be …
Hi guys, I'm both new here, and new to c++ so be gentle! Over the past short time we've been looking at c++ on our course, but I don't believe it has been taught too well, and I'm struggling to understand what should really be basic concepts? An assignment we've …
The End.
stevo356