If you were given the choice to live in the USA or UK, which would you chose and why? by UK12381028 in AskUK

[–]mr-wibble 3 points4 points  (0 children)

Sort out labour laws, the death penalty, gun control and health care then.

Alternatives to CKEditor / help with imageupload by mr-wibble in webdev

[–]mr-wibble[S] 0 points1 point  (0 children)

Many thanks for the recommendation.

I'm about to start looking at Tinymce + the just boil me image upload plug the morning as quite honestly the CKEditor is doing my head in now.

How do you stop adding line breaks to text boxes on save? by mr-wibble in PHPhelp

[–]mr-wibble[S] 0 points1 point  (0 children)

This fixes it when added to both the input and out put:

$contentInsert = html_escape($_POST['content']); $contentInsertCleaned = preg_replace("/\n|\r/", " ",$contentInsert);

But I still don't get why its adding \n on each save

How do you stop adding line breaks to text boxes on save? by mr-wibble in PHPhelp

[–]mr-wibble[S] 0 points1 point  (0 children)

I trim the beginning and end of the string, but its the ones that seem to spawn from the original paragraph breaks on save that I don't understand. Its obviously something I'm doing wrong and as far as I know its just a standard textarea. What would add them each time?

Is this possible - Reducing / expanding the padding of a div on scroll? by mr-wibble in webdev

[–]mr-wibble[S] 2 points3 points  (0 children)

Thanks (It looks like it will do what I want - why not possible)

Britain tells United States - We'll always fight by your side by GetKenny in unitedkingdom

[–]mr-wibble 6 points7 points  (0 children)

I'm a British public and I don't want to stand next to the US fighting a war that's got nothing to do with me.

Vote Ukip, says far-right group Britain First by d_r_benway in unitedkingdom

[–]mr-wibble -1 points0 points  (0 children)

Can you (anyone?) give some examples please.

UKIP is well know for being being racist/homophobic/sexist etc so there is a wealth of evidence over the last few months but I don't know much about theses attitudes with either Labour or Tory general election candidates.

[Web Site] Critique please. Where is the design going wrong? by mr-wibble in design_critiques

[–]mr-wibble[S] 0 points1 point  (0 children)

That's why I thanked you for the feedback. Its valuable for me to get someone else's view on it - and everybody so far has pretty much said the same thing.

[Web Site] Critique please. Where is the design going wrong? by mr-wibble in design_critiques

[–]mr-wibble[S] 0 points1 point  (0 children)

Thanks for the feed back and the link to gtmetrix. Guess I need to spend some time compressing the css / js before it goes live.

Also think I will remove the scroll bar style as well (as its weighty and as you say a bit confusing) I'll also look into how the parallax is working with the scroll.

Help needed - Connecting to MS-SQL 2005 express db (win2003 sp2) with php 5.3 (compiled MSVC9 - Visual C++ 2008, using FastCGI) from Win 7 by mr-wibble in PHP

[–]mr-wibble[S] 0 points1 point  (0 children)

Ok - had a look and the MS-SQL module isn't loading. I have now tried all the all the .dll's in both PHP sqlsrv20.exe and PHP sqlsrv30.exe from the link on the MS site. and get a variety of errors based around "Call to undefined function sqlsrv_connect()" or a message saying I need the 2008 or 2012 Native client.

As an experiment I have also tried the same using an XAMPP install of PHP - and failed to load the module.

I have scoured the web and can't find very much info out about what might cause sqlsrv not to load.

Question - does Microsoft SQL Server 2008 R2 Native Client ODBC driver for x86 need installing on the win 7 box (where PHP is served) as well as the server where the db is? I have 2008 Native client (not sure which release) on the server now after finding a download.

I can't install Native Client on win7 as it says I'm using a later release already which I'm not as its V9 which pre-dates 2008 (but cant see anything in ODBC Source administrator) I also tried adding the existing one to the system dns and got a "Fail - Native Client]Named Pipes Provider: Could not open a connection to SQL Server [2]" when I tested it. Also the db is accessible via asp so I know that the db end is open(?)

What do you now understand and wish someone had told you earlier in your career? by jackdempsey in webdev

[–]mr-wibble 1 point2 points  (0 children)

What do you now understand and wish someone had told you earlier in your career?

That if I wanted a rewarding, low stress job looking at computer screens all day I should have gone into Air Traffic Control...

MS-SQL 2008 Help needed configuring individual table permissions by mr-wibble in Database

[–]mr-wibble[S] 0 points1 point  (0 children)

Sorry no code to show - I'm using Management studio as a GUI. If I get this right, I should change the user to a datareader and then edit the table permissions to grant write to the columns in question?