www.webdeveloper.com

Search:

Type: Posts; User: scaiferw

Page 1 of 9 1 2 3 4

Search: Search took 0.02 seconds.

  1. Using fewer table columns on mobile version of page

    I have a table that shows tabular data across 7-8 columns, which works very well on a standard monitor.

    However, on a smartphone or even a tablet, it's a little less functional.

    Is there a way...
  2. Thread: Parse Error!

    by scaiferw
    Replies
    4
    Views
    708

    Welcome to the forum. Looks like you're...

    Welcome to the forum.

    Looks like you're missing the brace to open your function.

    private function validate()

    should be

    private function validate() {
  3. Replies
    0
    Views
    393

    Salted Passwords

    I'm dipping my toe in the water of salted passwords by upgrading an older webapp, and would like to present the rough outline of how my system would work in the hope that those with more experience...
  4. Thread: Trigger

    by scaiferw
    Replies
    0
    Views
    579

    Trigger

    I want to create a trigger on my 'persons' table so that after an update, if the attribute clubid is changed, attribute clubname should be changed.

    I have a rough syntax below, which I think...
  5. Excellent. Thanks, I'll play with that.

    Excellent. Thanks, I'll play with that.
  6. Interesting. So I'd create a script with a...

    Interesting. So I'd create a script with a document.getElementById() line for each server in the list (there could be 100 in the list) then create the span with the unique id in the list for each...
  7. runApp() link works in IE, not in Chrome or Firefox

    I have a lab management webapp that lists servers on my network. With a click in IE I can open a terminal services session to that server. The code works in IE, but not in chrome or firefox. Can...
  8. Replies
    0
    Views
    1,613

    alias page to directory

    I have a page called site.com/directorylist.php and I'd like users to be able to access it with site.com/directory/ or site.com/directory.

    I imagine that would be done in .htaccess, but just how...
  9. Replies
    0
    Views
    966

    Odd sort requirement

    I have a list of network connected devices that include servers, routers and switches.

    Device types are defined in a lookup table, lu_hardware_type, Devices are defined in the devices table.
    ...
  10. Replies
    0
    Views
    1,634

    Triggers - trying to get one working

    In my service club db I have a persons table for members and a clubs table for clubs in our district of 68 clubs.

    I have the club number/id and club name in both tables.

    What I want do do is...
  11. Replies
    3
    Views
    2,346

    Fantastic, thanks. I'm going to have a go at...

    Fantastic, thanks. I'm going to have a go at that as soon as I have a few minutes. I may want to put just a very subtle shadow, I think subtle effects like that can draw the eye without taking over...
  12. Replies
    10
    Views
    2,864

    I use Notepad++ and I'm sure I could use regex...

    I use Notepad++ and I'm sure I could use regex with it. Unfortunately, because I learned PHP/MySQL as I wrote this webapp, the structure is not as disciplined and consistent as it would be if I...
  13. Replies
    10
    Views
    2,864

    That's good info, thanks. I've been thinking...

    That's good info, thanks.

    I've been thinking more in terms of POST and GET; I might have missed cookies and session variables.

    I've got a lot of work ahead of me but I've got a better picture...
  14. Replies
    10
    Views
    2,864

    Thank you for your input. I'd like to ask one...

    Thank you for your input.

    I'd like to ask one more detail;

    When sanitizing inputs for my PHP/MySQL, I'm not positive what needs to be covered.

    Do I only need to sanitize those SQL queries...
  15. Replies
    10
    Views
    2,864

    Thanks for that good info. I take it then that...

    Thanks for that good info.

    I take it then that this is a valid way to sanitize inputs.
  16. Replies
    10
    Views
    2,864

    A quick correction to that last. If my input...

    A quick correction to that last.

    If my input string started with rew123ture, I got a zero returned, if my input string started with numbers, I got the numbers, with the trailing string stripped...
  17. Replies
    10
    Views
    2,864

    Partially answering my own question, I threw this...

    Partially answering my own question, I threw this in a page:

    $request_input_sanitized = sprintf("%u",mysql_real_escape_string($_REQUEST['input']));
    echo "".$_REQUEST['input']."<br...
  18. Replies
    10
    Views
    2,864

    Sanitizing a key variable

    Is this line a reasonable way to sanitize an input of a primary key value to prevent SQL injection attacks?


    $post_id_sanitized = sprintf("%u",mysql_real_escape_string($_POST['id']));

    ...
  19. Thread: Site Hacked

    by scaiferw
    Replies
    5
    Views
    1,746

    Is this statement an effective way to sanitize...

    Is this statement an effective way to sanitize the input of the key variable and ensure that it is a numeric?


    $id = sprintf("&#37;u", mysql_real_escape_string($_POST['id']));
  20. Thread: Site Hacked

    by scaiferw
    Replies
    5
    Views
    1,746

    Thanks for the input. It sounds then like I'll...

    Thanks for the input.

    It sounds then like I'll have to go through all my queries and escape the input with mysql_real_escape_string($value).

    What a pain.

    Oh well. If it was easy, I suppose...
  21. Replies
    3
    Views
    2,346

    Problem with Transparency in Fireworks

    I'm trying to create a WordPress.com header for rotary7040pr.wordpress.com.

    I have a layer for the background colour, and have created another layer for text and graphics. So far so good.

    Now I...
  22. Thread: Site Hacked

    by scaiferw
    Replies
    5
    Views
    1,746

    Site Hacked

    A site I do as a volunteer thing has been hacked. A relatively harmless hack at this point, where text blocks in a database table that populate the front page of my site are replaced with text to...
  23. Replies
    2
    Views
    1,512

    I thought it might be something like that, it...

    I thought it might be something like that, it seems like sometimes the edges of divs overlap by a pixel in certain browsers. With that in mind, I reduced the size of the centre div by a couple of...
  24. Replies
    2
    Views
    1,512

    IE 7 and 8 screw up my rendering

    My fundraiser site at http://www.tasteofbarrhaven.ca doesn't render properly in IE6 or IE7, the centre div is pushed down considerably. Firefox and IE8 are fine.

    Validating the page shows some...
  25. Replies
    2
    Views
    2,576

    Potential solution

    I think I have this figured out, and would welcome any comment.

    The submit button on the form posts the data right back to the same page/script.

    On loading, the page checks for a $_POST value...
Results 1 to 25 of 214
Page 1 of 9 1 2 3 4
HTML5 Development Center



Recent Articles