Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. I agree, it's just a SMF forums with a design template that you picked out... Not much to critique anyway. -Don't use ads unless you have a load of traffic coming through, and, by judging the post amount, it looks like you don't have much. -Like j_combs mentioned, the "Creative" logo is blurry. I'm not even sure what kind of effect you're going for. -I do like the color scheme though.
  2. Ok, well does it exist?
  3. You took the exit; out, right? When you echo out the sql statement does it look correct? Are you still getting the "column not found" error? If so, go to your database and ensure it's exactly the same. Also, when you call the extracted you're using $uid rather than $user. $user = mysql_fetch_array($result); echo '</pre> <form>'; echo '';< needs to be: $user = mysql_fetch_array($result); echo '</pre> <form>'; echo ''; // CHANGED<
  4. ok, so if on step 1 i have a field 'name' and i validate it, and now move to step 2 the value of 'name' would be there, since the page had been reloaded only once to validate the $_POST. But would be lost after the visitor submits step 2 correct? Yes it would be lost. You can either store it in a session or a hidden field like meomike mentioned, to retain the values.
  5. Assuming you mean, 'not', please define this:
  6. Next time, there is a tab labeled [sOLVED].
  7. You give the mysql_query function the wrong string... Change the name of these strings: $sql = "UPDATE `basket` SET qty = '$qty' WHERE item_id = '$item_id'" or die(mysql_error()); echo $sql;
  8. Post your current code please.
  9. Maq

    PHP "Grouping"

    Cause that's how you would extract it from your database, using GROUP BY.
  10. You can perform a check to see if the current time is between these 2 intervals with the date function.
  11. You need to use "extends" and call the desired function from the extended class with parent: class someRandomclass { function myName() { return "Andrew"; } } class anotherRandomclass extends someRandomclass { function bothNames() { echo parent::myName() . " randomer"; } } $example2 = new anotherRandomclass(); echo $example2->bothNames(); ?>
  12. That doesn't look like the correct page or line numbers. You can't have any output before you call the header() function. Read more here: HEADER ERRORS
  13. Can you post an example? Every time you submit or refresh the page, you need to catch/pass the variables.
  14. That's something that you're supposed to do, the tab labeled [sOLVED]. I'll do it this time.
  15. I agree with nrg_alpha, I think it looks nice and professional. The only other thing I would change is the color scheme. It goes from white, to dark blue or dark gray. Just seems like it doesn't look right. I'm not the color schema expert but maybe a shade background for the top banner? Anyway, nice job
  16. Maq

    ive php ?

    That would be an option but, just note that it won't be 100% accurate. Users can disable JS and I don't think the unload() function is supported by all browsers.
  17. Lol. herghost, you need to learn to properly indent and format your code, this will help with debugging. The code you posted only looks like bits and pieces of the 'real' code.
  18. You're never getting the user_id from the previous page. Try this (*comments in code*): mysql_select_db("$db_name") or die("Could not find database"); $uid = $_GET['uid']; // Added to get the id from the URL $query = "SELECT username FROM members WHERE user_id = '$uid'"; $result = mysql_query($query) or die(mysql_error()); // Added or die for debugging
  19. Just like most OS's Linux has users that are given special permissions. If your user does not have matched permissions to edit/delete/update/modify etc... then you will receive these errors. I've never used a reseller account. Do you, by any chance, have SSH access?
  20. Neither. I mean the user these scripts are running as on your actual server.
  21. The first error is because the user you're executing "mkdir" doesn't have correct permissions to perform that command. If you're running as root you can just use "sudo mkdir" but I doubt you do if this a shared server. Are you testing this on your local machine? The second error should go away if you fix the first.
  22. I'm not sure about about the other errors, but read this sticky for the Headers error: http://www.phpfreaks.com/forums/index.php/topic,37442.0.html
  23. Book 2 & 3 by Linda and Mark...? Never heard of them. In any-case, you need to get a current book like thorpe mentioned, or, go online and find tutorials that have been recently written.
  24. Your code is so obfuscated, if you properly formatted then you would probably see why it's not working... Try this: while($row = mysql_fetch_array($result)) { echo "Go!"; } ?> I know right, you must way 50lbs...
  25. Why don't you just use the GET method and pass the the id of the user through the URL? echo ""; Then wherever you compose the message you can just grab the id with: $to_id = $_GET['to_id'];
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.