39,320 Topics

Member Avatar for
Member Avatar for Aeonix

<?php $not_an_int = "sa';';';'sd12340asd"; $actual_int = "12341234"; var_dump(is_int((int)$not_an_int)); echo "<br />"; var_dump(is_int((int)$actual_int)); echo "<br />"; echo "<br />"; var_dump(is_int($not_an_int)); echo "<br />"; var_dump(is_int($actual_int)); ?> Returns: true true false false Without casting, real integer is seen as false. With casting, a non-integer is seen as true. What would be a real …

Member Avatar for diafol
0
324
Member Avatar for Nunix

Hello guys, I am here to ask for help, which it is a very problematic (for me) question: I went to the phalconPHP references and put it inside the controller (I don't know if I had to create a new controller or not, maybe yes) but I put it inside …

Member Avatar for Nunix
0
463
Member Avatar for Anmol_4

i have a array like array(2) { [0]=> array(18) { [0]=> array(8) { ["attandance_id"]=> string(3) "162" ["entry_date_time"]=> string(19) "0000-00-00 00:00:00" ["attandance_date"]=> string(10) "2016-04-06" ["class_id"]=> string(5) "11232" ["user_id"]=> string(5) "53697" ["status"]=> string(1) "3" ["timestamp_key"]=> string(27) "99b2f75ac6de8a52_1460025757" ["create_by"]=> string(1) "0" } [1]=> array(8) { ["attandance_id"]=> string(3) "163" ["entry_date_time"]=> string(19) "0000-00-00 00:00:00" ["attandance_date"]=> …

Member Avatar for ryantroop
0
212
Member Avatar for zebnoon1

dear friends, I have created Php form to store data in my mysql database. But i am facing problem in updating file data to store in database. Please check my code below $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']; $tenNo=$_POST['tenNo']; $tdetail=$_POST['tdetail']; $name = ($_FILES['uploaded_file']['name']); $mime = ($_FILES['uploaded_file']['type']); $data …

Member Avatar for diafol
0
406
Member Avatar for janicemurby

im attempting to add date of birth and age to a form and database the date of birth works fine and shows in database as it should be but the age is showing 0 in age column ive tried different things after searching and its staying the same heres the …

Member Avatar for janicemurby
0
204
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
388
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
348
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
343
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
279
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
438
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

The End.