125 Posted Topics
Re: Ace Ventura | |
Hello, I am working on some code that does a remote call to a licensing server to validate whether the license is valid, invalid, expired and suspended. I have a login code that is using prepared statements: function login($email, $password, $mysqli) { // Using prepared statements means that SQL injection … | |
Re: Your looking for a table called parts, yet you are querying a table named users? | |
Re: there is no session set, so it is going to return false. <?php include('file_that_contains_connect_and_registers_cookie); session_start(); ?> | |
I have a code that i want to throw an error if there is no items to delete or if there is items it proceeds with deleting the items, here is what i have so far: if (isset($_REQUEST['removeall'])){ if($_REQUEST['removeall'] == 1){ mysqli_query($mysqli,"DELETE FROM assets WHERE cust_id = $custID AND del_flag … | |
Re: I just looked at it on my side, and its working like you want, here is a screenshot | |
Re: Like this? http://i-like-robots.github.io/jQuery-Slideshow/ ![]() | |
Re: In your mysqli statement, you have `$config` defined right? if not, put at the top of your statement, $config ==""; then try again. But you are using it to show the sitename of your site, so it is obviously being used to return a row from the database. | |
Re: Try this: <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Toggle images</title> <style> .hidden{display:none;} </style> </head> <body> <ul> <li><a href="" id="6seat">6 Seater</a></li> <li><a href="" id="8seat">8 Seater</a></li> <li><a href="" id="10seat">10 Seater</a></li> </ul> <div id="imgdiv"></div> <!--Load JS at end for fast load times --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script> $('#6seat').click(function() { $("img").remove() $("#imgdiv").append("<img id='theImg' … | |
Hey everyone, I have navbar from boostrap, I am trying to get the flags to append to the bottom/hang from the bottom of the nav on right side. [Link](https://www.assets.patrickspcrepair.com/gotya/simple-sidebar.html) to the site. The flags are just basic but i need to set the css style to "hang" from the navbar … | |
Hey guys, I have a script that switches between tabs..It works perfectly, but what i am needing is a way for the script to stop when I have my mouse on the tab or content for the tab. I am using bootstrap and here is my [fiddle](http://jsfiddle.net/patk570/5hk6R/) with the working … | |
Hello everyone, I am trying to get a code that will check the length of the a 'key' that will be generated in xxxxx-xxxxx-xxxxx-xx format. I need it to verify that it meets the requirements. I do not need it to validate on the server, but i do need it … | |
I am not sure why this is not working, Its setting the flags perfectly but will not update events... if(isset($_REQUEST['del'])){ if($_REQUEST['del'] == 1){ $asset_id = $_REQUEST['assetID']; $sql = "UPDATE assets, events SET assets.del_flag=1 , events.del_flag=1 WHERE assets.id='$asset_id' AND events.asset_id='$asset_id'" or die(mysqli_error($mysqli)); if ( $mysqli->query($sql) ) { $addevent1 = "INSERT INTO … | |
Hi everyone, I am working on a site, just one page with all the information on it. What happens now is when I scroll down the page, and I get past the navbar, it gets fixed to the top like I want. Its all working fine, but my question is, … | |
Re: just put the email address of your phone ie: +17775558855@tmobmail.net see complete list here: [Phone email list..](http://www.emailtextmessages.com/) | |
Hi, I have 2 fields that are used for date. In my fucntion, i have it format the date into Y-m-d format, $purchase_date = mysqli_real_escape_string($mysqli,date('Y-m-d',$_POST['purchase_date'])); $warranty_end_date = mysqli_real_escape_string($mysqli,date('Y-m-d',$_POST['warranty_end_date'])); But when I enter a date into it, it just puts 0000-00-00 I thought this was the correct format, but seems to … | |
Re: To have the divs have different height, set your css to .someclass{ height:auto; } | |
Hi guys, I am trying to get the last_insert_id() from the table above, that way when it sends the query and is successful, it then updates the events table with timestamp, id , asset type and asset id from the insert code. I am currently using the max(id) but its … | |
Re: What have you tried so far? Plus we would need database structure, information about what needs to be inserted, deleted and edited... | |
Re: here ya go! Copy and paste this: <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <style type="text/css"> * { margin:0; padding:0; border:0; outline:0; } body { font-family:Verdana, Geneva, sans-serif; } input { width:375px; display:block; border: 1px solid #999; height: 25px; -webkit-box-shadow: 0px 0px 8px rgba(0, 0, … | |
Re: No one is going to write code for you. What have you tried so far? ![]() | |
Re: try this: overflow-y: scroll; overflow: -moz-scrollbars-vertical; overflow: scroll; | |
Re: Try this: <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <style type="text/css"> .site-logo{ display: block; text-align: left; color: #9FA32E; font-family: "Trebuchet MS",Arial,Helvetica,Sans-Serif; font-size: 42px; } a { color: royalblue; text-decoration: none; } a:visited { color: purple; text-decoration: none; } a:hover, a:focus, a:active { color: midnightblue; text-decoration: none; … | |
Re: try this, convert to csv and use a code like http://php-dev-zone.blogspot.com/2013/05/how-to-import-csv-file-data-into-mysql.html | |
Re: have you tried something like: if($timeout =="" || $timein ==""){ echo 'Absent'; } | |
Re: Do not hardcode the www.mydomain.com/ just use the /subfolder/index.php Since it all attached to the same site and you are already on SSL, all you need to do/use is /subfolder/htmlfile | |
Re: put at the top of the page `error_reporting(E_ALL);` and see what errors come from the page. | |
I am trying to do a count of all types in there(hardware and software) I thought i had the correct structure...but I guess i am wrong... $count = mysqli_query($mysqli, "SELECT COUNT(*) AS total_count FROM assets WHERE cust_id=$custID AND (asset_type='hardware' AND asset_type='software') "); echo mysqli_error($mysqli); $count = mysqli_fetch_object($count); $count = $count->total_count; … | |
Re: No Deal, I already see things in 3d! [Alienware 18 Gaming Laptop](http://www.dell.com/us/p/alienware-18/pd.aspx) | |
Re: Try this: <script> $(function() { $( "#datepicker" ).datepicker(); }); </script> <input class="input" name="date" type="text" id="datepicker"> | |
Re: have you tried something like if($_SESSION['username']==true){ echo '<li>Other Members</li>'; }else{ echo ''; } ![]() | |
Re: Try this [JQuery Tablesorter](http://tablesorter.com/docs/) Code | |
Re: Are these values for a specific person or all people in the database? | |
Re: Why not trying: PHP code: <?php if(isset($_POST['BTN_NAME']){ //do fucnction or query here. } if(isset($_POST['buttonA']){ //do stuff here } ?> HTML <form action="" method="post" name="TestForm"> <input type="text" name="text1"> <input type="submit" value="Run Search" name="BTN_NAME"> </form> <form action="" method="post" name="TestButtonA"> <input type="submit" value="Button A" name="buttonA" </form> | |
Hello, I have a function that is working to generate the navigation bar, it grabs the parents and the "childs" and displays them but I have noticed that it is not closing the ul, li tags properly. I will attach a screen shot below. My code is this: <? include … | |
Hello, I am looking for a calendar to use with my website that I can add tasks/appointments into the db and have them show on the calendar. I would like to edit on the fly either by using a page to create the task/appointment or via the calendar using ajax. … | |
Hello everyone, I have a code to display images in a table for a specific ticket. I am needing the table to be 4 columns wide then repeat until there is no more images to show. Here is my code: <?php $folder = "images/ticket_images/".$_REQUEST['ticketid']."/"; $filetype = '*.*'; $files = glob($folder.$filetype); … | |
Hello everyone, I am looking for a banner/slider for both images and text. I want to be able to display 3 articles that are attached to the blog I am making and have them rotate, Here is an image of where the content will go.  I would like … | |
Hello, I have a form that i would like to convert from JS onClick to AJAX, Here is my form: <form action="" method="post" name="filter"><input id="All" onClick="if(document.forms['filter'].elements['All'].checked)window.location.href='?page=1&filter=All&perpage=10'" name="All" type="checkbox" /><label style="background:#008080; font-size:small" for="All">All</label> <input id="Pending" style="background:#FF6262" onClick="if(document.forms['filter'].elements['Pending'].checked)window.location.href='?page=1&filter=Pending&perpage=10'" name="Pending" type="checkbox" /><label style="background:#FF6262; font-size:small" for="Pending">Pending</label> <input id="Complete" style="background:#7BCC70" onClick="if(document.forms['filter'].elements['Complete'].checked)window.location.href='?page=1&filter=Complete&perpage=10'" name="Complete" type="checkbox" /><label style="background:#7BCC70; … | |
Hi Guys, I would like to highlight the current day on this php script, can you help me figure out a simple way to do this? <?php $monthNames = Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"); if (!isset($_GET["m"])) $_GET["m"] = date("n"); if (!isset($_GET["y"])) $_GET["y"] = … ![]() | |
Hello everyone, I have a table that i want to limit to 10 results per page and have a simple pagination script to generate the next 10 results. I have tried many different options, but alas it does not work. here is what I have so far. <tbody> <? //specify … | |
I have a simple login script that I want to test if the password is in temp status or not, if it is, then I want it to take them to changepass.php instead of index.php as seen below... but it doesnt take you to changepass.php it take you right to … | |
Hello, I have 2 functions that I wrote to show a hidden div, I would love to convert this to jquery but unsure how. Also, I want a function that will allow me to change the onclick function to open and close and show an arrow > and arrow down... … | |
Hello everyone, I am looking for a jquery code that will filter my table based on 4 different critera that I have set from the database. The 4 critera is: 1. Complete 2. Pending 3. Waiting for customer response 4. Waiting for parts The table is sortable using tablesorter jquery … | |
Hello, I have one input field that is collecting some information like this: <label>Tax Rate</label><br><input type="text" class="input" name="taxrate" id="taxrate" onblur=" return getTaxrate()" value="<? echo $row['taxrate'] ?>"> what I am wanting to do is onblur convert from say 7.63 to .0763 for the tax rate. I am only using one input … | |
Hi Everyone, I have a timezone variable that is stored in my database. In my code, I have it generate every timezone there is but what I need is to have it return the results of the selected="selected" when you go to pull the edit page up so you dont … | |
Hello, I am trying to update 3 tables that i have in my db. the second and third INSERT commands there is a specific field that needs to have the ID of the first table last row inserted. first table, admin: +--------------------+ |id username passcode| |1 admin test | +--------------------+ … | |
I created a change password script and it seems to not want to work. when I put in the wrong password it doesnt error out and say Old Password doesn't match exisiting. when I put in 2 passwords that dont match it doesnt error out... if(isset($_POST['changepass'])){ //Getting Variables $oldpass = … | |
Hello, I have a login script that I created and for some weird reason when it is in plaintext it works, but as soon as I put md5() it errors out and will not let me log in at all. <?php session_start(); error_reporting(E_ALL); ini_set("display_errors", 1); include("config.php"); if($_SERVER["REQUEST_METHOD"] == "POST") { … |
The End.