30 Posted Topics
I have managed to achieve this action through this: <link href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" rel="stylesheet"/> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <div class="input-group"> <input type="password" id="pass-on" title="<?php echo $user->valid_password_error; ?>" class="form-control" name="txt_upass" placeholder="Enter Password" autocomplete="off" value="" oninvalid="setCustomValidity('<?php echo $user->password_error; ?>')" oninput="setCustomValidity('')" required /> <label>Password</label> <div class="input-group-append"> <span class="password-button password-button-main" data-id="pass-on"><i class="fas fa-eye-slash"></i></span> </div> </div> <div class="form-group progress … | |
I have a very standard code where I use a CRUD interface on my Database. The issue is that every attempt I made to redraw/update the table with the new data [ $('.table').DataTable().draw(); ] has failed miserably. Here is my targeted code: function manageData(key) { var name = $("#countryName"); var … | |
I have 2 files: apix.php and crud.php. I am trying to convert the fetched data from php to a jason print. The issue is that the function does not the results for me to parse in the next section of my code. The CRUD.php: class crud { private $db; function … | |
I have a checkbox input switch set up over the Input text box that acts as an on/off switch for that particular field. I am also using jQuery Validator (jqueryvalidation.org) to handle the errors for empty fields. The issue is that when the error hops in, my switch is pushed … | |
I have a straight forward form sprinkled with a bit of jQuery, but I have a small issue. When I hit Next button it goes to the next step without popping up the small field with "you have to complete this required field". How can I force the next button … | |
I tested over and over and it seems there is something conflicting between these 2 scripts: bootstrap toggle and jquery validator. If I remove data-toggle=" toggle" the checkbox is required for validation, otherwise it just passes regardless of being checked or not! <form id="regiration_form" action="action.php" method="post"> <h1></h1> <fieldset> <h2>Pasul 1: … | |
Re: Wow this are some advanced steps for me. I almost have it working except one tiny thing: select e.`name`, e.`id`, ( select group_concat( (select s.`shop` from `shops` s where s.`shop_id` = t.`shop_id`) separator ' ') from `shops_employees` t where t.`employee_id` = e.`id` ) `shop list` from `employees` e; It seems … | |
Hi, I'm back ^_^ Ok, I almost have this cute thing working. I know I am close but I have no idea how to get this working the right way. I am Left Joining a few tables and I want to filter the results after multiple values. ...... Ex: Options … | |
I want to search a combination of values from any given field that has a list of items. Example: id | nume | denumiri_job 1 | my_list | chair,apple,snake,can How can I search for 2 or more elements from the field list? For example if I input in my search … ![]() | |
I have a little issue I can't figgure out. I can't seem to figure out how to add dots to my pagination so I don't have more pagination numbers than mysql results in the page XD . This is my code: $query = "SELECT id, ....."; $records_per_page=10; $crud->paginglink($query,$records_per_page); public function … | |
I'm trying to find a way to output whatever BLOB files are inserted into a silly database. In my code when I query the CV column I get all sorts of weird symbols. Can you guys please help me fix my code? $crud->dataview($query); }else{ $query = "SELECT id, from_unixtime(cheie_wp) as … | |
please help me cause I am totally lost on this one. I am trying to fetch the results from a database that has the data inserted in a weird way. The IDs are not unique, thus I have multiple values with the same ID in the ID column. I am … | |
I am trying to make the smooth scroll effects with this basic script for this site: http://greaca9.ro/test/index.html $(function() { $('a[href*="#"]:not([href="#"])').click(function() { if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { var target = $(this.hash); target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); if (target.length) { $('html, body').animate({ scrollTop: … | |
Hi, I stumbled upon this website recently: http://archeage.xlgames.com/ and fell in love with the way they designed it, but I have no clue what css/jquery method they used to achieve this. Can anyone point me in the right direction to some sort of tutorial that will help me create a … ![]() | |
I need a bit of help to make a connection to a mysql DB with a function and then create an admin table. I got this far: [CODE] function dbconn($db_host, $db_username, $db_pass, $db_name) { /* Global research function */ global $researchDbLink; if($researchDbLink) { return $researchDbLink; } /* Connect to DB … | |
I know this is a stupid question, but how can I get the value $mail out of this function? [CODE] function Email() { $the_name = $_SESSION[$this->GetLoginSessionVar()]; $profil_query="SELECT * FROM $this->tablename WHERE username='$the_name'"; $resultate_profil=mysql_query($profil_query); $resultat=mysql_fetch_array($resultate_profil); $mail = $resultat['email']; } echo $mail; [/CODE] Thanks. | |
I need some help with this one guys. I made a small script that inputs only numbers with 4 digits. Now the trick is that I need to input only numbers higher than 0 (ranged from 1 to 9999). Easy enough, I said, if I only make this rule: $val<=0. … ![]() | |
I need some help with sizing an image in height. My page is tzr.ro, and as you can see in some browsers such as explorer and chrome the image height differs. So i have this small piece of code that i need to adjust: img { max-width : 350px; height … | |
I stumbled on this code by accident and used it on one of my scripts, but it has a 'flaw', I can't make it include empty folders in the backup zip filer, nor make it to force download it after the creation of the zip. Any suggestions!? [code] <?php // … | |
Here is a dub question. If this code is supposed to restrict files other than jpg, png and gif, why does it do it? This is for a file browser aplication. The image has to be one of the 3 accepted file extensions. [code] $ext - is the var that … | |
Here is the code that counts all the image files from a group of folders in the binary folder. The problem is that when it counts the file, if i have 1 file in the first folder(88x31) and another one in a second folder (120x60) it will count 3 instead … | |
Ok.. so I was trying to fix errors in respect to what the xhtml validation would have told me, except the fact that he doesnt detect my doctype. Can anyone tell me why is it doing that, here is my site: [url]http://andrei.santinela.info/[/url] Any help would be appreciated, thanks:) ![]() | |
How can I change the chmod to 0777 through PhP for a folder with subfolders and all it's content!? Or if I set the chmod for the folder with the subfolders all the subfolders will have 0777 permission as well? Thanks :) | |
So lets say i have this url: $url = $_POST['site']; I would like to remove the [url]http://,[/url] the www. and the last "/". The trick is that the $url can be witten like this: $url = 'http://site.com/' like this: $url = 'www.site.com/' or even like this: $url = 'site.com/'. And … | |
OK this code here should include "lol_url" file: [CODE] <?php $file = 'lol_count.txt'; $data = @file($file); $data = $data[0]; if($handle = @fopen($file, 'w')){ $data = intval($data); $data++; fwrite($handle, $data); fclose($handle); } header('Location: '.include ('lol_url').''); ?> [/CODE] the "lol_url" file contains an url address, such as: http//www.example.com How can I make … | |
How can I count unique IP clicks on a image link [B]without [/B]a MySQL db. If any tutorials are at hand could you give me a hint or something please, thanks:) | |
here is my little code: [code] <?php $dir1 = $filex.'/88x31'; $filecount1 = 0; $d1 = dir($dir1); while ($f1 = $d1->read()) { if(strstr( $f1, '.htm' )) continue; if(($f1!= '.') && ($f1!= '..')) { if(!is_dir($f1)) $filecount1++; } } ?> [/code] how can i add more file extensions to this code to be … ![]() | |
| |
Ok, in this code here I want to include a getimagesize in respect to the resolution. So for example if I have a 728x90 image I want it to go to abc folder that corresponds to this dimensions. Can anyone give me an idea on how to make this work!? … | |
Can anyone please help me exclude the .php files from this code? [CODE] <?php $dir = 'x'; $filecount = 0; $d = dir($dir); while ($f = $d->read()) { if(($f!= ".") && ($f!= "..")) { if(!is_dir($f)) $filecount++; } } echo 'there are ',$filecount,' files in this folder'; ?> [/CODE] I have … |
The End.