AndyB
-
Posts
5,465 -
Joined
-
Last visited
Never
Posts posted by AndyB
-
-
SELECT rank from users where some_field = 'something in the login that identifies the user'
-
-
Does anyone know?
I suspect that lots of people who have looked at your problem have ideas on how to do that. Why don't you show us your code effort - we're here to help you help yourself, not to write code for you.
-
This works for me:
header("Content-type: application/octet-stream"); header("Content-Disposition: attachment; filename=$filename"); header("Content-Transfer-Encoding: binary"); if(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE')){ // IE cannot download from sessions without a cache header('Cache-Control: public'); } echo $tsv;
-
not with the exit() function
exit — Output a message and terminate the current script -
I notice there is absolutely no text content in your home page. It's certainly not going to be found in any search engine index.
-
I suppose the 'best' way is something that's rational with sensibly-named folders.
I usually have something like
. images (sometimes subfolders here depending on usage)
. support (for css, js files and db-conn file)
. includes (for files to be included)
. downloads (if applicable)
. admin (htpassword protected)
-
350 lines of code - sorry, I'm not going to go through that looking for your solution.
Add error trapping, remove error suppression, use some echo statements to track progress of the script, test smaller sections ... etc.
-
output like that select * from patient where pt_name=laura AND pt_surname=
surname is blank...
Then we now know that $surname is not being retrieved from the POSTed data. Maybe surname is not the field name in your form; maybe there's an error in your form post array retrieval code; maybe ... Who knows?
-
The code you give me i didnt try it yet ...
So what would you like us to do next? And there's nothing wrong with multiple ANDs in query.
-
I'll try again.
change
$query = "select * from patient where pt_name like '%".$name."%' AND pt_surname like '%".$surname."%' "; Print "<table border cellpadding=1>"; $data = mysql_query($query);
to
$query = "select * from patient where pt_name like '%".$name."%' AND pt_surname like '%".$surname."%' "; echo $query; // new line Print "<table border cellpadding=1>"; $data = mysql_query($query) or die("Error ". mysql_error(). " with query ". $query); // modified line
Post EXACTLY what the echo $query line generates. Post EXACTLY the full error message that's generated.
-
Whats the point in that?
It will just make programming take allot longer.. :S
Taking a little longer to get code that works seems like a reasonable concept ... unless your objective is to write code that doesn't work and save time.
-
http://www.google.com/search?q=php+%2B+steganography - anything there help?
-
'page shows nothing' - do you mean you see a completely blank screen or that you see the expected output but with no data/results displayed?
If a querystring isn't returning what you expect, add a line to echo the query to see exactly what it says - which may not be what you think it should be.
And HTTP_POST_VARS is deprecated. Use $_POST['varname'] instead.
-
change
$data = mysql_query($query);
to
$data = mysql_query($query) or die("Error ". mysql_error(). " with query ". $query);
If the fix to your problem isn't then obvious, post the error message here.
Presumably, elsewhere in your code ahead of the query you make the database connection and select the database ...
-
? identifies a query string. & is used as the variable separator .... thus
<a href="?this=3&that=4&something_else=wombat ...
-
I haven't been able to get my hands on an 'Encrypter' anywhere...
Know any sources?..
... obfuscate your script using an encryption program like from zend or sourceguardian etc
Does that help?
-
In my opinion that is a business decision. I have worked on projects where JS was a necessity in order to deliver the functionality necessary. It is up to the stakeholders to determine if whatever functionality currently exists through JS is important enough that the site may exclude a small number of visitors ...
approximately 93%-95% of browsers used have JS enabled.
With a site for a Pizza chain, I don't see any reason that JS would need to be required though.
Let's take all that at face value, then rearrange and paraphrase it.
If we could make a change that increased sales by 5-7% would that be a good business decision?
-
Posting the php code that results in an html page that has validation errors isn't really helpful.
Posting html code with validation errors makes more sense because then we can SEE the code that doesn't validate. By the way, the whole code is needed, not just a few lines here and there.
There's usually no mystery to this once you study the generated code and look at the validation errors that are displayed.
-
Out of interest, apart from the UK, which countries celebrate Boxing Day?
When all else fails ... http://en.wikipedia.org/wiki/Boxing_Day
-
Ah. Is the database field type for report text? That will support 65,000 characters.
When you retrieve it and want the 'paragraph' breaks to be shown, use the nl2br() function when echoing the database field contents.
-
Depends on what you mean.
Restricting the input is one way - use maxlength=whatever in a text input
Echoing a sub-string of what's in your database is another.
If you could explain better what you're trying to achieve, you're likely to get more/better responses.
-
You don't need a 'printable template'. The whole point is that defining two different style definitions solves the whole problem.
What you actually need is TWO css files - one for normal view and the other for print. BOTH are loaded within the normal template/page. The print version ONLY applies to print views.
-
No. You will need to create a new template that will show less detail of the page. Or your own function which strips all the detail and just leaves you with the important stuff which you need to print. This isn't as simple as it sounds, so the best idea is to just create a print template.
Sorry, but that's totally incorrect.
The correct answer is http://www.phpfreaks.com/forums/index.php/topic,198174.msg894658.html#msg894658
[SOLVED] Form doesn't process..
in PHP Coding Help
Posted
if (isset($_POST['Register'])){
should be
if (isset($_POST['Register_x'])){
images as submit items return the x and y co-ordinates of where they were clicked