39,316 Topics

Member Avatar for
Member Avatar for phaedrusGhost

Hi All, I am stumped here. Perhaps I've been at it too long and am missing something elementary or it really is a missing link. I hope someone can point me in the right direction here. I have this piece of code for my new widget functions: function underslider_widgets_one_init() { …

Member Avatar for diafol
0
387
Member Avatar for janicemurby

hi all im trying to update a script and i have the following errors which ive googled and im lost if anyone can help be much appreciated ty jan x PHP Notice: Use of undefined constant prepare_insert - assumed 'prepare_insert' in /home/matureco/public_html/UPLOADIMAGE/config/db_connect.php on line 32 code for this error is …

Member Avatar for cereal
0
1K
Member Avatar for OsaMasw

hello guys its been a while since my last question here :P am working right now on PHP script to upload and convert video files to several resolutions ( 360 - 720 ), here a piece of my php code to convert move_uploaded_file($file_tmp, 'upload/'.$fileName); add_to_queue($time,"360-".$fileName,$status="pending"); //where add_to_queue is simple function …

Member Avatar for rproffitt
0
346
Member Avatar for Aeonix

User gives me a `$_POST`, I want to check whether keys (not the values) are there. `$_POST` keys need to be `newemail`, `firstPassword` and `secondPassword`. What I have tried: `if (in_array(array_keys($_POST), array("newemail", "firstPassword", "secondPassword"))) echo "Everything in order".`. How to make it actually work?

Member Avatar for Aeonix
0
239
Member Avatar for jeffersonalomia

