Jump to content

xAtlas

Members
  • Posts

    18
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

xAtlas's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. no. they changed the table names by adding a "2" to the end of the table name in the code that I posted. In the faq2.php files, they will query those 2 tables by the table names. Try using the code posted as is.
  2. [quote author=alkhatareykha link=topic=103577.msg412518#msg412518 date=1155138536] good night when i try to connect to my sql from php showing to me this error FATAL ERROR mysql_connect undifined i write my code like any one connect to mysql from php $host="localhost"; $user="root"; $pass=""; $link=mysql_connect($host,$user,$pass) or die ('connection failed'); notice: i changed windows changed mysql virgin changed php virgin please help me send me at this email ah_forislam@yahoo.com [/quote] are you trying to connect to a database within MySQL? If so, you need: [code] $hostname = 'localhost'; $dbname = 'your_db_name_here'; $dbuser = 'root'; $dbpass = ''; [/code] Also, what is the location that you are hosting from (e.g. paid hosting or hosting from home)?
  3. Can you do me a favor? post the HTM portion of this script. Make sure that this is correct: [code] <form method="POST" action="contact.php">[/code] action="contact.php" or whatever you named the PHP file to. I just tested this and it works fine now. It did the same thing as your because the 'action=' wasn't contact.php (which is what I had generated).
  4. [quote author=troll2555 link=topic=103874.msg414093#msg414093 date=1155322071] I do... ThankYou.htm [/quote] Is the the ThankYou.htm in the home directory of the script? Can you do me a favor? post the HTM portion of this script. Make sure that this is correct: [code] <form method="POST" action="contact.php">[/code] action="contact.php" or whatever you named the PHP file to. I just tested this and it works fine now. It did the same thing as your because the 'action=' wasn't contact.php (which is what I had generated).
  5. You do have a thankyou.html page right?
  6. [code]Whats with this? You notice that your code is a lot smaller (font size wise) and that it looks like the: echo ' '; Part of it isn't were is should it. Almost looks like it should be: echo ' '; but that even seems incomplete. I'm talking about below "$uploadfile = $uploaddir . basename($_FILES['userfile']['name']);" btw- need to use [ code]text[/code] :)
  7. can you post any errors you're getting?
  8. what happens when you test the script? Are you getting errors? If so, can you post them?
  9. [quote author=destro link=topic=103572.msg412506#msg412506 date=1155137441] Im trying to download aformail but the main site appears to be down (http://www.cgi-central.net/scripts/aformmail/) . Could anyone make it available to me? Perhaps another simliar script. Basically ..all I want to do is have users enter in their email and name in a form ( email syntax check would be great) and then the code would log this info to a cvs or text file and also an auto responder email function to send an auto email to the user. Thanks for reading. [/quote] You can download AFormMail from my site: http://www.x-clansoldiers.com/download.php?view.97
  10. can you post a link to where you got the script? Also, are you getting any error messages?
  11. Have a look here. Sort of the same thing to what you're asking. The 1st reply, I think, is what you're asking.
  12. What happens if you try this: [code] //removed a third = in the IF contruct if ( $_POST['username_user'] == '' || $_POST['password_user'] == '' || $_POST['number'] == '') { txt_out('<p align="center">'.$login_messages_ar['username_password_are_required'].'</p>', 'error_messages_form'); include './include/forms/login.php'; } // end if elseif ($number != $key) { //CHECK CAPTCHA txt_out('<p align="center">'.$login_messages_ar['captcha_auth'].'</p>', 'error_messages_form'); include './include/forms/login.php'; } // end if else{ $_SESSION['logged_user_infos_ar'] = get_user_infos_ar_from_username_password($_POST['username_user'], $_POST['password_user']); //var_dump ($_SESSION['logged_user_infos_ar']); //exit; //changed the !==false to != false if ( $_SESSION['logged_user_infos_ar'] != false){ //header ('Location: '.$site_url.'index.php'); header ('Location: '.$site_url.$dadabik_main_file); die(); [/code]
  13. [quote author=systemtek link=topic=103843.msg413823#msg413823 date=1155297781] I am using phpnuke and i have read in the manual about Duplicating the PHP-Nuke FAQ module, this is section 22.1.  Here : http://www.karakas-online.de/EN-Book/duplicating-php-nuke-faq-module.html This is just what i need to do, but reading about it, it says about doing stuff from the command line to the MySQL. I dont have command line access i just have mysql and phpnuke via cPanel, do i need to do any of that, if so how do i go about doing it as dont have ssh access. Are the files anywhere i acn access them ? Thanks [/quote] Looks like you can just run the following in from the SQL tab in phpMyAdmin and it'll create the 2 tables in your database - which means you can skip the MySQL Prompt portion. So do the following: copy the below code. Open phpMyAdmin and select your phpnuke databaes. Click on the SQL tab and paste the code in the RUN SQL QUERY window and click GO. That'll create the 2 tables that you need. [code] # # Table structure for table `nuke_faqAnswer2` #   CREATE TABLE nuke_faqAnswer2 (   id tinyint(4) NOT NULL auto_increment,   id_cat tinyint(4) NOT NULL default '0',   question varchar(255) default ",   answer text,   PRIMARY KEY  (id),   KEY id (id),   KEY id_cat (id_cat) ) TYPE=MyISAM; # # Dumping data for table `nuke_faqAnswer2` # # -------------------------------------------------------- # # Table structure for table `nuke_faqCategories2` # CREATE TABLE nuke_faqCategories2 (   id_cat tinyint(3) NOT NULL auto_increment,   categories varchar(255) default NULL,   flanguage varchar(30) NOT NULL default ",   PRIMARY KEY  (id_cat),   KEY id_cat (id_cat) ) TYPE=MyISAM; # # Dumping data for table `nuke_faqCategories2` # # -------------------------------------------------------- [/code]
  14. Hmm.. give this a try: replace [code]else $bild = imagecreatefrompng($input); [/code] to [code] elseif($type =='png') $bild = imagecreatefrompng($input); [/code]
  15. Is PNG supported? Most times they are I suppose but you can copy the below, save it as PNG.PHP and upload it to your website then run it: yoursite.com/png.php It'll tell you if PNG is supported or not. Just one other thing to eliminate. [code=php:0] <?php if (imagetypes() & IMG_PNG) {   echo "PNG Support is enabled"; } ?>[/code]
×
×
  • 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.