chhorn
-
Posts
115 -
Joined
-
Last visited
-
Days Won
2
Posts posted by chhorn
-
-
As said: you need a QR code READER (in php?).
-
So you need a QR code reader.
- 1
-
8 hours ago, LarsFlieger said:
It needs to be a complex pattern
what's the formular for your pattern?
-
i don't get any logic in that
QuoteEH => Price
EH3 => Price
EH3 1 => Price
EH3 1-4 => Price
Exceptions - No Delivery allowed
EH => null
EH3 => null
EH3 1 => null
EH3 1-4 => null
Can mix and match for example:
EH3 = £2.00
EH3 2 => £2.25
EH3 5 => null
so why is EH totally missing, EH3 2 is undefined but gets a price and EH3 gets a price even that it's an exeption? Makes no sense for me.
-
what should "does [not] work" mean?
i would recommend using foreach if you don't need a continious integer.
-
just use the "noindex" meta tag
-
5 minutes ago, npsari said:
I don't have time to learn this new mysqli or PDO
then your script will stop working.
-
For what data? Use SQLite in-memory to mock a databse.
-
16 hours ago, NotionCommotion said:
Why would one actually want to use json_encode() on a string?
so you can interact with software that uses JSON as exchange format.
-
Download PHPMailer, read the MySQLi Tutorial on www.php.net and start coding.
-
You should learn Websockets.
-
On the line before, just count them. count(open_paranthesis) === count(closing_paranthesis)
-
The database wrapper is not part of php-core so you have to completely debug that or ask the developer if it's not you.
-
<?php $json = '[{"foo": {"bar": 123}}]'; $array = json_decode($json, true); $threelevelsdeep = $array[0]['foo']['bar']; echo $threelevelsdeep;
-
If you get a "blank page" you should first have a look in the error.log of your server.
-
Doesn't matter. It is returned, you just don't look at it. Open the webdeveloper console and switch to the network tab.
-
So whats the problem then? If he entered the data, you store it, you show it.
-
yeah, try something then?
-
So your statement is invalid, check for quotes. Also you are building an SQL injection vulnerability, so everybody can easily delete your database.
Prepared Statements would solve both problems, just have a research for it.
-
just another variant:
$myarray = [ 'articles' => [ 'href' => 'http://admin.contenta.com/api/articles'], 'blocks' => [ 'href' => 'http://admin.contenta.com/api/blocks'], 'categories' => [ 'href' => 'http://admin.contenta.com/api/categories'] ]; print_r(array_combine(array_keys($myarray), array_column($myarray, 'href')));
-
Start with a research for `php mysql tutorial` and present your attempts.
-
Why not just trying something first?
-
Place the first code before the second, then use the function output for string concatanation
-
i would always recommend using var_dump() because it also shows info on null, boolean and empty string values. At least you can also use json_encode() for this, but it lacks on objects.
want to change the qrcode details
in PHP Coding Help
Posted
Did you try anything yourself? Like https://duckduckgo.com/?q=php+qr+code+reader