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>...
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...
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']...
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...
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 =...
I have a form that validates each field with code like
$err='';
if (empty($input['surname'])) {$err=$err . "• Surname is missing<br>";}
else{if (!preg_match("/^[\p{L}. '-]*$/u",$input['surname'])) {$err = $err . "• Surname is invalid<br>";}}
then checking if $err is still empty.
I...
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
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...
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"]))...
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))
{...
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 =...
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...
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...
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...
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...
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...
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.