Search Webmaster Help and Solution

[RESOLVED] Help with getting PHP script to work

Hi everyone. First off, Im really new to PHP and (serious) programming in general. I know HTML and a little C++, and Im just getting started on PHP, but Ive been working with websites for a long time.

I bought a script to use on a new website Im starting - iAuctionSites.com - its going to be a website auction site, like Flippa.com. I bought a script to use from a similar site.

Long story short, their script sucks, and I cant get it to work very well. They wont help me. I thought about trying to make my own script from scratch, but I figured it would work better to at least have something to start from, since I know so little PHP.

The problems:

There are a bunch of things in the script that arent working. The functionality is built into the pages, but its not working... for example:

You cant make auctions! You click the button, and nothing happens. It just reloads the page, and doesnt make the auction.

You can logon to the site to try to make a new auction if you want - use username "test2" and password "test2".

In the page code there is code to make a dialog prompting you that it worked - but it is never shown. Here is the code:

PHP Code: <?php if ($_SESSION[success][new_auction]): ?>
    <div class=message>
        <h2>Auction Created</h2>
        <p>Your auction has been created! You can <a href=/auction/<?php echo $_SESSION[return][auction_id]; ?>-<?php echo niceurls($_SESSION[return][title]); ?>.html>view it here</a>.</p>
    </div> Another problem (among many) is that after you register, it is supposed to show a dialogue saying that you registered. The code for this is:

PHP Code: <?php if ($_SESSION[success][register]): ?>
    <div class=message>
        <h2>Registration Complete</h2>
        <p>Your registration is complete! You can now <a href=/login/>login</a> using the form on the left. Please also check your email for a validation link!</p>
    </div> Most of the things that arent working on site are just if-then-else statements using some kind of $_SESSION variable. I dont understand what this variable is, or how the "[success][register]" comes into play regarding it... where should I look to find out what is wrong? How is $_SESSION being used here?...

Any help is appreciated! I know this seems like a stupid idea anyway, since its just a clone of Flippa, and clones are stupid. But Ive started making the site - Im going to finish it. Although this script might be a lost cause. Hi everyone. First off, Im really new to PHP and (serious) programming in general. I know HTML and a little C++, and Im just getting started on PHP, but Ive been working with websites for a long time.

I bought a script to use on a new website Im starting - iAuctionSites.com - its going to be a website auction site, like Flippa.com. I bought a script to use from a similar site.

Long story short, their script sucks, and I cant get it to work very well. They wont help me. I thought about trying to make my own script from scratch, but I figured it would work better to at least have something to start from, since I know so little PHP.

The problems:

There are a bunch of things in the script that arent working. The functionality is built into the pages, but its not working... for example:

You cant make auctions! You click the button, and nothing happens. It just reloads the page, and doesnt make the auction.

You can logon to the site to try to make a new auction if you want - use username "test2" and password "test2".

In the page code there is code to make a dialog prompting you that it worked - but it is never shown. Here is the code:

PHP Code: <?php if ($_SESSION[success][new_auction]): ?>
    <div class=message>
        <h2>Auction Created</h2>
        <p>Your auction has been created! You can <a href=/auction/<?php echo $_SESSION[return][auction_id]; ?>-<?php echo niceurls($_SESSION[return][title]); ?>.html>view it here</a>.</p>
    </div> Another problem (among many) is that after you register, it is supposed to show a dialogue saying that you registered. The code for this is:

PHP Code: <?php if ($_SESSION[success][register]): ?>
    <div class=message>
        <h2>Registration Complete</h2>
        <p>Your registration is complete! You can now <a href=/login/>login</a> using the form on the left. Please also check your email for a validation link!</p>
    </div> Most of the things that arent working on site are just if-then-else statements using some kind of $_SESSION variable. I dont understand what this variable is, or how the "[success][register]" comes into play regarding it... where should I look to find out what is wrong? How is $_SESSION being used here?...

Any help is appreciated! I know this seems like a stupid idea anyway, since its just a clone of Flippa, and clones are stupid. But Ive started making the site - Im going to finish it. Although this script might be a lost cause.

View Complete Thread with Replies

Related Items

Query failed: connection to localhost:3354 failed (errno=111, msg=Connection refused).