-
Posts
3,584 -
Joined
-
Last visited
-
Days Won
3
Everything posted by JonnoTheDev
-
If you have no reason to upgrade, then don't. XP is still supported. I still use XP, colleagues use Vista. The cost of licence upgrades for no benefit to working practice is the main factor.
-
css vertical-align: top;
-
Register a DNS server with a reliable hosting provider and point the nameserver records for all your domains at it. Manage all your zone records from this server.
-
SELECT * FROM movielist ORDER BY dateadded DESC LIMIT 4
-
How the f*** are you supposed to guess that. I thought that was a killer whale or something. Oh hang on, Okra not Orca, my bad. I was thinking oranges, olives, organic potatoes. F***ing okra pods, what.
-
Browser displaying weird characters instead of £ sign.
JonnoTheDev replied to DanielHardy's topic in PHP Coding Help
Wherever you are saving this to, if the final output is HTML then it should be converted to a html entity before saving. £ should be saved as £ You will get issues for instance if you try and save a £ symbol straight into a database table without the correct encoding. -
I would like to goto college for programming?
JonnoTheDev replied to Sandwhich's topic in Miscellaneous
Depends what country you are in. The recession has definately had an impact. In the UK there has been lots of cuts in IT services. -
Come on give us the damn answer, its doin my head in
-
It's for beating camels
-
how do i add/take this away from forums??
JonnoTheDev replied to DarrenReeder's topic in Miscellaneous
It is in a template as I can see it here <a href="http://www.zaypay.com/pay/67112" onclick="ZPayment(this); return false"><img src="http://www.zaypay.com/pay/67112/img" border="0" /></a> Find the part of the template where it is displayed and remove it, whether it is being echoed from a variable or simply the HTML above. -
Simple, READ THE ERROR! The username and password you are using is incorrect. 1. Do not use 'root' as the user for connecting to the database. If this password gets out you are in big trouble. 2. As I have said, you should have setup a username and password to use to connect to your database. 3. If you have access to the mysql server via SSH or whatever then setup a user for this database, otherwise get the server admin to do it. 4. Don't use persistent connections mysql_pconnect() use mysql_connect().
-
how do i add/take this away from forums??
JonnoTheDev replied to DarrenReeder's topic in Miscellaneous
How is anyone supposed to know what you admin control panel looks like? Simple answer: Find the template where the button is and remove it. -
You need the database name, username, password, hostname. The host is usually 'localhost'. Whoever set the database up for you should have set a user up also. if this is your server or you are paying for hosting on a shared server then do it yourself. mysql_connect('localhost', 'username', 'password'); mysql_select_db('database_name');
-
Google Analytics www.google.com/analytics Use Webalizer or AWStats on your webserver to parse you website access logs to give you traffic / user / keyphrase information.
-
Visual Skirmish - Video and Photo contests
JonnoTheDev replied to visualskirmish's topic in Website Critique
What are your Google rankings for your target keyphrases? The issue with your site is that it has no solid content that a search engine could use to understand what the site is actually about. To me it just looks like a mish mash of all kinds of random stuff like pictures / videos etc. It looks like one of those crappy directory / social bookmarking based scripts with a skin on it like pligg or php motion. Another thing is that your urls are totally unfriendly to search engines. use mod_rewrite to make them friendly and get some keywords in them. Also your page titles are duplicated across the site. Each click should use a different title to indicate to a search engine that this page is different content to the last page. If all your page titles say 'Visual Skirmish | Video Contest, Photo Contest, Win Cash Prizes' then Google will put this site in the sandbox (duplicate content) bin. -
What do you mean by 'database properties'. Also check you directory structure/naming is correct for your includes or use set_include_path() to set the parth.
-
Good one. Thats got me stumped. Maybe a meat tenderizer or something along those lines.
-
Because Javascript is client side and php is server side. You cannot set a server side variable (php) to the value of a client side result using javascript (not without using ajax). All you are doing is assigning a string to $has_flash containing javascript code. if you echo it out it will run the javascript in the client browser.
-
Hosting a website written with PHP
JonnoTheDev replied to mumbles27's topic in PHP Installation and Configuration
If you have yum: yum install php yum install mysql-server yum install php-mysql start the services service httpd restart service mysqld start make sure you change the root password for mysql -
You need to specify the field name that you want to be distinct within the query. It is the first field you specify i.e SELECT DISTINCT name,userId,email FROM users The field 'name' is distinct. If it is the case that you have duplicate records in your database you should be preventing this and not writing queries to compensate.
-
The GET data should be available within the include file i.e <?php // originating file include('menus/customerdetails.php'); ?> <?php // customerdetails.php print $_GET['id']; exit(); ?>
-
Yes it is possible. Have a look at the graphics functions that php provides with its GD library. http://uk3.php.net/manual/en/book.image.php