$query = 'INSERT into aeMail set test=\''.$_POST["test"].'\'';
Your quotes look screwy to me. You seem to be missing both trailing single
quotes.
try this:
$query = 'INSERT into aeMail set test=\'''.$_POST["test"].'\''';
At 01:07 PM 7/12/2004, Matthew Sims wrote:
PHP version 5.0.0RC3 (cgi) (built
textareas do not use the value attribute. instead, the value is placed
between the tags:
At 08:09 AM 7/12/2004, Hull, Douglas D wrote:
After doing calculations etc on my data I am wanting to place it in a
textarea form in html. I am having trouble getting my data to show up in
my texarea.
I use the following without problem:
$fp = fsockopen("udp://www.server.com", 24250, &$errno, &$errstr, .2);
if (!$fp) {
$status = "Server not available";
} else {
$trigger =
chr(hexdec('FF')).chr(hexdec('FF')).chr(hexdec('01')).chr(hexdec('00'));
fwrite($fp,$tr
For example, if you are not quoting your criteria:
sql = mysql_query("select * from users where name=".$name);
if someone enters the following in the name field, you're toast:
"Jim; delete from users;"
on the contrary:
sql = mysql_query("select * from users where name='".$name."'");
will simply loo
I use a system like that described below, however I added some checks to
thwart attack.
first, the image serving script checks to make sure the user has a session
id. This prevents people just loading the script to get the images, and
also deters hot linking.
second, I have a script that runs on
Aaron,
I copied your code to a test file called test.php and created the following
pages as dummy includes:
verify_faculty_info.php, functions.php and accesscontrol.php
in functions.php, I created a dummy search function:
function search(){
return "Found!";
}
in verify_faculty_info.php, I
This stuff is common in PHPbb. Usually you will find the constants like
that located in the template files. The definitions for those constants are
usually found in the php file associated with that template file. For example,
if you found "" in
/templates/subsilver/memberlist_body.tpl, the defi
I don't think there is a standard for the extensions of these files. In
fact, this page: http://www.w3c.org/TR/CSS1#basic-concepts
uses a url of "http://style.com/cool"; as an example of an external style sheet.
Also, I use a .php file as a javascript include on my site. The script is
included o
interfere with headers.
Keith
At 04:41 PM 11/15/2003, Leif K-Brooks wrote:
Keith Greene wrote:
That's not a bug either. Leaving out the ?> is simply telling the php
parser that it has to parse the rest of the script.
Where's the manual page saying that's allowed?
--
The abo
Yep. It allows you to only use php where needed, and use HTML for the rest.
At 04:02 PM 11/15/2003, you wrote:
On Sat, 2003-11-15 at 18:49, Leif K-Brooks wrote:
> Robert Cummings wrote:
>
> >FYI, if you're woprried about the "header cannot be sent due to
> >output..." error, then if your file only
It's so much easier to use the mod (%) operator:
using the mod operator, you can check if a variable is divisible by some
other number without leaving a remainder.
For this example, we want to change every other row, so we would compare
our $count against 2 to see if it leaves a remainder:
$bg =
It's not a bug. Anything (including spaces, newlines etc) that is not
inside is output directly to the browser.
At 03:49 PM 11/15/2003, you wrote:
Robert Cummings wrote:
FYI, if you're woprried about the "header cannot be sent due to
output..." error, then if your file only has code and no HTML
After restarting apache, the error is gone. Still not sure what was causing
it. The site was running fine to begin with, and the environment vars
have been in use for over a year throughout the site.
Keith
At 12:56 PM 11/10/2003, Keith Greene wrote:
Greetings list,
I have run into a problem
Greetings list,
I have run into a problem that has me at my wits end. We run an affiliate
program, and have forum software (phpBB) wrapped in our menu system.
There are 2 sides to the site, Affiliates and Admin, and I have 2 installs
of the board using the same database. This all works fine.
The
14 matches
Mail list logo