Jump to content

JamesThePanda

Members
  • Posts

    133
  • Joined

  • Last visited

Everything posted by JamesThePanda

  1. Do you know anything similar That would have drag and drop? or just something similar in general? were I can enter things in the side and have them appear in the box Thanks James
  2. Hi I have seen a WYSIWYG that I like Im pretty sure its an open source one. I just need to know the name of it can anyone help? http://www.123print.co.uk/Business-Cards_Solid-Black_Design-BAADBFBD I like the click and drag option on it. Does anyone know what one it is , or some thing similar? Thanks James
  3. Hi I have seen a WYSIWYG that I like Im pretty sure its an open source one. I just need to know the name of it can anyone help? http://www.123print.co.uk/Business-Cards_Solid-Black_Design-BAADBFBD I like the click and drag option on it. Does anyone know what one it is , or some thing similar? Thanks James
  4. hey guy Im making a registration script for my login script Im just wondering as Im realy new with php and mysql what can I do to check that the query was executed properly. I wanted to use some form of "if else" function <?php $host = "localhost"; $username = "root"; $password = ""; $db_name = "members"; $tbl_name = "memtable"; mysql_connect($host,$username,$password) or die (mysql_error()); mysql_select_db($db_name) or die (mysql_error()); $username1 = $_POST['username1']; $password1 = $_POST['password1']; mysql_query("INSERT INTO 'memtable'('name','password') VALUES('$username1','$password1')"); echo 'done'; ?> Any Suggestions Thanks James
  5. HI everyone Im having problems installing wordpress multi user I have tried install on a websever also I have ried on my local computer. I install the files go to index.php and that doesnt work. no matter what I do I dont seem to be able to get it installed Thanks James
  6. I knew it was returning them as a string, just didnt know how to make it a interger Thanks again
  7. hi guys Im realy new to learning jscript basically I want to make a litle script with 2 propts asking for 2 numbers and the it adds them both together the script I made is as follows <script type="text/javascript"> function add(a,b) { x=a+b; return x; } var num1=prompt("what is number a?"); var num2=prompt("what is number b?"); alert(add(num1,num2)); </script> I entered 1 for both the number and the ouput comes out as 11 can someone point out were im going wrong. I wanted the out put to be 2 thanks james
  8. ok made a little break through Im getting errors on lines 11 and 12 saying that myusername and mypassword are undefined functions the previous error was because wasnt saving the file properly sry new comp Thanks James
  9. done that still nothing I wass wondering could it be something with the sql\? Thanks James
  10. hmmm that still didnt seem to do anything here is the exact error I get Parse error: parse error in C:\wamp\www\membership\logincheck.php on line 20 thanks James
  11. @almightyegg what code do I put in and were? Thanks James
  12. ok did that Im still get a error It says is a parse error online 20 ? any hints? Thanks James
  13. Hi I have been watching this video on you tube about making your own php login form. I can' seem to get it to work for me here is the coe for the form im using at the moment <html> <BODY> </BODY> <form method="post" action= "logincheck.php" name="form1"> <label for="username">Username:</label> <input type="text" name="myusername" id="myusername" /> <label for="password">Password:</label> <input type="text" name="mypassword" id="mypassword" /> <input type="submit" name="submit" value="login"/> </form> </html> and here is the code for the scipt <?php $host = "localhost"; $username = "root"; $password = ""; $db_name = "members"; $tbl_name = "memtable"; mysql_connect( '$host', '$username', '$password') or die (mysql_error()); mysql_select_db($db_name) or die (mysql_error()); $myusername = $_POST['myusername']; $mypassword = $_POST['mypassword']; $sql = "SELECT * FROM $tbl_name WHERE username = '$myusername' and password = '$mypassword'; $result = mysql_query($sql); $count = mysql_num_rows($result); if ($count==1){ session_register("myusername"); session_register("muypassword"); header("location:login_success.php"); } else { echo "wrong username or password"; } ?> I cant seem to understand what the problem is. It is saying there is a problem on line20 Thanks James
  14. basically in short my question is what is the php function to count a variable, within a mysql field. Thanks James
  15. Sorry Im a complete nuub to php. I watched some vids, and I can connect to a database but what is the php funtion to count something in a field. Basically I want to make a form, then when I type in a email address it counts how many comments have been made by a particular email address. This is more of just a learning exercise. Thanks James
  16. Hi I need a fuction to count how many times a email address is entered in to a field. I making a for wordpress that counts how many timesa user has made comments. Thanks James
  17. Ok thanks for ya help man Tha orginal error is solved
  18. ok now Im getting this error I running wamp I dont know what the password or the username for the data base
  19. Hi I am making a login script. I keep getting a parse error on line 12 <?php $host = "localhost"; $username = ""; $password = ""; $db_name= "members"; $tbl_name= "memtable"; mysql_connect ($host,$username,$password) or die ("Cant connect to database"); mysql_select_db ($db_name) or die (mysql_error()); $myusername = $_POST['myusername'] $mypassword = $_POST['mypassword'] $sql = "SELECT * FROM $tbl_name WHERE username ='$myusername' AND password = '$mypassword'" ; $result = mysql_query ($sql); $count = mysql_num_rows ($result); if ($count == 1){ session_register("username"); session_register("password"); header("location:login-success.php"); } else { echo "Wrong Username or password" } ?> Can any one see what the problem is? Thanks James
  20. Are you sending email from you server that hosts the site, or your computer? Email Spam is a a big problem for ISP's They usually have strict limits on how much can be sent out per hour. Also they will be constantly monitoring for Spam. In order to send out email of that nature, I would recommend you use a 3rd party such as aweber get responce or constant contacts. These specialist email companyies have agreements with most ISP that any email sent out from there servers is not spam. There for they can guarantee a higher delivery rate. If you were to send out emails from your server that hosts you site, and you had 2000 signups on your email list from people whoose email ended with @aol.com Aol have a cut off of 1000 email from a IP address per hour to there servers. anything after that is considered spam. so the other 1000 email will end up getting deleted. Using a 3rd party they have an agreement with aol so there is no restrictions. I would imagine that sending them out from your own computer then your ISP would get suspicious of email that look similar. Thanks James
  21. I have the this wordpress theme that has a encrypted footer. I am despearatly trying to use google analytics and it wont work with the encoded footer. I want to decode it so I can insert my code. Can some one decode this for me Thanks James [attachment deleted by admin]
  22. Hi Im adding the FCK editor to and Os Commerce installation. Im having a problem on the html_output page Does anyone know why I am getting this error? I have replaced the domain name with domain.com I think the error start with this code Im ment to add require("../../FCKeditor/fckeditor.php"); Here is the error Warning: require(../../FCKeditor/fckeditor.php) [function.require]: failed to open stream: No such file or directory in /home/suni4691/public_html/domain.com/admin/includes/functions/html_output.php on line 13 Warning: require(../../FCKeditor/fckeditor.php) [function.require]: failed to open stream: No such file or directory in /home/suni4691/public_html/domain.com/admin/includes/functions/html_output.php on line 13 Fatal error: require() [function.require]: Failed opening required '../../FCKeditor/fckeditor.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/suni4691/public_html/domain.com/admin/includes/functions/html_output.php on line 13 Thanks James
  23. so I import it in to CSV format and then in to excel? Thanks James
×
×
  • 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.