AndyB
-
Posts
5,465 -
Joined
-
Last visited
Never
Posts posted by AndyB
-
-
i was having a lively discussion with my wife and we wanted your opinions...
My wife and I tend to have rather more pedestrian discussions. Isn't it your turn to take out the garbage, for example.
-
-
I see no error. I get no error running that script. Given that what you posted is much shorter than 37 lines, the error message suggests that you actually have more code than you posted. The problem likely originates from a missing loop start curly brace.
-
http://fundisom.com/phparadise/php/image_handling/image_upload_and_resize
just make sure you set upload folder permissions to write-enabled
-
From your error message, the query is looking for a table named C-MORE-GLASS_CATIGORIES
... that will be parsed as a table named C minus MORE minus GLASS_CATIGORIES. Hardly surprising that you get an error!!
-
http://dev.mysql.com/doc/refman/5.0/en/reserved-words.html
read is a MySQL reserved word. While `backticks` solve the problem, the better solution would be to avoid using reserved words in field or table names.
-
Perhaps if you give us one example of a 'multi-comment line' and tell us just what you want to do with it, we can suggest what functions(s) are needed to produce the actual output you want from that example multi-comment line.
-
Although it may not be needed in this code requirement (although there might still be 'one more thing'), you might want to use the trim() function to remove any leading/trailing spaces that interfere with counting the number of characters, etc.
-
http://dev.mysql.com/doc/refman/5.0/en/reserved-words.html
to and from are both MySQL reserved words. Avoid using reserved words as field names or table names. Although you can use `backticks` around reserved words, I'd strongly recommend changing your field names.
-
Makes no sense does it?
So far, that's all that does.
-
<?php
include("/home/content/g/e/r/gereb/html/ps3t/config22.php");
$query = "SELECT userid,var FROM playertrophy WHERE userid=1 ";
$result=mysql_query($query) or die("Error: ". mysql_error. " with query ". $query);
$stuff = mysql_fetch_array($result);
echo count($stuff['var']);
?>
-
save the image info in a session as soon as it's selected. retrieve the session value when you do the comparison.
OR
place the image info in a hidden field of your form and retrieve the passed info on the next page.
-
I wish I could find one of the many times I've answered questions about image submit ...
When an image is clicked, the x and y coordinates of where it was clicked relative to its upper-left corner are passed along. That's how image maps work (and how compliant browsers treat image submits).
With an image submit button, $_POST['submit'] has no value. The coordinate values do exist: you can check for either $_POST['submit_x'] or $_POST['submit_y']. That'll work - assuning that you have named your image submit as you did in your first example posted code for a 'normal' submit.
-
Take a really close look at your code as posted here. You are using two single quotes where you need a double quote ... ' and ' are NOT the same as "
Fix ALL instances of those errors and then tell us what happens. And please wrap your posted code in code tags here in future.
If you have an error, don't just tell us it's the same error; give the full error message and if it refers to a specific line, identify that line in your code - it only takes you a few seconds. That way, more people are likely to take the time to help you.
-
For anyone who doesn't know - http://en.wikipedia.org/wiki/Vandermonde_matrix
-
I rather think the Terms of Sale and Terms of Use have been plagiarized. One clue is that links lead to a site other than yours. If those are actually yours to use, get the font right, undo the center alignments, and fix the 'smart quotes' and other MS Word crud that displays as weird characters.
-
These look suspect as well
$headers == array(
$string = preg_replace($headers, '',string);
-
Don't confuse $message and $messge.
$name = $_POST['name']; // assuming the input is named name
$message = "FULL NAME: ". $name. "/r/n"; // that's fine
// and if there are more input vars, concatenate those into $message...
// $message.= "ADDRESS: ". $address. "/r/n";
-
http://css.maxdesign.com.au/ - everything you need to know about CSS lists
-
Change
$config['Database']['tableprefix'] = "ibs_rest '';
The closer is two single quotes
to
$config['Database']['tableprefix'] = "ibs_rest";
The closer is one double quote
You have exactly the same problem with
$config['MasterServer']['username'] = "ibs_rest'';
Easily spotted once the script is shown with code tags here.
-
To follow up on runnerjp's post:
Replace
<form action="" enctype="multipart/form-data" id="form">
with
<form action="mailer.php" method="post" id="form">
but otherwise you can leave your code alone.
Upload his mailer.php script and keep your fingers crossed ...
-
SELECT DISTINCT Area WHERE Item_id = '$ItemID'
-
http://dev.mysql.com/doc/refman/5.0/en/reserved-words.html
from is a MySQL reserved word. You should avoid using it as a table name or field name.
-
um, the saving is actually high value minus low value all divided by high value, not low value divided by high value
What do you think
in Website Critique
Posted
I'm in a hurry as well. Why would we provide a critique of someone else's template?