peranha
Members-
Posts
878 -
Joined
-
Last visited
Everything posted by peranha
-
[SOLVED] Quicky: How do display default text in a regular text box?
peranha replied to webmaster1's topic in PHP Coding Help
No, but if you have error reporting turned on, you will get errors that the variable is not set is it is empty. -
[SOLVED] Quicky: How do display default text in a regular text box?
peranha replied to webmaster1's topic in PHP Coding Help
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'] -
[SOLVED] Quicky: How do display default text in a regular text box?
peranha replied to webmaster1's topic in PHP Coding Help
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. -
[SOLVED] Quicky: How do display default text in a regular text box?
peranha replied to webmaster1's topic in PHP Coding Help
I would use an if/else as if the variable isnt set it will throw an error. -
[SOLVED] Quicky: How do display default text in a regular text box?
peranha replied to webmaster1's topic in PHP Coding Help
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'] -
[SOLVED] Quicky: How do display default text in a regular text box?
peranha replied to webmaster1's topic in PHP Coding Help
you forgot a closing " <input type="text" name="textfield12" id="textfield12" value="<?php echo $companyname; ?>" /> -
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.
-
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?
-
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>
-
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.
-
No, 45 would reference something in a database.
-
yeah that sounds right. SELECT * FROM table WHERE username = "$username"; Something like that.
-
Something like GEO-IP? It gets your location based on the ip address, but it may not be 100% accurate.
-
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.
-
Is this the same as your common.php file here http://www.phpfreaks.com/forums/index.php/topic,237404.0.html
-
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.
-
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.
-
keep getting syntax error, cant figure out why :(
peranha replied to kendallkamikaze's topic in PHP Coding Help
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' -
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.
-
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?
-
[SOLVED] Is this too hard for a noob to make work?
peranha replied to justAnoob's topic in PHP Coding Help
Not a problem, I hate when that happens to me also. -
[SOLVED] Is this too hard for a noob to make work?
peranha replied to justAnoob's topic in PHP Coding Help
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) -
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" />
-
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.
-
<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