Jump to content

shirvo

Members
  • Posts

    52
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

shirvo's Achievements

Member

Member (2/5)

0

Reputation

  1. then what is it meant to be??
  2. Can any one tell me what this bit of code does and what is wrong with it. $sql = "DELETE FROM myPMs WHERE id IN ('" . imlode("','", $_POST['del']) . "') AND to_id = '$_SESSION[userid]'";
  3. ok now i found something else that doesn't work. i habe this code in my header <body style="filter:progid:DXImageTransform.Microsoft.Gradient(endColorstr='#CCCCCC', startColorstr='#666666', gradientType='0');"> so i can have a gradient but now since i changed the style sheet to http://www.ausfamily.com/style.css it doesn't show the background??
  4. ok is sort of worked. It doesn't use the css style sheet i have. why would that be
  5. but if anything it would be one level down
  6. l have a folder called message and in that i have the message system i made. Now i want to use a file in another file this is the folders html => message now i want a file called inbox.php in the message folder to include header.php in the folder html. How can i do this
  7. i have i config.ph page that l use so i can put all the database login information and the title of the website so it can be changed very simply. Now i have a dbconnect.php page that has to connection script in it The below code is config.php <?php /****** Installation ******/ $sitetitle = 'AusFamily.com' ; // Website title /****** Database ******/ $cfgServerHost = 'localhost'; // MySQL hostname $cfgServerUser = 'shirvo'; // MySQL user $cfgServerPassword = '137879'; // MySQL password $cfgDbDatabase = 'shirvo_ausfamily'; // MySQL database name containing phpSecurePages table $cfgDbTable = 'user'; // Where all the information is stored ?> The below code is dbconnect.php <? include('config.php') $conn = mysql_connect($cfgServerHost, $cfgServerUser, $cfgServerPassword); if (!$conn) die('Error connecting to server!'); mysql_select_db($cfgDbDatabase , $conn) or die('Error selecting database'); ?> Ok now when l use me website is comes up with this; Parse error: syntax error, unexpected T_VARIABLE in /home/shirvo/public_html/dbconnect.php on line 6 line 6 is this; $conn = mysql_connect($cfgServerHost, $cfgServerUser, $cfgServerPassword); so i am thinking that the $cfgServerHost, $cfgServerUser, $cfgServerPassword are not getting through Anyone please help ASAP
  8. How with php can i look to see if a database has been created. and how do i create a database with php? How can i have php check if there is a table with the fields i want there to be in it. and if there not there to create them. i know how to create them i just need to find out if there there.
  9. I have a table and in the id field i want to find out how many there are in it. The whole reason for this is because i want to find the highest 4 so i can display the 4 newest members.
  10. because i was trying to have it easyer for the user of the website. It is for my family and i know what they are like and they would like it easyer
  11. how does that tell me which radio button was selected. If you come up with an answer thats kool but i'm going to just not do the save username and password stuff.
  12. but in the php when i use post eg $_POST['V1[]']; what do i do to find out which one of them was selected
  13. that didn't help. this is what i have <html><head> </head><body> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> <table> <tr><td>Username:</td><td><input type="text" name="user" maxlength="40" value="<? echo $_COOKIE['username']; ?>"></td></tr> <tr><td>Password:</td><td><input type="password" name="pass" maxlength="40" value="<? echo $_COOKIE['password']; ?>"></td></tr> <tr><td colspan="2"><input type="radio" name="V1[1]">Save my username and password</td></tr> <tr><td colspan="2"><input type="radio" name="V1[2]">Save my username</td></tr> <tr><td colspan="2"><input type="radio" name="V1[3]">Ask for my username and password</td></tr> <tr><td colspan="2"><input type="submit" value="Login" name="login"></td></tr> </table> </form> </body></html> so what am i meant to put in the name for each radio button
  14. <tr><td colspan="2"><input type="radio" name="V1[2]">Save my username</td></tr> Thats what i have but it dont work. The reason you have to have radio buttons with the same name is to make it that only one of them can be selected.
×
×
  • 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.