
benjaminbeazy
Members-
Posts
460 -
Joined
-
Last visited
Never
Everything posted by benjaminbeazy
-
no that gives you the script path, not the from address. post the processor.php code plz
-
are u getting an error, r u sure the filepath is valid relative to the script?
-
i'm not sure exactly how you're posting all of the variables from each query result row to a new script... that doesn't make sense to me you need your query in the same script as your message variable definition to construct, you need to iterate through each of the query results via a while loop while($row_getItem = mysql_fetch_assoc($getItem)){ $msg.= "price: {$row_getItem['price']}\n"; etc... }
-
rye, that wont work, you cant send header() by itself after any output has been printed to the screen because headers need to be generated before said output can't remember exactly what you need... but output buffering is the way to do it if you want to stick with header() after printing
-
you can use a different form of redirection or use ob_start(): http://us2.php.net/manual/en/function.ob-start.php
-
How do you format file contents with readfile or get_file_contents?
benjaminbeazy replied to Moron's topic in PHP Coding Help
try a loop with file(): http://us2.php.net/manual/en/function.file.php -
variable names cant start with a number also...
-
haven't disseminated everything but your init_set at the top of the code should be "ini_set". also add... ini_set('display_startup_errors', 1); to make sure you catch everything, that should tell you the errors
-
use php. please post code.
-
it's ok. andy overlooked the fact that during the function definition, passed variables can be renamed whatever as long as they are referenced within the function by said name. he saw a mismatch between that and your servername variable in the array.
-
your query is messed up, echo $sql and see what it looks like
-
empty means variable is empty... the integer 0 is considered empty, as is "0" in a string isset checks if variable exists, including the values above $_POST['form_name'] == '' the problem with that is the user could still supply irrelevant information and pass that check, ie whitespace or any number of other things.
-
Need to grab all rows to populate table, only grabbing 1
benjaminbeazy replied to Skor's topic in PHP Coding Help
nope, if you check the other topic where you posted the question. i suggested a couple solutions. how is the info transferred from the shopping cart, is it already in a database or is it a posted string or what. if its already in the db, try what mmarifu4u suggested. -
Need to grab all rows to populate table, only grabbing 1
benjaminbeazy replied to Skor's topic in PHP Coding Help
what does the code do right now? errors? -
PHP HTML Email -- Can you include logic in message
benjaminbeazy replied to Skor's topic in PHP Coding Help
well, actually you dont even need that, u could just do this... <?php $message = "This is my message to you"; if(!empty($ADDRESS_VAR)){ $message .= "Ship to: etc"; } $message .= "Your friend Ben"; ?> Please excuse my absent-mindedness. I have been up too long, as usual. -
PHP HTML Email -- Can you include logic in message
benjaminbeazy replied to Skor's topic in PHP Coding Help
why not make 2 versions of the message, 1 with ship info, 1 without based on whether or not address exists? -
lol, too true... well i guess its still kinda interesting.
-
Ben, 21, bay city, mi. started dinking with php in high school, really got into it 2 years ago. just got certified php5, but that dont mean crap. just looking to get a better job...
-
I had a Gateway with an AMD 2.2 GHZ, cannot remember model but it had 512 ram. Brand new it was slower than molasses, even with all the usual xp perfomance mods (adjust best performance, disabling useless startup programs, 4gb virtual ram, etc) then i ran over it with my car on the way to a Tigers game...
-
I'm just curious as to how others are doing out there... Mod: Whoops, didn't even realize there was a Forum specifically for polls. My bad.
-
umm... when i type in the url http://babble-net.com/images, it gives me a directory listing for all directories, you should mae a blank index or smething so people cant see everything in the directory
-
whoops, nvm it looks pretty good overall
-
i dont think that's what he's asking as i understand it, you want to know if you should redeclare the class as $db inside the set_currency function or any other, right? if your db and currency are always includes to index.php, then no you don't have to redeclare it... just put global $db; at the beginning of your set_currency function and reference the class like $db->whatever inside the function, assuming the class has already be instantiated in index