-
Replied To a Post in Attendance form help 2
Hi > And also, the checkbox says it's all ticked even the values are different (lines 61 - 63 of index.php) what do you mean?`checked` is a boolean attribute, which … -
Began Watching redirecting to login page??
I have a admin folder where various .html files are there what happening is when i type http://mydomain.com/index.html it opens up a page and various other page but i want … -
Gave Reputation to FarrisFahad in I want to build something similar to facebbok post impressions
I have found great plugin that works perfectly it's called, waypoint. You can search for it using Google Here is a link to the plugin: http://imakewebthings.com/waypoints/ Just follow the guide … -
Replied To a Post in PHP shortcut for "include and execute function"
Look specifically at: * https://bryanjhvtk.wordpress.com/2014/03/14/functions-autoloading-php/ It was suggested in that discussion: he's using namespaces to autoload function helper files, basically you create an helper file for each custom function and … -
Replied To a Post in Undefined index and form doesn't work Properly
And `$sizes` will be an array, correct? From your previous code I see you set two different variables: `$sArray` or an empty `$sizesArray`. You can save an array into a … -
Replied To a Post in PHP shortcut for "include and execute function"
It would be a lot easier by using an autoload script, namespaces and some classes or some helper files. For some ideas, read: http://stackoverflow.com/questions/4737199/autoloader-for-functions -
Replied To a Post in Undefined index and form doesn't work Properly
Try to replace `disabled` with `readonly`: * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-readonly But if it is for security, don't rely on this solution, as one can easily edit the form and submit arbitrary input. … -
Replied To a Post in Undefined index and form doesn't work Properly
It can happen because the `sizes` input field is **disabled**, so it will not be sent with the POST request. In order to work fine, you should remove the `disabled` … -
Replied To a Post in Undefined index and form doesn't work Properly
Hi, which library are you using? In the UI I only see `dialog()` not `modal()`. Build an example page with full requirements, so that we can test, or share the … -
Replied To a Post in More Than 2 Foreach Statements
Hi, the `foreach` construct only accept these syntaxes: foreach (array_expression as $value) And: foreach (array_expression as $key => $value) it seems you're trying to extract two keys, it won't work. … -
Replied To a Post in Curl request returns 401 not authorized
Hi, have you tried to set the headers like in command line? -
Replied To a Post in Would someone please Direct me as to which way to go.
**@DuuBinJaX** hi, please open your own thread, share your code and explain your issue. -
Replied To a Post in I need help.
You question is not clear, files are copied in the usb? How big are these 10 files? -
Began Watching Prevent flickering of font between normal and bold state
I take two versions of Open Sans from Google Fonts' servers. Regular and a bold one. As soon as page loads, the font is shown nicely. The idea is something … -
Replied To a Post in Specific SQL query to parse while searching
With **MySQL** you can use `FIND_IN_SET()`: SELECT * FROM `example` WHERE FIND_IN_SET(192, `paricipantsId`); **Docs:** http://dev.mysql.com/doc/refman/5.7/en/string-functions.html#function_find-in-set Or, if you need something more complex and you switch to **MariaDB**, then you can … -
Replied To a Post in Fonts rendered differently on Windows and Linux
Concerning the color: it can be different due to the monitor calibration, you should calibrate in both systems to get the same results. -
Replied To a Post in Where to store website configuration file?
It's up to you. I use arrays, like: <?php return [ 'paths' => [ 'images' => '/path/to/images/directory/', 'styles' => '/path/to/styles/directory/', # ... ], # ... ]; And/or dotenv: https://github.com/vlucas/phpdotenv -
Replied To a Post in font - size
Hi Davy, could you please use the code tag when you share code on this forum? -
Replied To a Post in Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in...
**@Elva_1** hi, please open you own thread. -
Stopped Watching Best programmable finger print device?
Hi everyone! Long story short; I got a Secugen Hamster IV finger print device. I want to use it in my hospital application to be used in identification of patients … -
Replied To a Post in What is the main Differences between Null value and blank?
**@Vinod** you can do: SELECT * FROM `table_name` WHERE `column_name` = ''; This will return only the empty strings, NULL values will be ignored by the statement. An example: http://sqlfiddle.com/#!9/0aa0bb/1 -
Began Watching Best programmable finger print device?
Hi everyone! Long story short; I got a Secugen Hamster IV finger print device. I want to use it in my hospital application to be used in identification of patients … -
Replied To a Post in Send Mail Php
Hi, you mean you want to send an email in HTML format rather than plain-text? Check **example 4** in the documentation of the `mail()` function: * http://php.net/manual/en/function.mail.php However, I suggest … -
Replied To a Post in What is wrong with this SQL ?
Probably because of `Username='{s}'`, by setting an existent username you should get the row, which means the query executes fine, which implies there is something else wrong in the code. … -
Replied To a Post in What is wrong with this SQL ?
This happens for a typo, you're using **partially uppercase** variables: $DBUser = 'root'; $DBPass = ''; $DBName = 'upstrey'; While, in the connection, those variables are **lowercase**: $mysqli = @new … -
Replied To a Post in What is wrong with this SQL ?
In that case you would get the error message from the `die()` construct. Check the error log of the database or > I have executed successfully in phpMyAdmin try to … -
Replied To a Post in What is wrong with this SQL ?
By commenting line 22 or by setting the trigger on the error number, can you get the MySQL error code? The message refers to the query, but it seems fine, … -
Replied To a Post in What is wrong with this SQL ?
No, I was referring to the **MySQL error code** that you can display by using `$conn->errno`: * http://php.net/manual/en/mysqli.errno.php Replace line 21 with this: echo "db problem: " . conn->errno; Currently … -
Replied To a Post in What is wrong with this SQL ?
What's the error number? Do: `echo $conn->errno;` -
Replied To a Post in Why below download code is not working??
Hi, the *above* code will download the file to the web server executing the script, not to the home directory of the client browser. In practice: if the path `/home/jiby/Downloads/image.jpg` … -
Replied To a Post in Multiple Uploading of files in php
Hi, follow the documentation and read also the comments on the same page: * http://php.net/manual/en/features.file-upload.multiple.php -
Replied To a Post in Select statement based on posted data from dropbox box
Hi, can you show what generates the error and the error code and message? -
Replied To a Post in What do you think are the loop holes still left in PHP 7?
Hi, I don't think PHP 8 exists at all at this point. Where did you read about it? -
Replied To a Post in foreach loop doesnt loop
In addition, for a simple approach you could use `require` to load the generator file and loop the offerid to it, for example: <?php # example array $offerid = range(1, … -
Replied To a Post in foreach loop doesnt loop
Sorry if I insist but it's not clear: > Yes, the target is to producing html-files. Create them as many as selected by first guery, like all offers included specified … -
Replied To a Post in foreach loop doesnt loop
I would like to understand better what's your goal: producing HTML files for archiving? The result is needed in the following step by the user? -
Replied To a Post in foreach loop doesnt loop
Hi, it happens because the `header('Location: url');` will be overwritten by the last loop value, which is what will be executed. You cannot start multiple redirections. Also, what is this … -
Began Watching How to do something when the window stop loading in jQuery
I have this event handler for when the page is loading. It shows a preloader GIF image when the window start loading. $(window).load(function(){ $("#Preloader").css('display','block'); }); But I don't know how … -
Gave Reputation to happygeek in captcha serivce
Erm, see this from last week: http://www.scmagazine.com/security-researchers-defeat-recaptcha/article/488236/ "The researchers said the system they had devised was “extremely effective”, automatically solving 70.78 percent of the image reCaptcha challenges, while requiring only … -
Replied To a Post in Connect to online mysql database from vb.net application
Hi, are you sure the database system allows remote connections? The default setup for MySQL listens on localhost. Consider also that some hosting services provide access only from a restricted … -
Stopped Watching Find Similar Images using PHP MYSQL
Dear All, I'm developing a php system which contains over 50000 images in a directory. Is there any tools which help me to do a search script to find a … -
Began Watching Find Similar Images using PHP MYSQL
Dear All, I'm developing a php system which contains over 50000 images in a directory. Is there any tools which help me to do a search script to find a … -
Replied To a Post in Making better access to the database file and its functions
> I wondered if their syntax was safe against sql attacks, though in fact could be improved with the inclusion of the bind, but do not know how to make … -
Replied To a Post in file_put_contents
> the written file doesn't have nothing inside it happens because the source is not found, so even if a new file is created it will be empty, you could … -
Replied To a Post in How php frameworks provide reusability?
In addition: check also about **composer**, it's a dependency manager for PHP, most frameworks support it and it allows to easily share and include libraries into a project: * https://getcomposer.org/ … -
Replied To a Post in Select data and return for saving t database
Hi, I didn't downvoted but I suspect it happened because you should show some efforts on your side and share the code you've written to achieve the requested goals. This … -
Replied To a Post in file_put_contents
**@masimies** Hericles suggested you add the second argument to the `file_put_contents()` function: * http://php.net/file-put-contents the first argument define the path in which the file will be saved and the filename, … -
Replied To a Post in file_put_contents
**@masimies** hi, can you show the updated code? -
Replied To a Post in Mysql load infile
By loading your data with that table structure I get: load data local infile '/tmp/march2016.csv' into table refs fields terminated by ',' enclosed by '"' escaped by '' lines terminated … -
Replied To a Post in Mysql load infile
Your query, with a custom table and data, works fine for me. Could you provide your table schema? Run this: show create table `refs`\G Also: is the above example data …
The End.