Jump to content

gs

Members
  • Posts

    18
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

gs's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Disable right clicking, othervise people will view source code
  2. Google it and make sure you edit it a bit after you get it!
  3. Ahh, I could never figure out how to download PHP/Apache, I just used free webhosts that supported it.
  4. Either that, or you can use a webhost that supports PHP/MySql. Heres a great one: http://ganswish.net78.net/info.html
  5. What is the PHP INCLUDE for? If you used post, why dont you just get the variables via $_POST['Number'];
  6. Try using a free webhost that supports PHP/MySql its alot easier! Heres one: http://ganswish.net78.net/info.html
  7. Yes!!! It worked! Thank you VERY much! I have been trying to figure this out for SOOO LONG! Thanks very much!
  8. <?php echo rand(); ?> This generates a random number, and to control from what minimum number to maximum, you have to enter min, and max values like this: <?php echo rand(1,10); ?> This generates random number from 1-10. Im not to sure how you can get letters in there though...
  9. Hi, I really need some help with this, Ive been trying to figure it out for such a long time! Ok, I want this to connect to the database, and then insert info into the table, which I already have created. Here is the exact script: <?php $username = $_COOKIE['ID_my_site']; $msg = $_POST['message']; $to = $_POST['to']; mysql_connect("freshsql.com","username","password")or die("SQL Error".mysql_error());; mysql_select_db("data1")or die("SQL Error".mysql_error());; $query="INSERT INTO messages(username,from,message) VALUES('$to',$username','$msg')"; mysql_query($query)or die("SQL Error".mysql_error()); ?> It keeps returning an error: "SQL ErrorYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''messages'(username,from,message) VALUES('gs',gs','gsaafd')' at line 1" Please help! I cannot figure this out, Thanks -GS EDIT: Use meaningful topic subject names and post in the correct forum.
×
×
  • Create New...

Important Information

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.