Jump to content

peranha

Members
  • Posts

    878
  • Joined

  • Last visited

Everything posted by peranha

  1. No, but if you have error reporting turned on, you will get errors that the variable is not set is it is empty.
  2. NO, it doesnt. It doesnt need to be filled in at all if you process something, the $_POST['name_of_input'] will be blank. The $_POST global goes by the name of the input not the value attribute. in your example it would be $_POST['companyname']
  3. I am confused at your question now. The value attribute fills in the box for you. if you want to insert the data back into the database you would do it the same way you process any form. You have a submit button and when clicked, process it. Not saying anything about obsolete.
  4. I would use an if/else as if the variable isnt set it will throw an error.
  5. You do it the same way you process any form. It is not dependent on the value attribute. You would just us $_POST['name_of_input']
  6. you forgot a closing " <input type="text" name="textfield12" id="textfield12" value="<?php echo $companyname; ?>" />
  7. Assuming id is the recno in the url, then. <?php $result = mysql_query("SELECT * FROM workinglife where id = '$record' and userid = '$userid'"); // check to see if any rows match. if (mysql_num_rows($result) == 1) { while ($row = mysql_fetch_array($result)) { the rest goes here......... } } // if no rows, display the error. else { echo "There is no record!"; } ?> Try that and see what happens.
  8. Try this and see what it does. if($task == "create_new_id") { $database->database_query("INSERT INTO se_gametags (gametag_user_id, gametag_note, gametag_active) VALUES ('{$user->user_info['user_id']}', 'No Personal Note Set!', '1')"); } Assuming $user->user_info['user_id'] is set. Do yo have any errors?
  9. you are missing the guid element. <title><![CDATA[<?php print("$rss_nm"); ?>]]></title> <description><![CDATA[<?php print("$rss_de"); ?>]]></description> <link>http://www.firstchoicepharmacy.co.uk/product-information.php?productid=<?php print("$rss_id"); ?></link> <guid>http://www.firstchoicepharmacy.co.uk/product-information.php?productid=<?php print("$rss_id"); ?></guid> <pubDate><?php print("$rss_dt"); ?></pubDate>
  10. I think what he is trying to say is that his password was invalid, and it was giving him the capture error instead of the password error. That is an SMF forum problem I would say.
  11. No, 45 would reference something in a database.
  12. yeah that sounds right. SELECT * FROM table WHERE username = "$username"; Something like that.
  13. Something like GEO-IP? It gets your location based on the ip address, but it may not be 100% accurate.
  14. are you critiquing this site? If so, the forum software is from SMF, the mods and admins dont like editing the source code because it makes it harder for upgrades if they have to keep redoing it. they have no control over what features come with the forum software.
  15. Is this the same as your common.php file here http://www.phpfreaks.com/forums/index.php/topic,237404.0.html
  16. Where did you get that script from? We have no idea what that function is supposed to do, so there really isnt much that we can help with. I'd say contact the company you got the script from and get that function from them. I can make a function, but I can also guarantee that it wont do what it is supposed to do, or what you expect it to do.
  17. That error means that the function getprizeproperty() does not exist. also use [ code] tags (without the space) it colors things and makes it easier to read.
  18. This query is not correct. what is the $ for in from of Academylevel, is it supposed to be after the = to sign? SELECT * FROM player WHERE id='$id' and $AcademyLevel='AcademyLevel'
  19. You cant move things, only mods can but only display the code you are having problems with, give us an example of what you want done, and then explain what doesnt work, what you expect it to do that way we have something work work off of.
  20. vague question Can we see some code, what it is supposed to do, more details would be helpful, and why is this in the sql section, it should be in the php section?
  21. Not a problem, I hate when that happens to me also.
  22. you are not setting the $user variable. You set $_SESSION['id'] to $username, try changing $user to $username and see what that gets you I see you are setting $user with $user $user = mysql_real_escape_string($user) should it be $user = mysql_real_escape_string($username)
  23. Something like this? Goes in the < head> part of your page. <link rel="alternate" type="application/rss+xml" title="site name here" href="rss.xml" />
  24. why not name them all the same, and set them to a different value? get the value of it, and then you will know where it came from.
  25. <input type="password" name="pasword" maxlength="30" value="<?php echo htmlentities($password); ?>" /></td> should be <input type="password" name="password" maxlength="30" value="<?php echo htmlentities($password); ?>" /></td> your name only has 1 s in password, not 2
×
×
  • 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.