
CammyD
Members-
Posts
22 -
Joined
-
Last visited
Never
Everything posted by CammyD
-
Users can view it ok. Via a domain name i bought using my WAN IP.
-
My name is cameron. My nickname is Cammy. My middle name is Douglas. Nick + M = CammyD
-
Hey guys! I need some help with my Belkin F5D8631-4 router. Is there anyway i can disable the config page when i type in my WAN IP (as i am running a server). Whenever someone on my network connects, it gives them the config page. When people off my network connect, they get my server. Is there any way i can make it so i can only config the router is via 192.168.2.1
-
I am running a WAMP (Windows Apache Mysql and PHP) server at 86.165.89.236 and i don't know how to make it show up on google. Any ideas how i can do this? I am running it on my home pc.
-
I am STILL working on my members area thing and i need some more help! How do make php insert a new user if they don't already exist? So if user CammyD already exists, it would give you and error. Here is my table build up Table 'users': id - AUTO userlevel - always 1 username - $username password - $password email - $email
-
Hey all. It is me again, coming to you guys for help. I am, as i said before, making a members online side of a website. I am trying to get the logout working, and i need some help. There is a link i made, with the action session_destroy(); But to log out, i have to press it twice. Any ideas how i can fix this?
-
Thanks. The problem was that i had the code messed up. The if bit was in the middle of the mysql query. I am a dumbass
-
SORRY GUYS, FIXED IT
-
Hey guys. Once again i need your help with a project. I am trying to create a little site for my mountain biking club. I have got most of the code sussed out, but there is a problem with my members script. On the main page i want it to say "You have not payed this month" if you user level is 1. I am using this code for it: foreach ($data as $words) { print ""; print $words; print '</a>, '; echo $words; $data = mysql_query("SELECT * FROM users WHERE username='$keyword'") or die(mysql_error()); if ( $data = "one" ) { echo "You have not payed this month"; } An whenever i load up the page, i get this error: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\wamp\www\Projects\admin\index.php on line 62
-
As a php n00b, this is a little helpful. The reason: Every time i am using the echo"" for form codes, i always leave in atleast one ". It gets annoying, and for some reason, the / thing doesn't work, or i am doing it wrong when i try. So thanks, and it is of use to some of us!
-
OK guys. I need some help with the protecting of the site. Please help!
-
Done and Done. Ready for testing. I had a code that is meant to redirect back to main part, but it didn't work.
-
I am trying to fix that right now
-
The ' just deletes the contents of the mysql field. Nothing harmful
-
Hi all. I Finished off my first full script. It is a free edit page. Could you guys test it out? http://www.cambiker.com/talk/index.php So far i have put some basic bbcode in, but i am going to add some more.
-
Sorry, you have lost me. I will look for help elsewhere
-
<?php include="info.php"; $name_of_table="my_table"; $the_where_definition="??'"; ?> <form action="process.php" method="post"> <textarea name="text"> <?php echo @current(@mysql_fetch_assoc(@mysql_query("SELECT * FROM $name_of_table WHERE $the_where_definition"))); ?> </textarea> </br><input type="submit" /> </form> I don't get the $the_where_definition bit When i hit submit, the text on the index is blank
-
I still can't get that working. Here is my MySQL info: Database: Text Table: My_table Feild: Text Can you have a look at that zip file?
-
EDIT: Here is the .zip file that i have made up: www.cambiker.com/help.zip
-
Hi Php newbie here. I need some help with a project i am working on. It is a kind of Multi Person notepad, so it takes the text you type, saves it, then echos it on the index page. What i am stuck on here is the <textarea> part. On that bit, you type in the stuff, hit submit, gets saved then takes you back to the index. I want to make the textarea echo what is already in the database. Example: ________ | | | | <-- Text box Index.php --> Saved text | | How do i make what shows up on the index file, show up in the text box?