Can someone help me on debugging this code `<?php include "../template/php/myconnection.php"; include "../template/php/sessionChecker.php"; include "functions.php"; include "ext.php"; $date = date("Y-m-d"); $breakdown = ""; $transkey = ""; $isFound = false; $file_value = file("header.txt"); if(!empty($_GET['tn'])){ foreach($file_value as $line){ if(strpos($line,$_GET['tn']) !== false){ $isFound = true; $breakdown = explode(" | ",$line); $transkey = $breakdown[3]; …

Member Avatar for diafol
0
341
Member Avatar for phpio

An online tool embeded vim editor into web to debug your php code. It also helps you to practice vim online. Website: [phpio.net](http://phpio.net) // Press F11 to toggle full screen editting (Ctrl+⌘+F on Mac OS). // Press Ctrl+Shift+F to format code. echo 'Welcome to PHPIO.NET!';

Member Avatar for cereal
0
1K
Member Avatar for AntonyRayan

Hi, Is there any way to do multiple drilldown chart( 6 clicks)? Give me some examples.

Member Avatar for rproffitt
-1
211
Member Avatar for shany0786

i have problem and i am new to this i have a domain like kk.com there were many products on it when user clicks on buy now here will be redirected to subdomain like subdomainname.kk.com/product-1 or subdomainname.kk.com/product-2 based on product clicked my question is how can show details on this …

Member Avatar for diafol
0
221
Member Avatar for rpv_sen

Hi Friends. i am working on my internal work. i am having n dynamic rows, Each and every row contain total. i want to sum all the rows total. i have attached the screen shot for the reference

Member Avatar for diafol
0
2K
Member Avatar for adebayo23

Hi, Please I have a problem inserting record to mysql database, it always shows this error " Warning: mysqli_query() expects parameter 1 to be mysqli, null given in C:\wamp\www" here is my code <?php if(isset($_POST['submit'])){ $member_dat1=$_POST['member_first']; $member_dat2=$_POST['member_lastname']; $member_dat3=$_POST['sex']; $member_dat4=$_POST['member_type']; $member_dat5=$_POST['m_email1']; $member_dat6=$_POST['m_phone1']; $member_dat7=$_POST['m_address1']; $member_dat8=$_POST['m_address2']; $member_dat9=$_POST['city']; $member_dat10=$_POST['state']; $member_dat11=$_POST['added_by']; $member_insert= "INSERT INTO members(member_first,member_lastname,sex,member_type,m_address1,m_address2,city,state,m_phone1,m_email1,added_by)" …

Member Avatar for diafol
0
692
Member Avatar for shany0786

hello all, i want to create dynamacially this thing and want to populate data alternatively on green,red,gray li and so on but i can't able to do it plz help i am weak in js :( <li class="green"> <div class="metro_tmtime" datetime="2013-04-10 18:30"> <span class="date">1/4/13</span> <span class="time">17:20</span> </div> <div class="metro_tmicon"> <i …

Member Avatar for gentlemedia
0
288
Member Avatar for amith_ami

When I use pagination for custom post type 'product' its working fine but its not working for the categories of custom post type. for ex. pagination working for this **'http://localhost/wordpress/products/page/2/'** and not for this **'http://localhost/wordpress/products/landscape/page/2/'** its always showing the first page content. How to solve this? given below is my …

Member Avatar for diafol
0
2K
Member Avatar for Aarav

Hi, I am looking for some example code that can help me to generate unique random string of numeric numbers in PHP Applications. I am hoping to resolve this issue with the help of tech developers working around & for this I have researched for many php questions & answers …

Member Avatar for amith_ami
0
217
Member Avatar for cereal

###Simple Advice This is just a reminder. When setting environment variables through **.htaccess**, **CLI** or **dotenv** use `filter_var()` to evaluate a boolean. For example, start the built-in PHP server with these variables: DEBUG=FALSE LOG=TRUE SMS=1 SMTP=0 CONNECT=yes BACKUP=no php -d variables_order=EGPCS -S localhost:8000 And then test through `boolval()`: if you …

0
278
Member Avatar for Test_2

i have been rearrange the code for whole day still cannt make the datepicker search filter working only the dropdown select filter is working.. previously is datepicker search filter is working and dropdown options is not working, but i working it and it turns around where the datepicker is not …

Member Avatar for diafol
0
929
Member Avatar for phphp

Sir, I am using wamp 3.0 having php 5.6.15 SQLSERVER 2008 is installed on Windows 7 32bit. I want to connect sqlserver with php, So I put required drives in Bin folder as ![aa.png](/attachments/large/4/b763141a1fb510782c174e1fab41066b.png "align-center") and made some necessary changes in php.ini as ![bb.png](/attachments/small/4/a50b010fafa6dc4b615bc2abd06ce0df.png "align-left") Finally I have this connection …

Member Avatar for maba001
0
398
Member Avatar for AntonyRayan

Hi, by passing city name, I take all hotels reviews among on the requested city groupin by hotel id and user id that reviews should be greater than 0, The query works correctly, but taking values using while loop it combines all the hotel review values together. How to take …

Member Avatar for diafol
0
561
Member Avatar for jeffersonalomia

Hello guys, I have a problem on using the image slider plugin called "Unslider" which is a jquery plugin. I follow all the procedures / instructions on how to set up the codes but sadly it seems that the next and preview button styling doesnt work even if i follow …

Member Avatar for jeffersonalomia
0
2K
Member Avatar for v1shwa

I use a webservice to pull some data from it everyday & update it on my MySQL database. I'll make around 600 calls to this service. The webservice response is very slow (takes around 30 minutes to complete 600 transactions) & during this time, the MySQL is also giving slow …

Member Avatar for Tomaski
0
436
Member Avatar for zebnoon1

Dear Friends, I ctreate database in mysql database data transfer from PHP form. Problem: I can not save my Date formate(dd-mm-yy) in to database. My code is below please, if($epr=='save'){ // $cid=$_POST['id']; $edate=$_POST['edate']; //$edate=date("d-m-y h:i:s a",time()); $ldate=$_POST['ldate']; //$ldate=date("d-m-y h:i:s a"); $cdetail=$_POST['cdetail']; $tdetail=$_POST['tdetail']; $sql1="INSERT INTO tentb(edate,ldate,cdetail,tdetail) VALUES('$edate','$ldate','$cdetail','$tdetail')"; $result1=$conn1->query($sql1); if($result1){ echo "Data …

Member Avatar for cereal
0
302
Member Avatar for jawuy

Hi all, First of all thank you for taking the time to read my question: i am trying to custom code an autocalculation on weight (not using the weight based module) in opencart v. 2.3.0.2. ihave checked for modules and there are non you may recommend weight based shipping or …

0
157
Member Avatar for zebnoon1

Dear Friends, I created Table in PHP. Columns are SrNo. ---- Tender Detail----- Last Date----- Remaining Days ---------- Status(Pending/Proceded) I have Database in mysql. I get "last date" from database and minus with Current date. But i tried there is any problem please, check. Code is below <?php function dateDifference($date_1 …

Member Avatar for zebnoon1
0
485
Member Avatar for SimonIoa

Hello i want to sort the returning data from my MySql database. i want to sort them by their type (1,2,3) This is what i ve done so far. PHP works fine returns all records $somevariable represents the AND to sort the records function all() { $type = $data->type; if($type …

Member Avatar for Bachu
0
288
Member Avatar for rayearth_1

i have creating a feedback devices system, and already done with only the radio button. but the people wants more, then i added some roll over image, and having dificulties to connect between them. people wants to, when they click the image, and the radio button show the indocator, that …

Member Avatar for gentlemedia
0
357
Member Avatar for James_63

I got two dropdowns in each product in my cart. When i select my both option my class on success is not updating the cost. It only updates when i refresh the page, i dont want to refresh my page to get the cost. this is my script... $(document).ready(function() { …

0
212
Member Avatar for ericko10kip

<?php $host="localhost"; // Host name $username="root"; // Mysql username $password=""; // Mysql password $db_name="relaxinn"; // Database name $con=mysqli_connect("$host","$username","$password","$db_name"); if (mysqli_connect_errno($con)) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } //Get number of rows $categories = array(); $sql="SELECT * FROM books "; $result=mysqli_query($con, $sql); while($row=mysqli_fetch_assoc($result)) { $categories[$row['language']][] = $row['code']; …

Member Avatar for diafol
0
102
Member Avatar for James_62

I have two dropdowns where ajax gets the value from it and send to my page calculates.php and then i will get a result based on both dropdown selection. But its not working well. The problem is that im getting a error that is saying **Notice: Undefined index: icms in …

Member Avatar for ryantroop
0
1K
Member Avatar for Rishi_3

I'm trying to get the text value from a select dropdown menu that is populated by a database using the following function: <?php function searchintspokenlang() { require ('../../../connect_db.php'); $queryintspoken="SELECT Language FROM languages"; $result=mysqli_query($dbc, $queryintspoken); while ($row = mysqli_fetch_array($result)) { echo "<option value='" . $row['Language'] . "'>" . $row['Language'] . "</option>"; …

Member Avatar for James_62
0
366
Member Avatar for AntonyRayan

Hi, I have a column "statustime" in a table , which has values( like,10:24:10 PM,12:04:00 AM) with mixed of AM and PM . I want to display the other values by "statustime" in ASC . How to do?

Member Avatar for cereal
0
577
Member Avatar for James_62

Guys i'm trying to get data joined from two tables. I have a select options dropdowns with Fabrics names the other has sizes. I am wondering how i will make my dropdown changes the values for each fabric in each size and multiply for the amount of fabric selected. this …

0
141

The End.