Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: PeDa
  • Content: Threads
  • Order by date
  1. PeDa

    Media query: display = none/inline/block

    I use a media query to set the two columns of my table under each other on mobile devices: @media screen and (max-width:610px) {td,tr {display:block;}} One row of the table contains two radio buttons to hide or show other rows (in class "m") in the table: <tr> <td>Geeft u machtiging?</td>...
  2. PeDa

    Basic Authentication fails to authenicate

    I am trying to protect a webpage with basic autentication, however (both on a local WAMP-server and on my providers server), I cannot get any authentication. Even with the following code which should, I assume, only check for the presence of any username, authentication is refused: <?php if...
  3. PeDa

    POST Content-lLength of ... bytes exceeds the limit of 8388608 bytes in Unknown on line 0

    I am uploading multiple photos, where I want to reject photos that are too big, using essentially: <form action='file_upload.php' method='POST' enctype='multipart/form-data'> <input type='file' name='files[]' multiple> </form> file_upload.php contains: foreach ($_FILES['files']['tmp_name']...
  4. PeDa

    Unwanted spaces in php HTML mail

    I am generating HTML mails using the following script: $to = '"xxxxxxxx" <' . EXCURSIE . '>'; $bcc = '"xxxxxxxx" <' . WEBMASTER . '>'; $from = '"xxxxxxxx" <' . EXCURSIE . '>'; $subject = 'XXXXXXX: Inschrijving'; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html...
  5. PeDa

    CSS two level horizontal menu

    I am trying to adapt a menu found on internet to this page. My problem is that the second level menu occupies the whole screen width, and not just the constrained width of the first level. Playing with the css properties of the subnav-content class (see below) has not yeilded me anything...
  6. PeDa

    Try catch not catching

    I read dates from a table and show a thumbnail and link for each date. The thumbnails are in folder /impressie/yyyymmdd/ . The following script works fine if the folders do exist. I want, however, to catch the case that the folder does not exist (that is to say: wrong date in table) $result =...
  7. PeDa

    Report invalid characters in string

    I have a form that validates each field with code like $err=''; if (empty($input['surname'])) {$err=$err . "&bull; Surname is missing<br>";} else{if (!preg_match("/^[\p{L}. '-]*$/u",$input['surname'])) {$err = $err . "&bull; Surname is invalid<br>";}} then checking if $err is still empty. I...
  8. PeDa

    prepend row to two dimensional array

    I have a two dimensional array $data: [r1c1][r1c2][r1c3] [r2c1][r2c2][r2c3] [r3c1][r3c2][r3c3] [r4c1][r4c2][r4c3] How can I prepend a row $heads?: [r0c1][r0c2][r0c3] P.S. The reason I am doing this is to submit the resultant array to SimpleXLSXGen
  9. PeDa

    unwanted spaces inserted into the middle of php-generated html email body

    I am generating a HTML e-mail containing a table with php 7.4. If my table contains a limited number of records (say 10) everything works fine (in Microsoft Outlook) , but with longer tables a space is periodically (about ever 1200 characters - very rough estimate) inserted into the html of the...
  10. PeDa

    move_uploaded_file : permission denied

    I (and my fellow committe members) have full FTP-access to our website (hosted by a commercial provider). However, if we try to upload a file using the following procedure: $targetDir="/XXX/customers/XXXXXX/XXXXXXXXX.nl/phptest/pictures/activiteiten/"; if (!empty($_FILES["image"]["tmp_name"]))...
  11. PeDa

    Exporting to Excel

    I export php data to Excel using the following script: $db = mysqli_connect(HOST, USER, PASS) or die(mysqli_error($db)); mysqli_select_db($db, DBNAME); $q="SELECT * FROM foo"; $result = mysqli_query($db,$q) or die(); $tsv = array(); while ($row = mysqli_fetch_array($result, MYSQLI_NUM)) {...
  12. PeDa

    php constant in mail header

    The following script, in which the 'From' parameter is defined in a variable, works as expected: <html> <title>Test mail</title> <body> <?php define("INFO", "info@mysite.nl"); $from="info@mysite.nl"; $recipient = 'fred@bloggs.nl'; $subject='Test subject'; $body='hello from info'; $headers =...
  13. PeDa

    Display table td's as block element on mobile phone

    In my webpage here I am trying to display data in tables (text and image beside eacht other) on a computer and as block elements under each other on a mobile phone. I thought that the following would be enough to achieve this: <style> @media screen and (max-width:600px) table, table tr, table...
  14. PeDa

    mdash incorrectly rendering on Android phone (but not on PC) <- well not actually!

    If my straight html pages contain an mdash character these are correctly rendered in different browsers on both my Android mobile phone (Samsung) and my Windows PC. If however this character is contained in text loaded from MySQL/php it correctly renders on the PC, but as the three characters...
  15. PeDa

    Horizontal rule and CSS problem

    The following code is intended to show left- and right-aligned text with <hr> just above and below. This works fine if the two texts fit on one line. If their combined width is greater that the screen width, the right-aligned text appears below the left-aligned one (which is what I want), but...
  16. PeDa

    Opening MySQL table from Microsoft Access

    I have the following string: SELECT * FROM tbtimes WHERE (eEvent LIKE '%align=\'center\'%') ORDER BY eOrder which behaves as expected (finds records containing: align='center') when run from phpMyAdmin. However the following in Microsoft Access gives VBA error 3075: Syntax Error (Missing...
  17. PeDa

    PHP and CSS media queries

    I need to display my PHP data is quite different tables on desktop and mobile phone. At the moment I generate both versions in one webpage and then hide the inappropriate one using media queries. Is there a more elegant way of achieving this? (the difference is too great to use, for example...
  18. PeDa

    WHILE loop still running when condition no longer met

    I have the following data (array with longitude values) $Longitude[0] = -6.25195; $Longitude[1] = -6.25192; $Longitude[2] = -6.25192; $Longitude[3] = -6.25177; $Longitude[4] = -6.25241; ... I want to generate an equivalent array containing letters, increasing throught the alphabet if a...
  19. PeDa

    Join on table1.var1 = -table2.var2 gives 'Join expression not supported' error

    Any suggestions how to work arround this error message in the following expression where the ON condition contains a minus sign (row source for a dropdown list) SELECT pID, pName & ", " & pTitle & " " & pPreName & " (" & pBornYear & "-" & pDiedYear & ")", tbTimesRefs.rShip_n FROM tbTimesRefs...
  20. PeDa

    Include URL with parameter in table generated by php

    From a ODBC database I generate a table containing two columns: a date and a text that may contain a link to another php page (see for example last row in https://www.pdavis.nl/ShowShip.php?id=50). As long as this link does not contain a parameter in the URL this works fine: <tr><td...

Part and Inventory Search

Back
Top