PHP - MySQL
-
» JanMolendijk I 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 » JanMolendijk Here is an answer `o god after 2 hours shame on me for this one`
<?php
$file_pointer = $_GET .'.txt';
if (!unlink($file_pointer)) {
echo (...
-
» JanMolendijk Pleassant 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 » JanMolendijk Marplo in once thanks for the great suport
-
» JanMolendijk Strange activity`s (injection)
Pleasant Coursesweb,
I have whole day this visitor their is might a possibility in the code for something like...
Last post » MarPlo Hello,
You can block that ip address in php, using this code:
if(strpos($_SERVER , '20.117.73') === 0) exit();
For instance, all of these...
-
» JanMolendijk Dear 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 » JanMolendijk O GOD THANKS MARPLO
When I`m home I gonna try the code
So much thanks for this support
-
» JanMolendijk Hello 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 » MarPlo Try the following code. See the differences.
<?php
echo '<div id= idd11'. $row .' style= display:none; >';
echo $row ;
echo...
-
» JanMolendijk Hello 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 » MarPlo To get the id after an Insert with pdo, use the lastInsertId() method.
$sql = INSERT INTO tracker_comment...
-
» JanMolendijk Hello 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 » JanMolendijk Marplo thanks thanks thanks for all suport
& even so quick suport `thanks again`
it is working
I could kiss you :D
-
» JanMolendijk Plessant 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.
-
» JanMolendijk Plessant 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 » MarPlo To get the hash from current url address in javascript, use the hash propertty
<script>
//set the hash
window.location.hash ='hsh';
//get...
-
» JanMolendijk Plessant 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 » JanMolendijk Marplo, I coming back some later time on it.
Because I need to re-study the script.... Also, because the data from $colors (excuse).
-
» JanMolendijk Hello 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 » JanMolendijk I found the answer Thanks for suporting
<h1 style= font-size:20; >
<?php
ini_set('highlight.html', ' font-size= 20px class=...
-
» JanMolendijk Coursesweb 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 » MarPlo Well, it can't be helped; I'm not so good with pdf in php.
-
» JanMolendijk Hello 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 » JanMolendijk Thanks 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....
-
» Marius I 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 » Admin You could add the spam words into a string, with | as word separator and then use regular expression to check.
$my_words =...
-
» Marius How can I remove backslashes from string in php?
I tried the following code.
$str ='abc-\123';
$str = stripcslashes($str);
echo $str; //...
Last post » Admin You can use str_ireplace() to remove backslash from string in php, but like in the following code (add two backslashes into the removing argument):...
-
» Marius Using 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 » Admin To 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...
-
» Marius I 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 » Admin It's because the dot (.) in regex is any character, while \. is literal dot.
Try the following code:
$matches = null;
$input = '123456...';...
-
» Marius How 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 » Admin You 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 =[...
-
» Marius I 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 » Admin Try to check if it is a multidimensional array, use count($agent, 1);, it will recursively count the array.
$ag1 =[
0 => ,
1 =>
];
$ag2...
-
» JanMolendijk How 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 » JanMolendijk I could kiss you for this support all things working & I even have it now in Dutch
Thanks Coursesweb
-
» Admin I'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 » Marius From 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...
-
» JanMolendijk Dear Coursesweb about mail-function I try another way to complete
Now my problem is to get the referenceid from Url.
<script src=...
Last post » JanMolendijk Ow sometimes I`m stupid :D thanks it is working now
-
» JanMolendijk Hello 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 » JanMolendijk Still mutch thanks for your support like allway`s
-
» JanMolendijk Hello 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 » JanMolendijk Thanks for the great support, all my content with
comments + pictures are now archived in .zip-map.
I also adding partners on my website &nd...
-
» mlucicom Hello, 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 » mlucicom I resolved with this thank you:
I changed the code but this send only an api request :
<?php
$servername = localhost ;
$username = mluci_api ;...
Forum permissions
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum