Here is some reading for you:
http://www.dreamincode.net/forums/showtopic6747.htm
http://discuss.fogcreek.com/joelonso...w&ixPost=23596
http://forums.dathorn.com/showthread.php?t=2546
Short answer: don't do it!
Sean...
User Profile
Collapse
-
I couldn't find the createThumbnail function anywhere. Is there more code than what you posted?
Sean...Leave a comment:
-
Ronald, it should be valid HTML which would be this:
[php]echo '<form action="' . $_SERVER['PHP_SELF'] . '" method="post">' ;[/php]
Double-quotes should be used for HTML attributes. Using single-quotes makes the HTML code invalid in the HTML 4.0, and XHTML 1.0 specs.
Plus, Double-quotes are parseable, but using single-quotes is better because they are not parsed for vairables....Leave a comment:
-
Can you use phpMyAdmin? It has a nice import utility for CSV files.
SeanLeave a comment:
-
seangates replied to PHP is unable to retrieve information via $_POST on my localhost but $_GET works?in PHPAnd if you run it with $_POST? Using $_POST is more secure anyway, since it is a direct reference to the posted items and does not allow you to accept $_GET variables.
Sean...Leave a comment:
-
The line in PHP.INI needs to be
Code:extension=libeay32.dll
Code:extension=ssleay32.dll
Sean...Leave a comment:
-
Could you format your code correctly? Then I could probably figure it out for you. Please use the REPLY GUIDELINES (to the right of the reply form) when you enter your comments, and it will tell you how to submit the PHP code.
Thanks,
SeanLeave a comment:
-
There's always AJAX, but you would also need a <input type="file" ... > field.
SeanLeave a comment:
-
-
To be very clear: you cannot output anything (HTML,CSS,JavaS cript) before redirection.
Therefore, move any processing of the page (error_checking , database transactions) above/before ANY output.
Use some variables and leave the output for later.
Hope that makes it clearer.
SeanLeave a comment:
-
goresus,
You have to put the forms together. Whatever form you submit gets submitted. So, when you click the submit button for the first form (topButton3), you don't get anything because there are no other fields besides the button itself.
So, you need to combine them, kinda like this:
[php]
<FORM NAME='topButton 3' METHOD='post' ACTION='closeBi ll.php'>
<td width="25%"><in put...Leave a comment:
-
seangates replied to PHP is unable to retrieve information via $_POST on my localhost but $_GET works?in PHPHmm. Works for me. Here's what I do:- Do a search on Google
- Find an EE link
- Click on "Cached" (down below) instead of the result link
Anyhow, do you have code we could look at? Not to insult your posts, but I haven't seen any code yet.
Thanks!
Sean...Leave a comment:
-
Database Abstraction
I just wanted to make a plug for database abstraction in your programming. I use a database class called ezSQL. It is by far the easiest I've used and the one that will save you TONS of time when coding, and allow you to move from one DB to another seamlessly.
Also, I think a lot of the newbies in this forum could benefit from a good understanding of the powerful features of OOP in PHP. Anything we can do to help them to do this... -
Firstoff, please use the code formatting for your posts. It would help.
[PHP]$result = mysql_query("SE LECT * FROM mccnews, topics where mccnews.topicid = topics.topicid" ,$connect);[/PHP]
This just shows all of the rows from the mccnews table. You need some way to limit it.
I think what you are trying to do requires a nested loop. Like this:
[PHP]$topics = mysql_query("SE LECT * FROM topics",$connec t);...Leave a comment:
-
seangates replied to How do i join 2 querys and use the result from one to disallow part of the other.in PHPAn easier way would be:
[PHP]$result = mysql_query("
SELECT username,cat,co mment,photo,use rid
FROM pp_comments WHERE cat NOT IN (508,512)
ORDER BY date desc
LIMIT 5")
or die(mysql_error ());[/PHP]
When you use the "IN" operator (negated by "NOT", of course) you are able to use arrays of numbers. Therefore, if your categories grow, you can use something like this to...Last edited by seangates; Dec 1 '06, 09:19 PM. Reason: Added answer to second question about eliminating blank comments.Leave a comment:
-
TKB,
You need to reference the posted selection. Thus, here is your fixed code:
[PHP]$query ="INSERT INTO orderdetails (CategoryName)
VALUES('$_POST[categoryname]')";
mysql_query($qu ery) or die(mysql_error ());[/PHP]
Hope that helps.
Sean...Leave a comment:
-
To sum up here is the fixed code:
Code:<?php If ($CategoryName == 'U-100') { $UnitPrice = 500; } elseif ($CategoryName == 'U-130') { $UnitPrice = 400; } elseif ($CategoryName == 'U-105') { $UnitPrice = 350; } elseif ($CategoryName == 'U-95') { $UnitPrice = 200; } elseif($CategoryName == 'U-85') { $UnitPrice = 445; } $Total = $ProductUnits*UnitPrice;
Leave a comment:
-
seangates replied to PHP is unable to retrieve information via $_POST on my localhost but $_GET works?in PHPAn easy way around Experts-Exhange (at least existing answers) is when you have found the answer through Google to click on "Cached". It'll show the answers plain as day. :-)
Sean...Leave a comment:
No activity results to display
Show More
Leave a comment: