PHP - MySQL


  1. » 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.


  2. » 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...


  3. » 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).


  4. » 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=...


  5. » 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.


  6. » 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....


  7. » 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 =...


  8. » 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):...


  9. » 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...


  10. » 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...';...


  11. » 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 =[...


  12. » 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...


  13. » 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


  14. » 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...


  15. » 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


  16. » 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


  17. » 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...


  18. » 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 ;...


  19. » JanMolendijk
    I have a little script to detect if a member is placed in database
    but I dont understand how to detect $row in javascript

    also I don`t known how...
    Last post » Admin
    I think that in the controller.php file you must call the searchData() method with data from the js ajax.
    Something like this:
    echo...


  20. » JanMolendijk
    I`m back again found a solution on the question before thanks for that
    |My new problem I try to detect # hash with a id

    like this url example but...
    Last post » JanMolendijk
    I tested it again &nd it seems like to work now `thanks for supporting`


  21. » JanMolendijk
    I`m busy for a few hours to add a function in my comment system
    this comment-system post comments is without page-refresh

    Only I can`t find out...
    Last post » Admin
    According to your script, each form must have its own submit button.


  22. » JanMolendijk
    Chief I have a problem to get the countrycode into my sql-statement.

    Please help me out....

    This script is to detect the countrycode...
    Last post » Admin
    The JavaScript code cannot be executed in php.
    Javascript is executed in browser, after the php finished to output its data.
    Also, Javascript it is...


  23. » JanMolendijk
    Chef hope you do fine.... I readed many documents about PDO insert into, mostly with the function where not exists.

    I tried also some things into...
    Last post » Admin
    The query: Insert into ... where not exists ... is used when you want to insert something in database when a specified data not exists in that table....


  24. » JanMolendijk
    My SQL-database was stolen on monday-morning they ask 0.05 Bitcoin to send it back :D
    When I readed it I had to laugh because I have backups &...
    Last post » Admin
    Hello,
    I think the problem is not from XAMPP, but from the php script you made and run on your server.
    It is possible that your database was stolen...


  25. » JanMolendijk
    I have a simple script to show the visited url
    but from my sql table I would like to display only the 'tag=variables', not id= or other...
    Last post » JanMolendijk
    Thank you so mutch `thanks thanks thanks` working in once