Everything posted by jamest
-
Database design
Third one is the most efficient way.
-
Facebook Development
I found the Facebook one taught me all I needed to create a fully functional app for my work. A good knowledge of PHP is needed, once you have that it isn't really any harder than any other PHP script.
-
Dreamweaver choking on my SQL
It would be in your best interest to learn how to use MySQL effectively yourself rather than relying on Dreamweaver. You will find you are able to achieve a lot more.
-
Problems with captured form data
On your php output put something like this: print isset($a) : $a.'<br />' ? '';
-
How to fetch data
I have no idea what you want done. You haven't made it very clear. Have a look on the MySQL docs website for JOIN.
-
online form that auto totals numerical fields.
If they need to be updated straight away you will need to use javascript to update the figures on entereing data on each field, or add a calculate button.
-
MySQL query question
You are all wrong. If you are inserting new data you don't use a where statment. If you are updating data already in the database use "UPDATE tbl_name SET field_name = 'something', field_name1 = 4".
-
Can I trust mysql_real_escape_string() ?
I always perform my own validation to make sure the data won't cause any problems. But you could use mysql_real_escape_string() as well as your own validation to stop most/all attacks.
-
Php Date Problem?
The MySQL data format is Y-m-d. Note the lowercase m and d.
-
Google Chrome, Google's browser
And you think releasing a web browser is a step towards taking over the world? Oh dear...
-
W3C Vaildator image
1) Most people don't know what the W3C validator is. 2) Most people won't care about the W3C validator. 3) There is no point using the image unless the people who actually care about W3C want to see it and if they do want to see it they will either use a browser plugin or paste your address in anyway. Add that on to the top of Dizi's comment and there is absolutely no reason to use it.
-
$numrows=mysql_num_rows($query);
$numrows=@mysql_num_rows($query); The @ will hide the error. Alternatively you can do another select by using SELECT COUNT(1) FROM tbl_name WHERE this = 'something' and other_thing = 2
-
Another one bits the dust!
I'm on my second they replaced the DVD drive as well as the motherboard even though I wasn't aware there was a problem with my dvd drive. Has been fine since and quieter. Only took Microsoft 5 days to take it from me send it to Germany, fix it and send it back. Fantastic service.
-
my google position as changed to number 1
Mostly likely down to well structured HTML and good content which has meant it has slowly risen. Google change their algorithms quite a lot so change in the results is fairly common.
-
A Quick PHP Question...
Tidy it up a bit; // don't display on homepage if ($current_page != $this_is_home_page) { // currencies code }
-
Using cURL to access external url
Does it have to be cURL? I've only had experience with the javascript side of it.
-
Favourite 3 films
The Shawshank Redemption The Green Mile Crank
-
The cheapest PC you can buy
The PSU is a hamster running around in a wheel. Motherboard comes with most cables needed unless it's OEM.
-
Wordpress Theme HELP!
Make sure the HTML is all OK in the single.php file.
-
Can't access certain websites - why?
Could well just be a DNS issue with your ISP which will likely get sorted very soon. As for Microsoft being ****. Get over it, if you enjoy your Mac then fine enjoy don't tell everyone else they are doing things wrong. Windows works, the end user is the problem most of the time.
-
port 80 in use but not
If it's the same as what I get just continue you through the installation, open the Control Panel then click the box to install Apache as a service. Job done.
-
Wordpress Theme HELP!
Change the width of #sidebar to around 170px. Quite a few of the elements are a bit off. Firefox and CSS viewer will help you see these.
-
Urgent help required!
Yes. It is a security feature of IE to stop potentially dangerous javascript being run from the harddrive or CD drive.
-
How to have downloadable music on a site
Also myspace if they want to extend their audience. You may even be able to embed the MySpace one in to the site to save on bandwidth, although I don't know if they allow that.
-
PHP Include new dir
$DOCUMENT_ROOT Should be $_SERVER['DOCUMENT_ROOT']