Community Member Featured
Member Avatar
cereal 1,347 Replied To a Post in Prestashop and smarty
Topic by davy_yg in Web Development
It is [smarty.net](http://www.smarty.net/), a template engine. Reply by cereal
Member Avatar
cereal 1,347 Began Watching Prestashop and smarty

Hello,

I am trying to undestand what is smart.net for and what is it's relation with prestashop. I heard prestashop is made from smarty but I still cannot understand how to relate the two of them.

I also cannot figure out how to create theme with prestashop. Can anyone else … Topic by davy_yg in Web Development
Member Avatar
cereal 1,347 Replied To a Post in php to insert into db using checkbox
Topic by Peter_56 in Web Development
Okay, at line 24 change `$Lo_ID` to `$lo_id`. In PHP [variable names are case sensitive.](http://php.net/manual/en/language.variables.basics.php) Reply by cereal
Member Avatar
cereal 1,347 Replied To a Post in php to insert into db using checkbox
Topic by Peter_56 in Web Development
The loop is not executing the insert query, because the statement is executed at line 13. So only the last will be inserted. The insert can fail for different reasons:

* $id does not increment through the loops, i.e. with: `$i++;`
* when you execute the form again, $id will … Reply by cereal
Member Avatar
cereal 1,347 Began Watching php to insert into db using checkbox
Hi
I have the following form at [http://test.genealogyresearchassistance.co.uk/newLinks.php](http://test.genealogyresearchassistance.co.uk/newLinks.php)

The code is


<form id="add" action="add.php" method="get">
<label for="name" id="name">Name of site</label>
<input type="text" name="name" required="yes"><br/>
<label for="link" id="link">Link of site</label>
<input type="url" name="link" required="yes"><br/>
<label for="desc" id="desc">A bit about the site</label>
<textarea name="desc" required="yes"></textarea><br/>
<label for="location"> Location:</label>
<?php
include 'database_conn.php';
$sql … Topic by Peter_56 in Web Development
Member Avatar
cereal 1,347 Replied To a Post in Why Jelly Button is not working for me?
Topic by peace_coder in Web Development
Also you have to include the TweenMax javascript:

* https://cdnjs.cloudflare.com/ajax/libs/gsap/1.12.1/TweenMax.min.js

it's visible in Codepen JS settings . Reply by cereal
Member Avatar
**I saw a jelly button here:** https://codepen.io/ayamflow/pen/Dufxr

But when I tried to create it on my laptop [image](http://ibb.co/bZhXa5) its not working.

Here you can see: [image of button](http://ibb.co/nAfw2k)

I am using these codes:
**For HTML**

<!doctype html>
<html>
<head>
<title>bubble</title>
<link rel = "stylesheet" type = "text/css" href = "assets/stylesheet.css" … Topic by peace_coder in Web Development
Member Avatar
cereal 1,347 Replied To a Post in php
Topic by Raghu_2 in Web Development
php
Hi,

please share the code and explain where you have difficulties. Also write meaningful titles, just *php* does not help who wants to help or is searching a solution for your same issue. Reply by cereal
Member Avatar
cereal 1,347 Began Watching php
Good Morning..
I Stored an pdf file to varbinary field in Sql Server successfully and retrieved is as it is but my problem is during retrieve i have to put some watermark on it , for that i tried fpdf methods but it didnt parse it so please help me … Topic by Raghu_2 in Web Development
php
Member Avatar
Featured cereal 1,347 Replied To a Post in Load a Microsoft support articles outside a browser
Topic by dsimonovski1 in Software Development
// EDIT

In addition to rproffitt's: contents, in the MS knowledge board, are loaded through Javascript, file_get_contents() won't load them, you need a rendering engine (like browsers do) to run your scripts. So you need something like PhantomJS: http://phantomjs.org/

Few months ago I posted an usage example here:

* https://www.daniweb.com/community-center/threads/507919/daniweb-breaking-links-in-posts#post2218987 … Reply by cereal
Member Avatar
0
down vote
favorite
So you have these Microsoft KB support articles. Example: https://support.microsoft.com/en-us/help/871122

My goal is to be able to iterate through a list of these pages and see if the articles actually exist. As you can imagine, it's hard to do it manually, so I need a program … Topic by dsimonovski1 in Software Development
Member Avatar
cereal 1,347 Replied To a Post in How to turn on allow_url_fopen?
Topic by peace_coder in Web Development
php
Hi,

if you can edit the main php.ini file, change the option to on:

allow_url_fopen=on

then reload the phpinfo page to see if it applied. The location of the file is defined in the *Configuration File (php.ini) Path* of the phpinfo view. If you cannot edit the main php.ini, you … Reply by cereal
Member Avatar
cereal 1,347 Began Watching How to turn on allow_url_fopen?
I tried to turn on "allow_url_fopen" through MultiPHP INI Editor in cPanel.

[You can see image here](https://ibb.co/dS9WHk)

But when I check through test.php it shows there that allow_url_fopen is still disabled: [Image](https://ibb.co/irriV5)

Can you tell me where the problem is? Even after enabling through MultiPHP INI Editor it is disable … Topic by peace_coder in Web Development
php
Member Avatar
cereal 1,347 Replied To a Post in Why Proxy Script Shows Error 400 ?
Topic by UI in Web Development
php
Continue here: https://www.sitepoint.com/community/t/why-400-error/266706 Reply by cereal
Member Avatar
cereal 1,347 Began Watching Why Proxy Script Shows Error 400 ?
Folks,

Why do I keep on getting this error when everytime I input a url in the url field in the following web proxy script:

**"The specified URL could not be returned due to a status code of 400."**


It says unless the Status Code is 200 then to show … Topic by UI in Web Development
php
Member Avatar
Featured cereal 1,347 Gave Reputation to gentlemedia in Rich Text Editor
Topic by SimonIoa in Web Development
Did you check out https://quilljs.com/ / https://github.com/quilljs/quill/ ? Reply by gentlemedia
Member Avatar
cereal 1,347 Replied To a Post in impossible to start apache2 on ubuntu LAMp
Topic by chrisschristou in Web Development
> is there i way to remove apache2 completly and make my pc forget it for ever ??

Yes, you can run:

sudo dpkg --purge apache2

This however will not remove the default document root (usually `/var/www/html/`) as the installation writes the welcoming apache frontpage. Reply by cereal
Member Avatar
cereal 1,347 Replied To a Post in impossible to start apache2 on ubuntu LAMp
Topic by chrisschristou in Web Development
`${APACHE_RUN_DIR}` should be defined in `/etc/apache2/envvars`, now I don't have one to verify, but it should be something like:

export APACHE_RUN_DIR=/var/run/apache2$SUFFIX Reply by cereal
Member Avatar
hello everyone gld this community exist !
i'm facing new problem with apache2 on ubuntu i'm using lamp from yesterday and everything works fine knowing that i'm originaly from windows !
so when i type `gksu service apache2 start` in terminal and then put my password, when i refresh localhost … Topic by chrisschristou in Web Development
Member Avatar
cereal 1,347 Gave Reputation to AndrisP in Register Values in php
Topic by shivya_1 in Web Development
php
Please do not write duplicate topics https://www.daniweb.com/programming/web-development/threads/508505/insert-values-in-database Reply by AndrisP
Member Avatar
cereal 1,347 Replied To a Post in Register Values in php
Topic by shivya_1 in Web Development
php
Do you care to share the solution? Also, show us the form and the updated PHP code. Reply by cereal
Member Avatar
Featured cereal 1,347 Replied To a Post in How do i lock a USB so user cant delete or add files?
Topic by Stefan_1 in Hardware
IMHO it's best printing the name on the usb case and let the client reuse the drive. Otherwise you have to change the firmware of the usb to act like a CD, see if this helps: https://superuser.com/a/822578 Reply by cereal
Member Avatar
Hello how can i lock a usb drive that the user it will be not able to remove the files that are in also to cant add new ones? I think its very cool for advertising own goals :)

- Thanks :) Topic by Stefan_1 in Hardware
Member Avatar
cereal 1,347 Gave Reputation to AndrisP in Register Values in php
Topic by shivya_1 in Web Development
php
Please do not write duplicate topics https://www.daniweb.com/programming/web-development/threads/508505/insert-values-in-database Reply by AndrisP
Member Avatar
cereal 1,347 Replied To a Post in Register Values in php
Topic by shivya_1 in Web Development
php
> Thanx for your reply but I am still facing the same issue.
> Can't store values of text fields in variables

You're welcome, but I was not suggesting a fix, I suggested you to run those functions in order to see if there are errors in your database connection, … Reply by cereal
Member Avatar
cereal 1,347 Replied To a Post in Register Values in php
Topic by shivya_1 in Web Development
php
Hi, add error checks before and after the query:

if($conn->connect_errno)
die(sprintf("CONNECT ERROR: %s: %s", $conn->connect_errno, $conn->connect_error));

$result = mysqli_query($conn, $sql);

if($conn->errno)
die(sprintf("ERROR: %s [%s]: %s", $conn->errno, $conn->sqlstate, $conn->error));

And see if you get any useful input. Reply by cereal
Member Avatar
cereal 1,347 Began Watching Register Values in php
Hello to all,

I am facing an issue in registering values into database through php.
Many times i have done the same but i don't know why i am unable to do this now. Since from 2-3 months, I have not done anything in php.Please help me out..

<?php
include("config.php"); … Topic by shivya_1 in Web Development
php
Member Avatar
cereal 1,347 Gave Reputation to Mhecha in Can't echo and update
Topic by Mhecha in Databases
Hi @cereal, Am already found my mistake, it's just a form name as you said, Thanks for your help. Reply by Mhecha
Member Avatar
Topic by Kasia_3 in Community Center
Hey Thank you! :) Reply by Kasia_3
Member Avatar
Topic by Kasia_3 in Community Center
Maybe this will be helpful for your research:

* https://arxiv.org/abs/1703.04993 Reply by cereal