shirvo
Members-
Posts
52 -
Joined
-
Last visited
Never
Everything posted by shirvo
-
then what is it meant to be??
-
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]'";
-
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??
-
ok is sort of worked. It doesn't use the css style sheet i have. why would that be
-
but if anything it would be one level down
-
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
-
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
-
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.
-
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.
-
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
-
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.
-
but in the php when i use post eg $_POST['V1[]']; what do i do to find out which one of them was selected
-
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
-
<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.
-
I want to know how i can get the data from radio buttons when they all are named the same.
-
that didnt work so what is a meta-refresh?? and how do you use them what is the code for it
-
i have a login form and it does all its stuff and logs the person in but i want to then make it at the end automaticly go to index.php
-
<input type="button" value="Close" onclick="self.close();"> it had this to close the window. but i want something like this to go back to the last page. is there anything like this that i can use
-
i want a button on my site when pressed it will go back to the page before
-
Well something like the message system that this forum has.
-
I'm looking for a free php message script that i can use on my website.
-
I want a text box to only allow numbers in it. So when someone enters a phone number they have to put numbers, this is so people dont just enter crap