PHP - MySQL
-
» JanMolendijkI searching for an hour for a solution; unlink seems not to work with GET id
<?php
$id = (int) $_GET ;
echo $_GET ;
$file = fopen( '.$_GET...Last post » JanMolendijkHere is an answer `o god after 2 hours shame on me for this one`
<?php
$file_pointer = $_GET .'.txt';
if (!unlink($file_pointer)) {
echo (...
-
» JanMolendijkPleassant Marplo, hope all things are okey ?
I have a question, I think I have server problem with uploading maximal upload-file (mb) is to less I...Last post » JanMolendijkMarplo in once thanks for the great suport
-
» JanMolendijkStrange activity`s (injection)
Pleasant Coursesweb,
I have whole day this visitor their is might a possibility in the code for something like...Last post » MarPloHello,
You can block that ip address in php, using this code:
if(strpos($_SERVER , '20.117.73') === 0) exit();
For instance, all of these...
-
» JanMolendijkDear Coursesweb, Hope you do all fine
I can not find out how to add in the <style> a result from my database.
Hope to get some support for...Last post » JanMolendijkO GOD THANKS MARPLO
When I`m home I gonna try the code
So much thanks for this support
-
» JanMolendijkHello CoursesWeb,
I have sql document with 4 results from-out database.
But I can`t open the results from the post_id ????
What do I do wrong...Last post » MarPloTry the following code. See the differences.
<?php
echo '<div id= idd11'. $row .' style= display:none; >';
echo $row ;
echo...
-
» JanMolendijkHello Coursesweb,
I asking for longer time myself how to get the ID after an insert into database with pdo.
<?php
if(isset($_POST )){...Last post » MarPloTo get the id after an Insert with pdo, use the lastInsertId() method.
$sql = INSERT INTO tracker_comment...
-
» JanMolendijkHello Coursesweb
I have a problem to get results from the database into input type text form in the place name.
name= id='. $row1 ....Last post » JanMolendijkMarplo thanks thanks thanks for all suport
& even so quick suport `thanks again`
it is working
I could kiss you :D
-
» JanMolendijkPlessant Coursesweb,
I have an grouplist in my database from country`s.
First time I did not do any search-study for this questionm but ask you...Last post » MarPlo@HayatAnsiklopedisi , post the SQL query you have, and explain what result you want to get.
-
» JanMolendijkPlessant Coursesweb
I have in this url standing an hash
//145.53.93.209/Molendijk/home/read.php?id=<?php echo $row ?>#<?php echo $row...Last post » MarPloTo get the hash from current url address in javascript, use the hash propertty
<script>
//set the hash
window.location.hash ='hsh';
//get...
-
» JanMolendijkPlessant Coursesweb
I`m still busy to read out colors my first tryout did not work.
In foreach code below I getting 20 results in once,
But I...Last post » JanMolendijkMarplo, I coming back some later time on it.
Because I need to re-study the script.... Also, because the data from $colors (excuse).
-
» JanMolendijkHello Coursesweb I try to update my highlight code from ini_set
but I would also like to color it with string replacements or something else
For...Last post » JanMolendijkI found the answer Thanks for suporting
<h1 style= font-size:20; >
<?php
ini_set('highlight.html', ' font-size= 20px class=...
-
» JanMolendijkCoursesweb next problem I try for hours to add watermark in my php document.
I getting errors or non result
class PDF_Rotate extends FPDF is...Last post » MarPloWell, it can't be helped; I'm not so good with pdf in php.
-
» JanMolendijkHello Coursesweb I have a problem with my php document to convert it to PFD
I cant find out how to get results from $users into the HTML to the PDF...Last post » JanMolendijkThanks MarPlo I prefer not to ask anything on stackoverflow.com
because I once typed a small i instead of I.
and received many comments about it....
-
» MariusI have a list of spam words that are into an array. When a user submits a string text, I want to know if it contains these words. How can I do this...Last post » AdminYou could add the spam words into a string, with | as word separator and then use regular expression to check.
$my_words =...
-
» MariusHow can I remove backslashes from string in php?
I tried the following code.
$str ='abc-\123';
$str = stripcslashes($str);
echo $str; //...Last post » AdminYou can use str_ireplace() to remove backslash from string in php, but like in the following code (add two backslashes into the removing argument):...
-
» MariusUsing the code:
$from_date = date('Y-m-d 00:00:00', strtotime('first day of last week'));
echo $from_date; // 2020-10-01 00:00:00
returns:...Last post » AdminTo get in php the first day of last week , try strtotime() with the string: last week last sunday .
To get the last day of last week , use the...
-
» MariusI have a string with numbers and periods. For example '123456...'
I want to separate 123456 and ... and still get the number and the period in php....Last post » AdminIt's because the dot (.) in regex is any character, while \. is literal dot.
Try the following code:
$matches = null;
$input = '123456...';...
-
» MariusHow can I check in php if an array is multidimensional or not?
I get a JSON from a third-party application and I parse it in php. But sometimes data...Last post » AdminYou can check with two count() functions. If you add a second argument as True it will recursively count the array.
Here is an example:
$arr =[...
-
» MariusI am working to return reviews for a list of Agents. I have a foreach loop that then pulls the list of reviews for each agent. The list is returned...Last post » AdminTry to check if it is a multidimensional array, use count($agent, 1);, it will recursively count the array.
$ag1 =[
0 => ,
1 =>
];
$ag2...
-
» JanMolendijkHow are all things going CoursesWeb now with Covid-19.
It is shamble for all lovely lady`s who have the name.
I hope all Governements gonna make-up...Last post » JanMolendijkI could kiss you for this support all things working & I even have it now in Dutch
Thanks Coursesweb
-
» AdminI've been trying to use the PHP COM class in my script:
$voice = new COM('SAPI.SpVoice');
but I get receiving the following error.
Fatal...Last post » MariusFrom PHP 5.4.5, COM and DOTNET is no longer built into the php core.
You have to add COM support in php.ini. Add the following code to the end of...
-
» JanMolendijkDear Coursesweb about mail-function I try another way to complete
Now my problem is to get the referenceid from Url.
<script src=...Last post » JanMolendijkOw sometimes I`m stupid :D thanks it is working now
-
» JanMolendijkHello I found a mail script with add file`s function
only I would like to build a seccond mail-function
in it so the sender gets a copy from his...Last post » JanMolendijkStill mutch thanks for your support like allway`s
-
» JanMolendijkHello chief hope you do fine ?
I have here a code, it create a zip-archive + place a text--document in the zip-archive
this works correctly.......Last post » JanMolendijkThanks for the great support, all my content with
comments + pictures are now archived in .zip-map.
I also adding partners on my website &nd...
-
» mlucicomHello, i have a JSON response from an api that is like this: mluci.com/script.php
I tried to transform this to an array but i can't foreach this.For...Last post » mlucicomI resolved with this thank you:
I changed the code but this send only an api request :
<?php
$servername = localhost ;
$username = mluci_api ;...