Forum: PHP Oct 23rd, 2008 |
| Replies: 11 Views: 931 What column types are you using in your database for the dates?
If you're using date/datetime, make sure you are inputting the same format as your database columns (generally YYYY-MM-DD).
Also... |
Forum: PHP Oct 22nd, 2008 |
| Replies: 7 Views: 655 Using the COUNT(*) query by PoA or mysql_num_rows on your query will return the same value. |
Forum: PHP Oct 22nd, 2008 |
| Replies: 8 Views: 1,193 Try this in your switch statement:
switch ($action)
{
case "partner_company":
$_GET['page'] = 'partner'; // Define the page - variable will then be available in addcompany.php
include... |
Forum: PHP Oct 22nd, 2008 |
| Replies: 4 Views: 433 Yes that is correct, you then could do something along the lines of:
if (ereg(':', $_COOKIE['RATED_PRODUCTS']))
{
// We have more than 1 product id
$pids = explode(':',... |
Forum: PHP Oct 22nd, 2008 |
| Replies: 11 Views: 931 If you have magic_quotes on, make sure you strip slashes before running the mysql_real_escape_string on your $_POST vars |
Forum: PHP Oct 22nd, 2008 |
| Replies: 3 Views: 392 No need to be embarrassed, I do it all the time :D |
Forum: PHP Oct 22nd, 2008 |
| Replies: 4 Views: 433 I think it has to do with your cookie name:
'ms-'.$pid
This is going to be different for each product that is rated, thus creating another cookie.
Try using one name for the cookie and... |
Forum: PHP Oct 22nd, 2008 |
| Replies: 3 Views: 392 Hey soultrav,
Not sure if this is a typo in your post, line 9 should read:
while($slot[$i] == $slot[$j])
You seem to be missing the $ |
Forum: PHP Oct 22nd, 2008 |
| Replies: 1 Views: 375 Hi there,
I am writing a free php extension and am wondering if I'll need to compile it for each operating system (FreeBSD, Sun, etc...). I have compiled a separate dll for windows.
Cheers |
Forum: IT Professionals' Lounge Aug 31st, 2007 |
| Replies: 11 Views: 4,759 I wrote a paper on this back in my first year of uni. Here's my take on it all.
Firstly, I am not prejudice, just merely stating the facts. I believe we all are human beings that have the same... |
Forum: IT Professionals' Lounge Aug 31st, 2007 |
| Replies: 1 Views: 1,008 It depends on your taxation and government laws (I have no idea what your laws are in India).
Here in Oz we must pay our taxes if earning an income, and register a business if you trade under a... |
Forum: IT Professionals' Lounge Aug 31st, 2007 |
| Replies: 3 Views: 1,098 IT has majors and minors, it is possible to do very little programming. Computer science is more so based on system architecture.
All I can say sasikala123 is practice makes perfect.
Perhaps... |
Forum: Community Introductions Aug 31st, 2007 |
| Replies: 3 Views: 646 Oh yes I will find you useful till the day I die - I've had you bookmarked for a long time now.
Such variety too. From solving Microsoft's endless list of problems to programming techy stuff, you... |
Forum: PHP Aug 31st, 2007 |
| Replies: 4 Views: 5,008 Hehe, sorry, my bad. I suppose that's what you get for answering at 3am on a Sunday morning.
You'll probably see a couple of others where I didn't read the date...
I'll apologise now in advance... |
Forum: PHP Aug 31st, 2007 |
| Replies: 4 Views: 5,008 It's also good practice to clean-up when you're finished with your MySQL results:
@mysql_free_result($result);
This would go at the end of your while loop |
Forum: PHP Aug 31st, 2007 |
| Replies: 4 Views: 5,008 Hey Huw,
You'll need to do something like this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- This site was created by Huw Hughes - huw_hughes712@hotmail.com -->... |
Forum: PHP Aug 31st, 2007 |
| Replies: 3 Views: 2,061 Hi invader980,
No it's not possible for PHP to do this as PHP is a server side scripting language and a drop down box (HTML) is client side.
You can however use PHP and javascript to accomplish... |
Forum: Community Introductions Aug 31st, 2007 |
| Replies: 3 Views: 646 Hey all,
Sorry, I didn't realise there was an introducer forum, my bad.
Great site you have here. Have used it for many of years now. It's helped me a lot.
I'm from Australia and study IT at... |
Forum: *nix Hardware Configuration Aug 31st, 2007 |
| Replies: 0 Views: 1,375 Hi there,
Great site you have here, I have found it most helpful for a number of years.
I have a very strange problem that my server provider and cPanel support can't help me with.
Here's... |