Jump to content
xisto Community

HmmZ

Members
  • Content Count

    365
  • Joined

  • Last visited

Everything posted by HmmZ

  1. Nice tutorial,I dont know the program, so my suggestion could be complete nonsense, if the program also has a light effect function, why not render the light from just under the fire, so the density of the fire is higher at the "core" of the fire, would make it more realistic.Or you could try with a second layer (if the program can use some kind of multiple layers) where the layer above that fire layer, would be smaller and based at the bottom of the first fire (probably very confusing how Im explaining it now).
  2. BTW, before you say it, I also tried instead of: $use = mysql_query("use ******", $resourceId);if (!$use) {die("Error2" . mysql_error());} $database = mysql_query("******", $resourceId);if (!$database) {die("Error2" . mysql_error());} I just used $use instead of $database because ive read before that $database can't be used or something..
  3. $database = mysql_query("use //my db", $resourceId); if (!$database) { die("Error2" . mysql_error()); } is the error now i put it right after $SQL: else { $password=md5($password); $SQL="INSERT into go_logintable(username, password, fullname, gender, birthday, birthmonth, birthyear, country, email) VALUES ('{$username}','{$password}','{$fullname}','{$gender}','{$birthday}','{$birthmonth}','{$birthyear}','{$country}','{$email}')"; $resourceID = mysql_connect("localhost", "*****", "*****");if (!$resourceID) {die("Error1" . mysql_error());}$use = mysql_query("use ******", $resourceId);if (!$use) {die("Error2" . mysql_error());}$success = null; //make success a null variable, you can also define it to false insteadif ($resourceID) {$success = mysql_query("$SQL", $resourceID);} }
  4. im just gonna show you the 2 files i use, please help me out, its giving an error i made in the reguser file. The Form <table border="0" width="500" border="0" align="center" valign="top"><form method="post" action="Users/reguser.php" valign="top"> <tr> <th width="81" align="left" valign="top"><div align="left" valign="top"><font size="2">Username:</div></th> <td width="152" align="center" valign="top"><input name="username" type="text" STYLE="color: #D80202; font-weight: bold; font-size: 12px;background-color: #000000;"><br><br></td> </tr> <tr> <th width="81" valign="top"><div align="left" valign="top"><font size="2">Password:</div></th> <td width="152" align="center"><input name="password" type="password" value="" STYLE="color: #D80202; font-weight: bold; font-size: 12px;background-color: #000000;"></td> </tr> <tr> <th width="81" valign="top"><div align="left" valign="top"><font size="2">Confirm Password:</div></th> <td width="152" align="center"><input name="password2" type="password" value="" STYLE="color: #D80202; font-weight: bold; font-size: 12px;background-color: #000000;"><br><br></td> </tr> <th width="81" valign="top"><div align="left" valign="top"><font size="2">Full Name:</div></th> <td width="152" align="center"><input name="fullname" type="text" value="" STYLE="color: #D80202; font-weight: bold; font-size: 12px;background-color: #000000;"></td> </tr> <tr><th width="81" valign="top"><div align="left" valign="top"><font size="2">Gender:</div></th> <td width="152" align="center"><input name="gender" type="radio" value="1" checked><font size="2"><b>Male<input name="gender" type="radio" value="2">Female</td> </tr> <tr><th width="81" valign="top"><div align="left" valign="top"><font size="2">Birth Date:[dd/mm/yyyy]</div></th> <td align="center"><font size="2"><b>Day<select name="birthday" style="background-color: #000000;font size=10; color:#D80202; text-decoration: bold;" size="1" border="0"><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option><option value="11">11</option><option value="12">12</option><option value="13">13</option><option value="14">14</option><option value="15">15</option><option value="16">16</option><option value="17">17</option><option value="18">18</option><option value="19">19</option><option value="20">20</option><option value="21">21</option><option value="22">22</option><option value="23">23</option><option value="24">24</option><option value="25">25</option><option value="26">26</option><option value=27">27</option><option value="28">28</option><option value="29">29</option><option value="30">30</option><option value="31">31</option></select><font size="2">Month<select name="birthmonth" style="background-color: #000000;font size=10; color:#D80202" size="1" border="0"><option value="1">January</option><option value="2">February</option><option value="3">March</option><option value="4">April</option><option value="5">May</option><option value="6">June</option><option value="7">July</option><option value="8">August</option><option value="9">September</option><option value="10">October</option><option value="11">November</option><option value="12">December</option></select><font size="2">Year<select name="birthyear" style="background-color: #000000;font size=10; color:#D80202" size="1" border="0"><option value="2005">2005</option><option value="2004">2004</option><option value="2003">2003</option><option value="2002">2002</option><option value="2001">2001</option><option value="2000">2000</option><option value="1999">1999</option><option value="1998">1998</option><option value="1997">1997</option><option value="1996">1996</option><option value="1995">1995</option><option value="1994">1994</option><option value="1993">1993</option><option value="1992">1992</option><option value="1991">1991</option><option value="1990">1990</option><option value="1989">1989</option><option value="1988">1988</option><option value="1987">1987</option><option value="1986">1986</option><option value="1985">1985</option><option value="1984">1984</option><option value="1983">1983</option><option value="1982">1982</option><option value="1981">1981</option><option value="1980">1980</option><option value="1979">1979</option><option value="1978">1978</option><option value="1977">1977</option><option value="1976">1976</option><option value="1975">1975</option><option value="1974">1974</option><option value="1973">1973</option><option value="1972">1972</option><option value="1971">1971</option><option value="1970">1970</option><option value="1969">1969</option><option value="1968">1968</option><option value="1967">1967</option><option value="1966">1966</option><option value="1965">1965</option><option value="1964">1964</option><option value="1963">1963</option><option value="1962">1962</option><option value="1961">1961</option><option value="1960">1960</option><option value="1959">1959</option><option value="1958">1958</option><option value="1957">1957</option><option value="1956">1956</option><option value="1955">1955</option><option value="1954">1954</option><option value="1953">1953</option><option value="1952">1952</option><option value="1951">1951</option><option value="1950">1950</option><option value="1949">1949</option><option value="1948">1948</option><option value="1947">1947</option><option value="1946">1946</option><option value="1945">1945</option></select></td> </tr> <th width="81" valign="top"><div align="left" valign="top"><font size="2">Country:</div></th> <td width="152" align="center"><input name="country" type="text" value="" STYLE="color: #D80202; font-weight: bold; font-size: 12px;background-color: #000000;"><br><br></td> </tr> <th width="81" valign="top"><div align="left" valign="top"><font size="2">E-Mail:</div></th> <td width="152" align="center"><input name="email" type="text" value="" STYLE="color: #D80202; font-weight: bold; font-size: 12px;background-color: #000000;"></td> </tr> <th width="81" valign="top"><div align="left" valign="top"><font size="2">Confirm E-Mail:</div></th> <td width="152" align="center"><input name="email2" type="text" value="" STYLE="color: #D80202; font-weight: bold; font-size: 12px;background-color: #000000;"><br><br><center><input type="image" src="images/go_register_reg.gif" value="submit" border="0"></center></td> </tr></form></center></table></table> Probably a very confusing script, but it gives me exactly what I want on the register page, just keep the input field names and values in mind for next script. <?phpinclude "connect.php";include "*******";include "*******";if ($_POST){extract($_POST);if ($password!=$password2) { print "<table border='0' align='center' valign='center' width='400' height='400'><tr><td align='center'><font size='2'><b>Your Confirm Password didn't match the original password</b><br><A HREF='javascript:history.back()'><img src='online.trap17.com/****/****/go_backbutton.gif&%2339; border='0'></A></td></tr></table>";}elseif ($email!=$email2) { print "<table border='0' align='center' valign='center' width='400' height='400'><tr><td align='center'><font size='2'><b>Your Confirm E-Mail didn't match the original E-Mail</b><br><A HREF='javascript:history.back()'><img src='online.trap17.com/****/****/go_backbutton.gif&%2339; border='0'></A></td></tr></table>";}elseif ($username==''||$password==''||$fullname==''||$country==''||$email=='') { print "<table border='0' align='center' valign='center' width='400' height='400'><tr><td align='center'><font size='2'><b>You did not fill out all the fields</b><br><A HREF='javascript:history.back()'><img src='online.trap17.com/****/****/go_backbutton.gif&%2339; border='0'></A></td></tr></table>";}else { $password=md5($password); $SQL = "INSERT into go_logintable(username, password, fullname, gender, birthday, birthmonth, birthyear, country, email) VALUES ('$username','$password','{$fullname}','{$gender}','{$birthday}','{$birthmonth}','{$birthyear}','{$country}','{$email}')"; if (!$SQL) { echo "<table border='0' align='center' valign='center' width='400' height='400'><tr><td align='center'><font size='2'><b>registration successful</b></td></tr></table>";}else { echo "<table border='0' align='center' valign='center' width='400' height='400'><tr><td align='center'><font size='2'><b>Registration process was interrupted</b><br><A HREF='javascript:history.back()'><img src='online.trap17.com/****/****/go_backbutton.gif&%2339; border='0'></A></td></tr></table>";}}}?> the error "Registration process was interrupted" keeps popping up, meaning the sql query didnt go well, so I looked in the query, and after some other thread where I asked for help for that, it should be fine now... So couldn't it be your database then? Maybe, this is the create function I used: create table go_logintable( ID int(10) NOT NULL auto_increment, username varchar(20) NOT NULL unique, password varchar(20) NOT NULL, fullname varchar(40) NOT NULL, gender int(1) NOT NULL, birthday int(2) NOT NULL, birthmonth int(2) NOT NULL, birthyear int(4) NOT NULL, country varchar(25) NOT NULL, email varchar(50) NOT NULL, PRIMARY KEY (ID)) Hope you guys can help me..
  5. Could you tell me wich themes don't have pictures then? There are alot of themes and i dont wanna try them all, simply because it's so slow
  6. Ok big thanks for the help CarstenIll be needing more help later maybe, I know little by little how to work, but sometimes I just bounce to some problems.
  7. elseif ("$username=''.$password=''.$fullname=''.$country=''.$email=''") { print "<table border='0' align='center' valign='center' width='400' height='400'><tr><td align='center'><font size='2'><b>You did not fill out all the fields</b><br><A HREF='javascript:history.back()'><img src='http://forums.xisto.com/no_longer_exists/; border='0'></A></td></tr></table>";} whats wrong with this statement, I did fill everything out and it still gives the error?
  8. Just another quick question Of course I need to create a table for the database and im unsure what the table needs (the ones i am not sure of are made red-colored) CREATE TABLE go_logintable ( ID int(10) NOT NULL auto_increment, username varchar(20) NOT NULL unique '', password varchar(20) NOT NULL default '', fullname varchar(40) NOT NULL default", gender bit NOT NULL default", birthday datetime NOT NULL default", birthmonth datetime NOT NULL default", birthyear datetime NOT NULL default", country varchar(25) NOT NULL default", email varchar(50) NOT NULL default", PRIMARY KEY (ID) )
  9. Thanks for the fast reply, hope it works =)To understand it later on:if ($_POST){extract($_POST); whats that for?
  10. I wanna suggest a new skin, that takes a much shorter amount of time to load, cPanel is very slow on my side, i dont know if im the only one, but my connection is good so it cant be that.Maybe you guys could add a LoFi version of cPanel in, that doesnt have a large amount of images in it (im guessing thats whats causing the slow loading)
  11. well, ill show you what I have right now in the reguser file: <?phpinclude "connect.php";$password=$_POST['password'];$password2=$_POST['password2'];$username=$_POST['username'];$fullname=$_POST['fullname'];$gender=$_POST['gender'];$birthday=$_POST['birthday'];$birthmonth=$_POST['birthmonth'];$birthyear=$_POST['birthyear'];$country=$_POST['country'];$email=$_POST['email'];$email2=$_POST['email2'];if (!$password==$password2) { print "Your Confirm Password didn't match the original password";}if (!$email==$email2) { print "Your Confirm E-Mail didn't match the original E-Mail";}else { $password=md5($password); $SQL = "INSERT into s_logintable(username, password, fullname, gender, birthday, birthmonth, birthyear, country, email) VALUES ('$username','$password','$fullname','$gender','$birthday','$birthmonth','$birthyear','$country','$email')"; mysql_query($SQL); print "registration successful";}?> If thats the right way to do it, please say so, also, i am not sure about the registration page, with the radio buttons and the dropdownmenu This is what Ive done with the dropdownmenu "birthday" <select name="birthday" style="background-color: #000000;font size=10; color:#D80202; text-decoration: bold;" size="1" border="0"><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option><option value="11">11</option><option value="12">12</option><option value="13">13</option><option value="14">14</option><option value="15">15</option><option value="16">16</option><option value="17">17</option><option value="18">18</option><option value="19">19</option><option value="20">20</option><option value="21">21</option><option value="22">22</option><option value="23">23</option><option value="24">24</option><option value="25">25</option><option value="26">26</option><option value=27">27</option><option value="28">28</option><option value="29">29</option><option value="30">30</option><option value="31">31</option></select> and this the radiobuttons part: <input name="gender" type="radio" value="1"><font size="2"><b>Male<input name="gender" type="radio" value="2">Female I dont know if the code in the registering file (process file) will automatically select the selected value (ie birthday=31, the insert into database code puts in the birthday field the value 31 automatically) As ive said before, im not sure what im doing here.
  12. I am currently working on a registration page but I can't figure out a few things, wich all basically have the same thing in common Radio Button: In the registration form i have a gender selection and I want to input that into the database, I currently have the following: <input type="radio" name="gender" value="1">Male<input type="radio" name="gender" value="2">Female In the registering file I put the following (edited for the question): $SQL = "INSERT into go_logintable(gender ) VALUES ('$gender')"; I have no idea if thats the right way to go, so please give me some pointers. ____________________________________ Dropdown Menu: In the registration form i also have a birthdate selection and I want to input that into the database, I currently have the following: <select name="birthDAY"><option value="1">1</option><option value="2">2</option><option value="3">3</option></select> In the registering file I put the following (edited for the question): $SQL = "INSERT into go_logintable(birthDAY ) VALUES ('$bday')"; Also here, I have no idea if thats the right way to go, so please some pointers here. ____ Basically its inserting the selections in the database, and I have no idea how to do it, what I wrote above, were just logically wroten lines (logical to my opinion), but I need feedback on it. (Register Page)
  13. Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/ridouan/public_html/Reviews.php:5) in /home/ridouan/public_html/Reviews.php on line 6 Can't seem to fix the error (im a php noob) So i'd appreciate some help If you need it: Gamer Online then click on the Reviews link
  14. You can click my sig image to view the site index (as far as it is completed so far)then you'll find out im not using frames.Most forums usually use a large header that contains a forum logo and the buttons (register, login, search, etc..) and i want to do that myself, instead of the visitor seeing only the header instead of all the boards and threads, once someone clicks "forum" link it should actually only show the different boards and below that its statistics, id like to put the forum buttons (register, login, search, etc..) somewhere else on my site.As for the frame part once more, you could see it as frames (even though im not using them) with the menu (left) and the header(top) keep showing whatever page you open (i think this is called by the include() function(yes im using php)).thanks for the direction of the login part, that really helps (havent searched for it, but im certain you are speaking righteously )
  15. What i would like to see is the phpbb forum i downloaded to be integrated into my site, ok what the hell does that mean When a visitor or member clicks on the "forum" link on my site, it should open within the site (and not open a new page) while keep the header-logo(its only a logo for now) and the menuOn top of that, when a member logs into my site, he/she should be logged in as forum member tooand i dont know if the original phpbb forum has a header, if it has one, id like to hide that so i can create my own header for it (doh )I know im asking much, but is anyone capable of doing this for me? if so pm me
  16. Nicely detailed and covers some important basic aspects, thanks for your great tutorial
  17. I dont have kids yet, but i think anyone that read that story could break down in tears, his confidence in his daughter still living was a very emotional tweak in the story, he got her back...in a way no parent would want to even imagine, id have to say bring in a new death penalty..."Enduring Torture", let the criminals feel what its like what they did to their victims, over and over again.Im someone whos primarily against the death penalty, but these kind of people deserve that slow death, there's nothing else that could actually let them suffer...Sad story guys, once again..
  18. uhm you guys are talking about pic 1 and 2, wich one is pic 1 and 2 lol? the 2nd one is in my signature :)Anyway, thanks for the feedback guys, i will surely use it
  19. I wanna use something like this as header, once finished, it will be broken down in 2 or 3 pieces and refitted in the website structure, just need feedback on what should change and whats good (please note im a newbie photoshopper and just like to screw around ) P.S. Any idea what i could put in the empty part of the pic? :S (im not creative enough )
  20. thanks for the offer biscuitrat, but i also enjoy making headers and images :angry:and indeed, i have changed (doh) the header, gonna be 3pieces total...500*50(align=left) 500*50(align=right) and a background image that suits the backgrounds of both images ^_ ^
  21. This thread is referred by another thread called "Is this any good?", we'll be continueing from there, if you'd like to know/see more, go to that thread (i wish you good luck!). Allright stevey, This is what I basically want: -A header for the logo (size="1200*150) -Block formed "modules" as you normally see in php-nuke -A footer (will contain a background image and of course copyright info and page generation time(if possible)) The blocks: -Main block containing the following (Align=left valign=top): *Home *Forum *Memberlist *Downloads *Reviews -Stats block containing the following (Align=left valign=top): *Date&Time *Unique visitors online *Most unique visitors ever online *Total registered members -Members block containing the following (Align=left valign=top): *A member system *if it's a member, show total PMs and other stuff *if it's not a member, show login form together with register button -Shoutbox (Align=right valign=top) *can also turn out to be large in width and small in height and then positioned in the center/top for a more clear overview of messages Thats the basics of the index page (header/footer/menus) The Content will basically be news (if possible, some sort of php news feature (as seen in tutorials section) to easily get my news going) If that is really done, I would like some tips on the other pages NOTE: If you need any files, such as the member system files, please say so then Ill put it in a zipfile so you can download it (~90kb unzipped). Hope I've explained detailed enough what i want
  22. Uhm...AllrightBut first off, let's close this thread as all those codes are really getting on my nerves aswell :DI'll make a new thread where we can start from scratch and at the end (when my webbie is finally finished) we can write a book..."The PHP/MySQL book of errors"...! :DNew thread will be called "Website process" (no im not original)
  23. First of all,This is advertising your site/forum, wich belongs into "Showcase"Second,You have not mentioned the game that your clan is based of, share the details
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.