
serverman
Members-
Posts
215 -
Joined
-
Last visited
Everything posted by serverman
-
Thanks that made it run 2 times faster .
-
would it have been better to use case over if in this snippet of my script. <?php// Below checks to see if anything was forgotten!!!! // if ($q1 == "") { die ("You forgot something, go back and check over your quiz."); } if ($q2 == "") { die ("You forgot something, go back and check over your quiz."); } if ($q3 == "") { die ("You forgot something, go back and check over your quiz."); } if ($q4 == "") { die ("You forgot something, go back and check over your quiz."); } if ($q5 == "") { die ("You forgot something, go back and check over your quiz."); }if ($q6 == "") { die ("You forgot something, go back and check over your quiz."); } if ($q7 == "") { die ("You forgot something, go back and check over your quiz."); } if ($q8 == "") { die ("You forgot something, go back and check over your quiz."); } if ($q9 == "") { die ("You forgot something, go back and check over your quiz."); } if ($q10 == "") { die ("You forgot something, go back and check over your quiz."); } // Below is where the answers are checked actually displayed //?>
-
looks nice html is invalid tho http://validator.w3.org/check?uri=http%3A%2F%2Fwww.bunakeninternational.nl%2Fbeach%2F css is invalid http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.bunakeninternational.nl%2Fbeach%2Fscripts%2Fstyle.css and soda cost alot! and its in german(i think) and i dont know german! lol jk
-
well also if your going for a great laptop and good os... go apple with os x but its gonna cost hella lot
-
well asus makes some cool laptops... but really idont like laptops there batterys are really only good for 1/2 to 1 year (if your lucky 2) and they run hot and you cant upgrade them. but if this is just for work or pc on the go you can get a cheap one from dell also i would put unix on it but your not me so xp if its for work(xp is great for laptops) vista if its just for you. oh and vista looks a little more sexy than xp.
-
yeah and popbehind suck also... and yeah its porn too and im like 16... dont think you should have popups like that sorry
-
Hmm i didn't know that and yeah why not ill go with one more stick
-
yah, Im going with embark 3mbs internet and i got an cisco switch from a friend (non wireless)
-
hi... can some please take like 10 mins and check over my server im design. (im kinda new to system building and im not sure about power supply and if its powerfull enough) and if every thing is gonna be there that i need but i think i covered all my bases. http://www.newegg.com/Product/Product.aspx?Item=N82E16813151062 190$ mother http://www.newegg.com/Product/Product.aspx?Item=N82E16814141035 20$ vga http://www.newegg.com/Product/Product.aspx?Item=N82E16819105018 120$ Prosseser http://www.newegg.com/Product/Product.aspx?Item=N82E16820134653 35*3 $105 RAM http://www.newegg.com/Product/Product.aspx?Item=N82E16817104018 $100 power http://www.newegg.com/Product/Product.aspx?Item=N82E16811123126 $120 Box http://www.newegg.com/Product/Product.aspx?Item=N82E16822152107 $60 HDD http://www.newegg.com/Product/Product.aspx?Item=N82E16835106098 13*3 $39 ram cooler http://www.newegg.com/Product/Product.aspx?Item=N82E16811999151 7*2 $14 Fan ------------------------------------------------------------------------------ $648 ------------------------------------------------------------------------------ ok and do you think this is gonna run mysql(midsize), php, freebsd(unix os) and apache well. content will be php generated pages, a forum(phpbb) and some client side tools(javascript) do you think this will do better than get the job done (and will the server work) ??? ??? ??? please and thank you
-
[SOLVED] echo x number of times(really noob question)
serverman replied to serverman's topic in PHP Coding Help
ok here is what i did and it works <?php $n = 2; for ($i = 1; $i <= $n; $i++) { echo "test"; } ?> oh and thank you -
Ok how would get this to work (this is just a guess at the code) <?php $n = 5 echo "test " * $n ; ?> outcome of test test test test test sorry I am really new to this and wasn't sure were to find this out on W3schools or php.net
-
ok this isnt really a php question but more of a question were to start and how hard will it be . i want to write a script that will crawl my site and make a site ring first i want to know how hard will this be? and were would i start (im pretty new to php).
-
ok i set up a new testing server. i went from windows xp with apache, php, mysql(wamp) to freebsd, apache, php, mysql(famp? lol) ok here is what i need to know. how do i get mysql5.1(unix) to download all the databases and tables off mysql5.0(windows)
-
thanks dude i that was alot of help i give you 2 tumbs up for taking the time to explain and not just show me how to do it thanks... php is sweet!
-
ok ive been reading the mysql_real_escape but i dont get it... will some one please explane how to add it to my code and how it works (please and thank you) oh and the code is a little sloppy i did it my self and im a noob (like 6 months of looking at php and 1 of working with it) and if you have any tips on how to improve this please do share <?php //vars $login = mysql_connect("---","---","---"); $firstname = $_POST['firstname']; $comment = $_POST['comment']; $ip = getenv('REMOTE_ADDR'); //test if(!$firstname || !$comment ) { die("Fill the form properly!"); } //connect if (!$login) { die('Could not connect: ' . mysql_error()); } mysql_select_db("website_stuff", $login);$sql="INSERT INTO comment (FirstName, LastName, Email, Comment, Ip) VALUES('$_POST[firstname]','$_POST[lastname]','$_POST[email]','$_POST[comment]', '$ip')"; //query if (!mysql_query($sql,$login)) { die('Error: ' . mysql_error()); } // ending echo "Thank you for leaving a comment."."<a href='../../home.PHP'>Back to Home</a>"; mysql_close($login) ?>
-
server is gonna be down tell i finish upgrading (moving from wamp to uamp) ;P
-
ok heres what i did $firstname = $_POST['firstname']; $comment = $_POST['comment']; if(!$firstname or !$comment) { die("Please complete all fields"); } it works... but is that a correct way to do it?
-
sweet thank... that was an easy one... i'm really new to this stuff thanks for the help
-
i want to make this have the first/last name and comment be required to post the message to the sql database ok heres my script for the form <form action="../Beta/leaveacomment/insert.php" method="post"> <h3 align="center">Give us some feedback</h3><table width="250" border="1" align="center"> <tr> <td>Firstname:</td> <td><input name="firstname" type="text" maxlength="15" /></td> </tr> <tr> <td>Lastname:</td> <td><input name="lastname" type="text" maxlength="15" /></td> </tr> <tr> <td>Email : </td> <td><input name="email" type="text" id="email" /></td> </tr> <tr> <td>Comment</td> <td><label> <textarea name="comment" id="comment"></textarea> </label></td> </tr> <tr> <td colspan="2"><input type="reset" name="Reset" value="Reset" /> <input name="submit" type="submit" /> <label></label></td> </tr> </table> </form> here is code for the processer <?php $login = mysql_connect("---","---","---"); if (!$login) { die('Could not connect: ' . mysql_error()); }mysql_select_db("website_stuff", $login);$sql="INSERT INTO comment (FirstName, LastName, Email, Comment) VALUES ('$_POST[firstname]','$_POST[lastname]','$_POST[email]','$_POST[comment]')";if (!mysql_query($sql,$login)) { die('Error: ' . mysql_error()); } echo "thank you for leaving a comment."."<a href='../../home.PHP'>Back to Home</a>";mysql_close($login) ?>
-
how do you do that (im kinda knew to apache) ... never mind i found it and turnd it off (auto indexing)
-
ok i havent bought a url yet so here we go http://67.235.113.161/ ... also im not the content writer just scripter/databases (also i did write the about section) but give me some feedback. (any content ill relay to the writer) also feel free to leave a comment in my comment bock i wrote and you can join the forum on there to if you like its just (waiting for content writer to send me the imgs to make the link with lol http://67.235.113.161/phpBB3
-
ok ivve set up a new tester server (moved from xp to freebsd) and i want to transer all the sql data off the xp to the freebsd... how is that done?
-
ok i want to view my test server at some one elses house lol... i know my momdems ip, i know the first router ip... then the 2nd router... then the server ip... and i know x.x.x.x(home ip... not shareing altho its easy to find out)/192.168.1.1(router2)/192.168.0.4(server) does not work what does
-
i dont know the bump rules here... but 270 somthing view and no one replies?