GithubHelp home page GithubHelp logo

Comments (8)

pepiuox avatar pepiuox commented on August 26, 2024

Thank you very much for your contribution, now you can verify, the error is corrected

from php-grapesjs.

imdewan avatar imdewan commented on August 26, 2024

123

121

the first error comes if we didn't upload error and the second one comes if we fill all inputs. Also the page doesn't create

from php-grapesjs.

imdewan avatar imdewan commented on August 26, 2024

image

After adding a folder 'uploads' reduces some errors but the page is still not created

from php-grapesjs.

pepiuox avatar pepiuox commented on August 26, 2024

image

After adding a folder 'uploads' reduces some errors but the page is still not created

add.php is updated now.

from php-grapesjs.

imdewan avatar imdewan commented on August 26, 2024

image

There is some sql error so i echo it.. have a look.

from php-grapesjs.

imdewan avatar imdewan commented on August 26, 2024

Thank u for ur help but i solved the error
add this line in add.php after $parent = $_POST['parent']; ---

if(!is_int($parent)){
$parent = 0;
}

from php-grapesjs.

pepiuox avatar pepiuox commented on August 26, 2024

Thank u for ur help but i solved the error
add this line in add.php after $parent = $_POST['parent']; ---

if(!is_int($parent)){
$parent = 0;
}
In the page table, parent is default '0', if not is selected you can use
// If parent not is integer or is empty
if (!is_int($parent) || empty($parent)) {
$parent = 0;
}

// Store in folder pages
$directory = 'pages/';
//Check if the directory already exists.
if (!is_dir($directory)) {
//Directory does not exist, so lets create it.
mkdir($directory, 0755, true);
}
// If you use and make php file
// $link_path = $directory . $link . ".php";
// If you use and make html file
$link_path = $directory . $link . ".html";
$myfile = fopen($link_path, "w") or die("Unable to open file!");
// For redirect php
// $txt = '';
// For redirect html
$txt = '<script>window.location.replace("../view.php?id=' . $last_id . '");</script>';
fwrite($myfile, $text);
fclose($myfile);

from php-grapesjs.

pepiuox avatar pepiuox commented on August 26, 2024

Sorry this code is for php
// For redirect php
$txt = '';
If not see the code check last update, I added your code

from php-grapesjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.