- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
14 Posted Topics
Re: There are a lot of tutorials out there. I used an "UPDATE" command on my site. For example: mysqli_query("UPDATE registration SET name='$name', dob='$dob', userid='$userid', sex='$sex', family='$family', describe='$describe', pic='$pic' WHERE name='$name'"); | |
Re: The best way to see if it will work is to try it. I don't think you'll have a problem with it because it is not pointing to the same root. | |
Hi all. I'm writing my first javascript game. It's a role playing game where the user fights an Ogre, and not elaborate at all. I'd like the game to end when the Ogre's life is at zero OR the users life is at zero. I can't figure out how to … | |
Re: Check your database. Is the date column set to "date" and/or did you make it big enough to display what you want? ![]() | |
Re: Have you checked to see if php is installed and running? If not, create this script and run it from your browser. <?php phpinfo(); ?> | |
Re: Are you asking to show data in the session before you enter the data? I want to be able to show some .php files before the user logs in I know that the reason we do the session is for ones who are users to see the files but is … | |
Ok, so this is cool. On my site, I learned how to create a simplified "wall" like facebook has... sort of. It's great for me to have done that because I am self taught with all of this. There is a problem, however. My <option> is not displaying the names … | |
Re: You might want to check your spelling, in both the database and the table. Everytime that happens to me, it's because I misspelled something. You might also try renaming them to GroupMgt and FileUploadsLog. Underscores are legal according to [Click Here](http://dev.mysql.com/doc/refman/5.0/en/identifiers.html) | |
So, when I run this code on xampp, it works and I can see the variables, without the header. <html> <head> </head> <body> <?php $user=""; $server=""; $db=""; $pass=""; $con=mysqli_connect($server,$user,$pass,$db); $id=$_POST['loginid']; $password=md5($_POST['password']); $result=mysqli_query($con,"SELECT * FROM passwords WHERE userid='$id' AND password='$password'"); session_start(); if($row=mysqli_fetch_array($result)){ require('../connect/registerdb.php'); $rresult=mysqli_query($rcon,"SELECT * FROM registration WHERE userid='$id'"); while($rrow=mysqli_fetch_array($rresult)){ $_SESSION['name']=$rrow['name']; … | |
Re: [Click Here](http://www.tutorialspoint.com/php/php_file_uploading.htm) for a link on uploading a file to a folder. You should only use the database as a pointer. | |
Ok, so here is the CSS code in an external sheet: #header{ position:fixed; width:100%; height:15%; } #hedr{ position:fixed; height:5%; width:6%; top:5%; left:30%;} #nme{ position:fixed; font-size:400%; top:3%; left:10%; } Here is the php document: <!DOCTYPE HTML> <html> <head> <meta name="keywords" content="Roun, David Roun, Rounsworld, Heather Roun"> <meta name="description" content="Personal website"> <meta … | |
![]() | Re: <?php require('../connect/connect.php'); $name=trim(mysql_real_escape_string($_POST['name'])); require('../connect/kidsblogsconnect.php'); mysql_query("CREATE TABLE '$name'(sender VARCHAR(30), message VARCHAR(300), dateposted DATE)") or DIE(mysql_error()); echo 'Your account has been created and your picture uploaded'; ?> You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near … |
Re: How come you are using 2 echo commands? |
The End.