Posts
 
Reputation
Joined
Last Seen
Ranked #560
Strength to Increase Rep
+4
Strength to Decrease Rep
-1
82% Quality Score
Upvotes Received
23
Posts with Upvotes
19
Upvoting Members
13
Downvotes Received
4
Posts with Downvotes
3
Downvoting Members
4
4 Commented Posts
~95.3K People Reached
Favorite Tags

125 Posted Topics

Member Avatar for Fireytech

Instead of contactid in the php code on the bottom change it “ticketnumber” or use a ‘if(isset….. )‘ code

Member Avatar for Fireytech
0
65
Member Avatar for forgot

$sql = "UPDATE payfile set amtpaid = '', late ='', hudpay ='', paidsum ='', datepaid ='', latechg = '', secdep = '', damage = '', courtcost = '', nsf = '', chgmoyr = ' ', comments =' ' WHERE amtpaid =!''"; This is all blank quotes, so nothing is going …

Member Avatar for patk570
0
78
Member Avatar for Bright_4

one thing is where is the new status coming from? is it coming from the URL? if so, you can have something like: <!DOCTYPE html> <html> <body> <?php <?php if(isset($_GET['status'])){ $new_status = $_GET['status']; if($status=="your variable"){ echo $sendData = '{ "messages" : [ { "content" : "Your order is $new_status.", } …

Member Avatar for patk570
0
87
Member Avatar for patk570

Hi Everyone, I am looking for a way to add a username to confirm a seat choice for certain weeks, I already have the PHP Code to confirm the seat when choosing but on the image i would like for it to display the username so other people know its …

Member Avatar for rproffitt
0
1K
Member Avatar for patk570

I have a JSON array that has multidimensions to it: { "@id": "a", "@label": "A", "drecord": [ { "@id": "aaliyah", "@rdate": "2001-08-25", "@lease": "bh05", "name": { "surname": "Aaliyah" }, "job": "hip hop singer/actress", "dead": { "@value": "y" }, "cause": "Burned to death in a plane crash", "ddate": { "date": "2001-08-25" …

Member Avatar for alan.davies
0
2K
Member Avatar for patk570

Hey everyone, I have a JSON array that pulls data, its an immense amount of data that i use. It is a multilevel array eg: dateTime: 2018-12-04T10:30:45:222z comments:"" +Driver[0] [0] fname: John lname: Doe driverCode: DOEJ [1] fname: Mary lname: Smith driverCode: SMIMA more info etc I am trying to …

Member Avatar for ndeniche
0
3K
Member Avatar for patk570

I have a code that pulls a JSON response, and I need to compare times from now() and a previous when the timestamp was created. I am able to pull the info and have it display. However, when i try and get the comparison to work it just sits there …

Member Avatar for jkon
0
396
Member Avatar for patk570

Question, I have a `$each(array, function());` and within that statement, i have a` for` loop , Is it safe to be doing this? and could this be the reason that i am getting the same values multiple times returned even though the object array length is 8, i am getting …

Member Avatar for Kannu_2
1
453
Member Avatar for Ricky_8

are you passing the `id` variable in the link to the page? When you do a $_REQUEST['id'] its looking for `?id=1 or ?id=testuser` in the link from the previous page.

Member Avatar for patk570
0
361
Member Avatar for Sameer_10

Whats the error? and you are also wide open to [SQL Injection](https://www.w3schools.com/sql/sql_injection.asp). After `$qur` put `or die("Mysqli Error: " $qur");`

Member Avatar for patk570
0
179
Member Avatar for patk570

Hey everyone, I have a table, that is going to used to calculate IFTA, its a fueltax calculator populated by each state and the rate of each state. My question is, do i need to create a formula for each state? or can i do 1 formula and have it …

Member Avatar for patk570
0
513
Member Avatar for patk570

Guys and gals, I am trying to do a simple LITTLE DIVIDE problem using jQuery its getting the values, but when its returning the results, it as if they are being divided by 10000, but I know its not... E.G. 50506/1000 = 50.506 in my jquery problem, it is coming …

Member Avatar for patk570
0
333
Member Avatar for patk570

6 ●4 I have a code that displays an array from GeoTab SDK, I am able to get the array to display in the console.log, and it populates the results like normal, However, When I try to populate the data in the table, nothing shows but the headings. Here is …

0
217
Member Avatar for patk570

Hey everyone, I have a script that does an API call, the results are displayed in a json array, but i am trying to break them down into HTML tables here is my code var deviceId = ""; api.call("Get", { typeName : "DutyStatusLog", search : { deviceSearch : { driver …

Member Avatar for rproffitt
0
5K
Member Avatar for patk570

Hey everyone, this code below is giving me a weird error, Script 438: Object doesn't support property or method 'ajax'. I am testing this in Microsoft Edge, but...I have a website that uses this exact same code, and its working like normal. I am getting the `var id` to load …

Member Avatar for patk570
0
5K
Member Avatar for Link_1

I would suggest something like this: https://swisnl.github.io/jQuery-contextMenu/demo.html its based in jQuery, which will make it easier to code. I sent you the demo link.

Member Avatar for RobinR
1
393
Member Avatar for micahp20

Also, you want to figure out what backbone you want to use to make it mobile friendly. We cannot just give answers we need a basis of foundation to start off, so we can give you advise or advise what direction to take.

Member Avatar for gentlemedia
0
264
Member Avatar for patk570

Hey everyone, I got bored one day and created this little jem. There are no issues with it, but it may help somone out later on down the road if they have a simple project that needs to be completed. Everything is on one pages and includes elements …

Member Avatar for patk570
2
3K
Member Avatar for Lim_2
Member Avatar for patk570
0
354
Member Avatar for patk570

So i have a simple script nothing to big, but im already getting an unexpected "updateTime" $sql = "UPDATE users SET last_login = NOW() "; $updateTime = $this->db_connection->exec($sql); THis is my first time using PDO and I am already getting errors after 2 lines...

Member Avatar for jstfsklh211
0
285
Member Avatar for divinity02

Directly from getboostrap.com > Inline form Add .form-inline to your form (which doesn't have to be a <form>) for left-aligned and inline-block controls. This only applies to forms within viewports that are at least 768px wide. <form class="form-inline"> <div class="form-group"> <label for="exampleInputName2">Name</label> <input type="text" class="form-control" id="exampleInputName2" placeholder="Jane Doe"> </div> <div …

Member Avatar for patk570
0
284
Member Avatar for patk570

Cannot get this to refresh. My code is below. I am propably doing something silly, but I cannot figure it out... var auto_refresh = setInterval( function(e) { var email = '<?php echo $_SESSION['user_email']?>'; console.log(email); e.preventDefault(); $.ajax({ type : 'GET', url : 'count_record.php', // in here you should put your query …

Member Avatar for michael.dewitt.716
0
224
Member Avatar for ARNAB_2

add this to your .htaccess file Apache2 @ Ubuntu/Debian: use this directive AddType application/x-httpd-php .html .htm If your are running PHP as CGI (probably not the case), you should write instead: AddHandler application/x-httpd-php .html .htm

Member Avatar for patk570
0
274
Member Avatar for phphp

What Cereal said, when you have a field that is disabled, it will not send a variable to the server whereas the readonly field will send that field to the server.

Member Avatar for AndrisP
0
215
Member Avatar for patk570

Hey everyone, I have a site that has a customer account, right now it looks like crap and i need an idea on how to style it. Right now I am using Bootstrap, but I want to move away from it and try something else. My issue is, I have …

Member Avatar for patk570
0
206
Member Avatar for patk570

I am trying to populate the data in a modal via AJAX, but i am unsure how to do so. The link right now is `<a href="viewmessage.php?id='.$row['ID']'">View</a>` Since there is only 1 Message in the Database, the number is 70. I have seen multiple things online but I am not …

Member Avatar for patk570
0
7K
Member Avatar for patk570

I am using OS Ticket and I have another site for Members Area,I am trying to join the 3 tables that have the information that corresponds to the customer by EMAIL. the first table is:qbcd_ticket: ticket_id | number | user_id | user_email_id | status_id | dept_id | and more... 5 …

Member Avatar for cereal
0
409
Member Avatar for patk570

I have a code that is working to show images and description. But I am trying to get it to loop through 3 pictures wide, then loop again. and display them, I am going to add pagination to the script, but before i do that i need it to loop. …

Member Avatar for patk570
0
457
Member Avatar for patk570

Hey everyone, I have a MYSQLI statement that i would like to add pagination to. I would like to have it set to 5 per page, and not have a negative value if you are on page 1 (disables back link) Every tutorial i have been seeing allows for a …

Member Avatar for patk570
0
661
Member Avatar for ceeandcee30

Try this.... if ($row['PROT_A']="Y" && $row['CFHL_A']="$G2") { echo "<img src='/fantasy/images/current.png' width='12' height='12'>"; }

Member Avatar for diafol
0
226
Member Avatar for patk570

Guys, i am getting an unexpected T_While Error on my code, I cannot figure it out. can you help? ` <?php` $sql = "SELECT id, u_name, u_email, subj, phone FROM tb_cform "; $result = $conn->query($sql); echo '<table><tr><th>Name</th><th>Email</th><th>Subjec</th><th>Phone</th></tr>'; if ($result->num_rows > 0) { while($row = $result->fetch_assoc()) { echo "<tr><td>".$row["u_name"]."</td><td>".$row["u_email"]."</td><td>".$row["subj"]."</td><td>".$row["phone"]."</td></tr>"; …

Member Avatar for diafol
0
392
Member Avatar for patk570

Hey Everyone, I am looking for possibly a CRM that can be used for multiple items: 1. Invoicing 2. Credit Card Processing 3. Front End Website 4. Customer Area/Members Pages 5. Admin Area 6. Integrate with Quickbooks? 7. Manage Employees (Time and Sales) 8. Inventory Management Any advice would be …

Member Avatar for gottaloveit
1
189
Member Avatar for patk570

hey everyone, I am looking for a website template that is mobile responsive, with a header and 3 columns. in the left and right column there will be 3 items in each with a fixed height on each. the middle column needs to be adaptable to move without affecting the …

Member Avatar for patk570
0
294
Member Avatar for patk570

Hey guys, I have a code on excel, that will count the critera if there is more than one box filled out. =COUNTIF(C5:D14,"<>0") But now i am converting this code to jquery and i cannot figure it out. on my page, there is a toggle button, yes/no selector for autopay, …

Member Avatar for Airshow
0
526
Member Avatar for patk570

Hello everyone, Have a code that works well but I need it to open to the right on hover. Right now its going below the element and making my page look bad. Here is the code i have: <style type="text/css"> .hide_img3 { display: none; } .hide_img3 { background: none repeat …

Member Avatar for sudhir869939
0
2K
Member Avatar for patk570

I have a code: $data=$_SESSION['title']; $view=$con->query("select flower.*, mystash.* from flower,mystash where mystash.name like '%$data%' OR flower.name like '%$data%' ORDER BY name ASC"); $check=$view; if($check!="") { while($descri=mysqli_fetch_object($view)) { I am trying to get the name from each table `flower` and `mystash` each have a column in there of `name` I am …

Member Avatar for kimhanu
0
246
Member Avatar for patk570

Hello, I have an array that returns city and state in this format: Detroit,MI I want it to be shown as Michigan/Detroit is there any way of doing this? Here is my foreach code: foreach ($i['popularCities'] as $a => $value) { echo '<li>' . $value . '</li>' . PHP_EOL; } …

Member Avatar for diafol
0
163
Member Avatar for patk570

Hello, I am looking for a script to add items to a database that can be found in the my account section, The table in the database is structured: id | user_id | slug I want to use the ajax to update and remove it later on down the road …

Member Avatar for matrixdevuk
0
3K
Member Avatar for patk570

Hello, I am trying to get this to loop through all the available items in a database and return the results. <?php $qry = mysqli_query($con,"SELECT * FROM `favorites` WHERE `username` = '$id'") or die(mysqli_error($con)); while($rowa = mysqli_fetch_array($qry)) { $slugname = $rowa['slug_name']; $url = $rowa['slug']; echo '<a href="'.$url.'>'.$slugname.'</a>"'; } ?> I …

Member Avatar for patk570
0
120
Member Avatar for patk570

Hello, I am getting a weird error when i try to run this array: //leafly api keys $appID ='Blah'; $appKEY = 'blah'; //init curl $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://data.leafly.com/strains/".strtolower($data)); //change the strain dynamically of course for your app curl_setopt($ch,CURLOPT_HTTPHEADER,array('APP_ID:'.$appID,'APP_KEY:'.$appKEY)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $output = curl_exec($ch); //Clean it into an …

Member Avatar for broj1
0
1K
Member Avatar for Jay_7
Member Avatar for diafol
Member Avatar for khurram123

Change the z-index of your slider to be behind the content or the dropdowns to infront of it. http://www.w3schools.com/cssref/pr_pos_z-index.asp

Member Avatar for patk570
0
117
Member Avatar for patk570

Hello, I found this script and have used it for my login system. http://www.wikihow.com/Discussion:Create-a-Secure-Login-Script-in-PHP-and-MySQL I have changed some variables but none the less its the same. I am trying to create a reset password script here is what i tried so far: function resetPassword(){ //Main Info $id = $_POST['id']; $email …

Member Avatar for patk570
0
318
Member Avatar for patk570

I have a url that is `filemgr.php` when a user navigates to lower levels of said file manager it shows up as `filemgr.php#userfiles/username/Images` Is there a way to just have it show up as `filemgr.php ` with out the rest of the url showing? I am open to .htaccess editing …

Member Avatar for diafol
0
342
Member Avatar for gogs85

set a database field called metadescription then on page load do something like <meta name="description" content="<?php echo $metadescription ?>"> then it will echo the description of each post when you call for it based on ID of post or how ever you have it generate...

Member Avatar for diafol
0
89
Member Avatar for hiiiiii@
Member Avatar for jstfsklh211
0
213
Member Avatar for patk570

Hey Guys, I am looking for a file manager that will allow me to customize the top level folder( to the user that is logged in) as the top level. The folder structure should be something like username Folder 1 Sub folder 1.1 Sub folder 1.2 Folder 2 Sub Folder …

Member Avatar for pritaeas
0
476
Member Avatar for ankit.baphna

Use placeholder tag, its easier... <input id="text" type="text" name="fname" placeholder='First Name"/>

Member Avatar for patk570
0
202
Member Avatar for patk570

I have 2 input fields that when a user inputs the date in say mm-dd-yyyy format, i would like to have it automatically change to yyyy-mm-dd (ISO 8601 Date Format) the input fields are very simple: <div class="form-group"> <label for="purchase_date">Purchase Date <font size="-3">(Year-MM-DD) format</font></label> <input type="text" name="purchase_date" class="form-control" placeholder="Purchase Date"> …

0
138

The End.