wildteen88
Staff Alumni-
Posts
10,480 -
Joined
-
Last visited
Never
Everything posted by wildteen88
-
Its done by using javascript taking a look at the source code: [code]<a href="#" onclick="toggleFullStats(); return false;"><span id="moreless">more</span> stats...</a>[/code] However when it calculates the states its most probably using AJAX to call a PHP script which then calculates the states and stuff.
-
[quote author=gotit link=topic=115271.msg469367#msg469367 date=1163732476] One thing I don't understand is: when i creat the file past the code in it and then want to save as--- I simply past ".htaccess" in the file name with nothing following it. and this file shows as .htaccess on my pc, but once I load it it shows as ".htaccess.txt" on the server. Does that has to do anything with it. I also tried deleting that .txt on the server. I do have access to hosting control panel, but there is no option for me to creat a file these are the options categories: 1and1 is the host [/quote] When you create the .htaccess file in notepad you'll need to change the Save as type pull down menu to all files. Otherwise what ever you place in the File name box it'll add .txt extension to the end of the filename. Another method is to wrap quotes around the file like so: ".htaccess" That way notepad wont add the .txt extension to the end of the filename when you click save button.
-
You cannot get the database files, like you can with MSAcces. Well you can but you wll corrupt your database. What you'll have to do is export your database by doing a MySQL dump into a text file. Yo then upload that text file to your host and import it into your MySQL database. You can easily do this by using PHPMyAdmin (you can get this from phpmyadmin.net for free). Login to PHPMyAdmin then go to your database and select the export tab at the top of the page. Now select the tables/export options and make sure the Save as file check box is selected 9at bottom of page). Now click the Go button and it'll now promt you to save the backup to your computer, save it to My Documents or your Desktop or summit Now you have the backup you need to go to your host and login to your sites control panel and navigate your way to PHPMyAdmin (most hosts usually have this installed). Now create a new database with the same name you used on your PC. Once the database is created (with no tables) select the newly created database (if its not already) and go to the import tab. Now select the browse button on the import page and select the database backup you just made which should be in your My Documents or Desktop. It'll now upload that file and import the database from your PC. Thats how you transfer MySQL databases. If your host doesn't have PHPMyAdmin ask them how to import database backups into MySQL.
-
When you make changes to the php.ini you'll need to restart the server for the changes to be made. Also you should not hide errors you should fix them. If you have restarted the server and you're still getting errors then PHP is not loading up the correct php.ini You can check that php is using the correct php.ini by running then [code=php:0]phpinfo()[/code] function a script and looking at the [b]Configuration File (php.ini) Path[/b] line.
-
No. You'll need to use regex to phish out the urls in the string and then wrap an anchor tag around the url. You should be able to find what you're looking for in the Regex forum. Or just post in there and someone will come along and help you out.
-
Please read the FAQ Thread titled [b]Call To Undefinded Function mysql_connect[/b] in the FAQ/Code Snippet Repository forum.
-
Problem reading array's, validation's not working.
wildteen88 replied to Ninjakreborn's topic in PHP Coding Help
When you're naming your fields with associative arrays dont put quotes around your keys otherwise in your PHP code you'll ahve access then like this: array_name['\'key_name\''] or array_name["'key_name'"] it will thing the quotes are part of the html. -
Problem reading array's, validation's not working.
wildteen88 replied to Ninjakreborn's topic in PHP Coding Help
You need to do this then: actiontaken[field_name_here] in the name attribute for each form field then, Example: <input name="actiontaken[firstname]" type="text" value="firstname" /> -
Problem reading array's, validation's not working.
wildteen88 replied to Ninjakreborn's topic in PHP Coding Help
Yes. As I said it copies what's in the $actiontaken array into the temp session array Its no different to doing this: [code=php:0]$someVar = 'someValue'; $sVar = $someVar; echo $sVar // returns the string 'someValue'[/code] Accept you're using an arrary. -
Problem reading array's, validation's not working.
wildteen88 replied to Ninjakreborn's topic in PHP Coding Help
Just do something like this: $_SESSION['temp']['actiontaken'] = $actiontaken That will now copy the array from $actiontaken in to the newly created temp['actiontakem'] session -
Yes that is correct. However the isset function does not check the value of a variable. Instead checks for the existence of a variable. Also the reason why your code was returning true is because the $_FILE variable is created automatically with or without the field the variable is associated with is empty or not.
-
Check your servers error log. Apache should of logged an error in the error.log file for why you're geting the Internal Server Error message. It might be something to do with your .htaccess file
-
Whats the point in using PHP scripts if you don't know anything about PHP (and MySQL)! If you want someone to do this for you then post in the Freelance forum.
-
Just use $_SERVER['DOCUMENT_ROOT'] should do it.
-
You'll want to read your servers error log to find out why the Internal Server Error message is coming up. Most probably something in the config file that is causing it. However cant really tell what is causing it with out the seeing the actual error message.
-
What 3 pixel gap? Could you point out where the 3pixel gap is?
-
I do not see any keys in your arrays. You just have a list of values stored in the fld2 array. All you'll need to do is this: $fld2[0] = 'event' That will now make the fld2 array like this: array('event','use','job','edate','sdate')
-
It seems to be working fine for me. Whats it not doing with you and whats it supposed to do?
-
Okay kool the query I provided is working fine. When I told you to do this I added a LIMIT to the mysql query. Please edit your query and remove the following from it: LIMIT 0, 5 Now you should be able to get the Total referrals using $row['refTotal']
-
Please read [url=http://www.phpfreaks.com/forums/index.php/topic,95378.0.html]this FAQ[/url] It should help. Also remove any instances of php_mysql.dll in the WINDOWS and WINDOWS/SYSTEM32 folders. No need to move/copy any files outside of the PHP folder if you have added PHP to the Windows PATH variable. Also make sure there is no older files with the name of libmysql.dll or php_mysql.dll which PHP may be finding. libmysql.dll is an important file for PHP to find (should be located in the root of the PHP folder) in order for the mysql library to successfully load up correctly.
-
What OS are you using? Windows, Mac or Linux (*nix) if its Mac or Linux then you'll need to recompile PHP with the --with-mssql=[DIR] command. [DIR] being the full path to the directory in which you have installed FreeTDS. Also make sure FreeTDS was compiled with the --enable-msdblib command. (Taken from [url=http://uk2.php.net/manual/en/ref.mssql.php]php.net[/url]) Then you'll need to uncomment/add the following line in/to the php.ini: extension=php_mssql.dll NOTE: if you are not using Windows then it'll be extension=php_mssql.so instead I believe. However if you are using Windows then you don't need to bother with the above. Just uncomment/add the following line in/to the php.ini: extension=php_mssql.dll
-
If you want to run your PHP scripts then you'll need to download PHP itself from php.net - this will only allow you to run your php script via command line. if you want to run your script via a web browser then you'll want to install a server (IIS or Apache). You can download a package called WAMP for Windows or XAMPP for Windows/Mac or Linux For creating your scripts a basic text editor will do as thorpe advised. However you can get special editors called IDEs which have allsorts of features to help developing your PHP scripts. A free one is Eclipse with the PHP plugin or a good cheap one would be PHP Designer 2007
-
It is not recommended to have spaces in your urls. It is advised to use a hyphen or an underscore in place of a space. I prefer the second url as it is much neater and easier to read.