-
Replied To a Post in How to reset multiple file input field using jquery
**When** do you want those fields to have their values reset? Because looking at your code, there doesn't seem to be a problem to me: if a selects an unallowed … -
Replied To a Post in Notice: Uninitialized string offset: 1 in
What's not working now? Can you post the error? -
Replied To a Post in javascript & mobile
Well, I think you can have some influence on them. You can minify your CSS/Javascript files so that they take up less space, you can offer them gzipped to futher … -
Replied To a Post in redirect page
What about using a Javascript timeout? $('#element').click(function() { setTimeout(function() { window.location.href = 'http://website.com'; }, 3000); }); -
Replied To a Post in Notice: Uninitialized string offset: 1 in
Could you post what's on line 142? -
Replied To a Post in How to compare two dates
You should checkout the [DateTime](http://php.net/manual/en/class.datetime.php) class. Example: <?php $date_1 = new DateTime; $date_2 = new DateTime; $date_1->setDate(2015, 02, 01); $date_1->setTime(0, 0, 0); $date_2->setDate(2015, 02, 05); $date_2->setTime(0, 0, 0); $diff = … -
Replied To a Post in javascript & mobile
Yes. A larger screen will cost more resources to render. Working with a 1920 pixel wide website on a mobile phone isn't something most people want - you'd have to … -
Replied To a Post in assign integer value to string
Oh yeah I wasn't trying to say anything bad about your code, I was just really wondering if it would matter uppercasing or lowercasing the whole string before converting it … -
Replied To a Post in javascript & mobile
I mean the size of resources like CSS, Javascript, etc., and if they're optimized to work as fast as possible. -
Replied To a Post in .htaccess
You search Google for info about the .htaccess file and try some tutorials to create one. Then, if you can't figure out how to create one or if you run … -
Replied To a Post in assign integer value to string
What would it matter if you either upper- or lowercase the whole string before converting it? The only thing that matters here is the output, right? :) Which would be … -
Replied To a Post in assign integer value to string
I've slightly edited the test, and it resulted - as you suspected - in that my solution is twice as fast on average. function convert($value) { $keys = range("A","Z"); $values … -
Replied To a Post in assign integer value to string
Ah, yes, I'd be curious to know that as well. -
Replied To a Post in assign integer value to string
> Non-array functions tend to be quicker though. What do you mean, exactly? -
Replied To a Post in assign integer value to string
You're right, my bad. You cannot set it as a default in PHPMyAdmin/MySQL. You will either have to create a stored procedure for it or edit the data you save … -
Replied To a Post in assign integer value to string
What about something like: <?php $letters = range('a', 'z'); $numbers = range(0, 26); echo 'Value before: ' . $value . '<br>'; $value = strtolower($value); // The value in which you … -
Replied To a Post in Trim down query
My eyes, it burns! Sorry, just had to say that before anyone else can. It's also a bit much to read, and I'm wondering what the goal of the query/procedure … -
Edited Requirements for building an (Android?) app
After reading [this](https://www.daniweb.com/web-development/php/threads/491368/looking-for-advice) post I started wondering what is required nowadays to build an app. Let's take an Android app as an example. I've heard of porters like PhoneGap, that … -
Created Requirements for building an (Android?) app
After reading [this](https://www.daniweb.com/web-development/php/threads/491368/looking-for-advice) post I started wondering what is required nowadays to build an app. Let's take an Android app as an example. I've heard of porters like PhoneGap, that … -
Replied To a Post in javascript & mobile
It's also the amount of resources that need to be loaded and the complexity of the display. The larger the view that needs to be displayed, the slower it gets. … -
Replied To a Post in Browser downloads previous file version (from cache?)
You can invalidate your cache by using `header()`. Example: header('Cache-Control: private, max-age=0, no-cache'); on the first line of your file. But I don't think that'll work in your example. It … -
Replied To a Post in print option
What options? First thing that comes to mind is `phpinfo();` -
Replied To a Post in php browser error
^^ -
Replied To a Post in error in project
It seems like a notice, so it's not an error that will stop your script. What it means is that all the mysql_ functions are deprecated and you are disencouraged … -
Replied To a Post in Bootstrap
Have you tried the bootstrap website? It contains a great starters guide. http://getbootstrap.com/css/ (I know you're asking for a forum, but my interpretation is that you are also looking for … -
Replied To a Post in php browser error
Well, have you checked line 22 in C:\xampp\htdocs\sandbox\config.php? It might contain an error :p. -
Replied To a Post in RECORDS SHOULD BE DISPLAY PHP MYSQL
What about something like: <?php if ($user_role == 'superadmin') { // Select superadmin and admin users. $query = 'SELECT * FROM users WHERE role = "superadmin" OR role = "admin"'; … -
Replied To a Post in RECORDS SHOULD BE DISPLAY PHP MYSQL
Ok so let me first rephrase your answer so that I'm sure I understand it correctly. What you want is: (1) When an admin is logged in, he may only … -
Replied To a Post in how to update multiple update in database using checkbox with php mysql
I'm afraid I cannot! You are ought to put some effort in this of your own :). We can offer help with your problems, not full solutions to your problems. … -
Replied To a Post in how to update multiple update in database using checkbox with php mysql
You should probably name your checkbox manually, something like `enabled[name][]` for each checkbox group. -
Replied To a Post in how to stop this warning
This is because you've outputted something (probably tex) to the browser before your headers were sent. Headers net to be set and sent **before** you output text to the screen, … -
Replied To a Post in how to update multiple update in database using checkbox with php mysql
What's not working? What's happening? What do you want to do? Obviously you still need to add your own code for updating your database to my example. -
Replied To a Post in Twitter Bootstrap Php form
Well, even though you are setting error messages, you don't check if those error messages are set anywhere, and you don't generate an error based on the error messages. So … -
Replied To a Post in Footer having error...
You might want to check out some tutorials on using the float CSS rule by the way :p. -
Replied To a Post in Footer having error...
No no, "float" is a style property, you'd have to put it in your CSS ;). So, instead of `float="right"`, use `style="float: right;"` or put a `float: right;` in your … -
Replied To a Post in RECORDS SHOULD BE DISPLAY PHP MYSQL
I don't really get what you're asking here. What exactly is is that you want help with? Writing PHP to display records? Then you'd have to be a bit more … -
Replied To a Post in How to prevent my site from website copier softwares
You can't. You would have to either have to lock down your website for **everyone** or leave it open to everyone. And a website that is publically accessible will be … -
Replied To a Post in Auto number generating
<?php $min = 0; $max = 100; $random_number = mt_rand($min, $max); printf('Your random number is %d', $random_number); -
Replied To a Post in how to update multiple update in database using checkbox with php mysql
HTML: <form action="enableprofile1.php" method="post"> <input type="hidden" name="id[]" id="id[]" value="<?php echo $sn; ?>"> <input type="checkbox" name="enable[]" id="enable[]" value="1" <?php if($en=='1'){ echo 'checked'; } ?>> <input type="submit" name="save" value="Save" class="fontBold"> </form> PHP: … -
Replied To a Post in In Wordpress wp-admin given error in class-wp line no.529
Well, that sounds like there is no easy solution. You'd just have to find out what `wp_get_current_user()` does, where it comes from, when it should be included and why it … -
Replied To a Post in Install a new locale on Apache (XAMPP, Windows)
Meh, I still can't get it working :(. Luckily it's not that important for testing stuff locally, so I'll just leave it be for now. Thanks for your reply! -
Edited Install a new locale on Apache (XAMPP, Windows)
Does anyone know how to install a new locale on Apache that comes with Xampp for Windows? I'm trying to find an answer with Google but it only shows results … -
Created Install a new locale on Apache (XAMPP, Windows)
Does anyone know how to install a new locale on Apache that comes with Xampp for Windows? I'm trying to find an answer with Google but it only shows results … -
Gave Reputation to Traevel in Is it possible to add a jQuery Ui Icon into a text box?
Try .input-icon-wrapper { position: relative; } .input-icon-field { padding-left: 15px; } .input-icon { position: absolute; top: 3px; left: 2px; } and <div class="input-icon-wrapper"> <span class="ui-icon ui-icon-person input-icon"></span> <input type="text" class="input-icon-field" … -
Replied To a Post in How can I make submit buttons to run a query?
There's nothing wrong with the query, there's something wrong with your PHP: `mysqli_query()` does not return the results directly; it returns a query resource kind of thing. You still need … -
Replied To a Post in How can I make submit buttons to run a query?
Well, I guessed that you wanted to know the ID of the song for which the user is voting, so I thought: let's pass that data to the action page. … -
Replied To a Post in How can I make submit buttons to run a query?
Same to you! :) -
Replied To a Post in How can I make submit buttons to run a query?
As I said, you should either include your buttons in a `<form>`, or you should use regular links that send GET data. <?php while($row = mysqli_fetch_array($table)) { ?> <tr> <td> … -
Replied To a Post in Need Help in Creating A statistic Calculator
jQuery would indeed be excellent for this task. If you don't know it yet, I suggest you read some tutorials. What Traevel says will also be much clearer if you … -
Replied To a Post in How can I make submit buttons to run a query?
You could include a form in each of your table rows. That form should then include the like/dislike buttons. Or you can make those buttons pass on GET variables to …
The End.