39,326 Topics

Member Avatar for
Member Avatar for sheik_2

Greetings I am looking for users idea approval and management system where user can register his self online and submit an idea/thought and it only reflects to his/her reporting manager to approve. if the manager approves then it will go to management. please help to create this in php & …

Member Avatar for Reverend Jim
0
175
Member Avatar for diafol

Hi all. Been fiddling with an idea about combining setters and getters in PHP. I really don't like magic methods (`__get` and `__set`) as they're not very flexible (IMO), but equally bore myself to distraction with set/get methods. Anyhow, having used jQuery for some time, I really liked the non-verbose …

Member Avatar for diafol
1
407
Member Avatar for Mehidy_1

Hi I'm trying to update my DB table with below code.When I select all row or only 1st row its working fine, but when I select 2nd row or another row, its updating the 1st row value to my DB table. Please see & try to help me. update.php <table …

Member Avatar for hericles
0
416
Member Avatar for davy_yg

Hello, I have two files with slightly different codes from two different programmer. Me and the other guy. And I would like to move part of the working feature from one file to the other codes. Any software that could compare php / laravel codes and highlight the difference? Something …

Member Avatar for Reverend Jim
0
713
Member Avatar for bhuvi_2

hi i want to know how to delete duplicate rows in imported csv files in phpmyadmin in php..below is my code to import csv file in php,i want to delete duplicated rows in my imported csv files which is in database of xampp(phpmyadmin)can anyone add thecode for it <?php $user …

Member Avatar for cereal
0
339
Member Avatar for rpv_sen

Hi i am having 3rd party csv file. i am having php uploading script to upload the datas into my table. while uploading datas into my mysql Table mean while it has to remove duplicate entries rows from CSV file. Please help me

Member Avatar for bhuvi_2
0
9K
Member Avatar for muralibobby2015

I have developed Laravel application which allows dynamic subdomains. I mean single code for all tenants.each tenant will have separate database. But how can I setup crons for each subdomain?

Member Avatar for cereal
0
442
Member Avatar for new_2

function total_price (){ $total = 0; global $db; $ip = getIp(); $sel_price = "select * from cart where ip_add='$ip'"; $run_price = mysqli_query($db,$sel_price); while ($p_price= mysqli_fetch_array($run_price)){ $product_id = $p_price['p_id']; $product_price = "select * from product where product_id='$product_id'"; $run_pro_price = mysqli_query($db,$product_price); while ($pp_price= mysqli_fetch_array($run_pr0-_price)){ $product_price = array($pp_price ['product_price']); $values = array_sum($product_price); $total …

Member Avatar for benanamen
0
188
Member Avatar for Anil_15

Select quray is working but delete query not working. <table border="1", align="center", width="98%", margin="auto", cellpadding="auto"> <caption><h2>View News</h2></caption> <tr> <th><input type="Submit" name="" value="Delete"></th> <th> S.No. </th> <th> Title</th> <th> Description</th> <th> Delete</th> <th> Edit</th> </tr> <?php $sel="select * from add_news"; $exe=mysql_query($sel); while ($fetch=mysql_fetch_array($exe)) { ?> <tr> <td><input type="checkbox" name=""></td> <td> <?php …

Member Avatar for benanamen
0
309
Member Avatar for Mereinid

Hello all, I am having a bit of an issue with a problem in my Web Dev Class. I am unable to get my "localhost" to pull up, it keeps giving me an error of; Parse error: syntax error, unexpected '<', expecting end of file in C:\xampp\htdocs\xampp\Chap19\Fig19_9.php on line 19. …

Member Avatar for diafol
0
528
Member Avatar for dwlamb

Is it possible to attach a jquery autocomplete input to a form initiated by ajax editing a table? I have the following method for making a table cell editable using AJAX. I.e., user clicks on the cell and it transforms to a mini form. Hit Enter and the changes are …

Member Avatar for RobinR
0
494
Member Avatar for santhoshsocial
Member Avatar for Jiecel Marianne
Member Avatar for davy_yg

Hello, I wonder why this code won't work: HomeController.php `$content = $email."\n".$phone."\n".$select; ` I expect that it goes to the next line after \n

Member Avatar for diafol
0
331
Member Avatar for sanus

I have the following code <a href="<'. Url::to(['site/campaign']) .'" class="pull-right text-green"> '. HtmlPurifier::process($camp['CampaignStatus'] < 1 ? 'Intiated' : (($camp['CampaignStatus'] < 2 ? 'Drafted' ))) . '</a> but it's giving me the following error: ParseError syntax error, unexpected ')' Can anyone see what's going wrong here or how to fix it?

Member Avatar for hericles
0
281
Member Avatar for janicemurby

hi all im wondering what i can do to stop this happening advsearch_result.php?city=&country=&gender=a+man&fage=18&lage=99&accomodate=I+can+Accomodate&minheight=152&sexuality=Straight&bodytype=&race=&piercings=No+piercings&tattoos=No+tattoos&dodrink=&smoker=&pincode=&multipleint=&seeking=a+man&meet_type=&travel=I+can+travel&maxheight=213&partner_sexuality=Straight&partner_body_type=Athletic&partner_race=&partner_piercings=No+piercings&partner_tattoos=No+tattoos&partner_drinking=Don't+drink&partner_smoker=&button.x=90&button.y=19 every time i click submit on a form all this come in address bar after file name the code is currently set as $male = $_GET['gender']; $seek = $_GET['seeking']; $age1 = $_GET['fage']; $age2 = $_GET['lage']; etc ... …

Member Avatar for diafol
0
228
Member Avatar for sunil_20

hi have tried sending mail from html through from php, but the message shows message sent succefully but nor recieved in inbox. please help me with this. 1. html page <div class="form"> <form id="contactForm" name="sentMessage" method="post" action="http://thehealcom.com/corona1/js/contact_me.php" validate> <div class="row clearfix"> <div class="col-md-12"> <div class="row"> <div class="form-group col-md-12"> <div class="form-group-inner"> …

Member Avatar for diafol
0
198
Member Avatar for sanus

I have a problem in my Yii2 app that when i upload multiple images it will become totally unaligned. This is how it is https://i.stack.imgur.com/TfIla.png I want to align contents vertically one after other when uploading multiple images . This is how i want https://i.stack.imgur.com/N30u6.png And this is the code …

0
207
Member Avatar for Irtaza Ijaz

I am following this **tutorial** to display **custom opacity control** in wordpress **default** color picker scheme, [Click Here](https://github.com/BraadMartin/components/tree/master/customizer/alpha-color-picker) i want my color picker looks like this, after adding opacity bar. ![dani.PNG](/attachments/large/4/735831d60c76788bcc1ce819a383ce49.PNG "align-center") I am using **twenteen seventeen theme** to display alpha color picker in the **apperence->customize->text**, but it is only …

0
209
Member Avatar for WebDevGuy32145

Hey everyone, So for some reason my while loop wont populate my select/option field with data in my database. I'm trying to get the values stored in database to show as well as return already submitted data. Here is where my while loop is: <select class="form-control" name="permissions"> <option value=""<?=(($permissions == …

Member Avatar for cereal
0
444
Member Avatar for SimonIoa

Hello i have a problem. i use session for any user that logs In my website. I use the session user id as a variable to show the first page of my site when one presses my website url (www.mywebsite.com) so, if the session user id is empty then returns …

Member Avatar for SimonIoa
0
527
Member Avatar for meazza

Hello. I have a quick question here. I have a html document with a very long form. Each element in the form has an label. The action of the form is [CODE]<FORM action="Bestallningsformular.php" method="get">[/CODE] What I now want to do in the php document is to fetch the value and …

Member Avatar for Rashid_4
0
9K
Member Avatar for arun_22
Member Avatar for Anni_2

Whenever i execute this, only the last row of the loop gets inserted even if i click on the first row or any row. What i need is: if i click register, the entire selected row must store in another table Whats wrong here? Please help me.. <table class="table table-striped …

Member Avatar for hericles
0
597
Member Avatar for ceeandcee30

Good Morning Dani Web, I have been struggling for days with a section of code on a hockey pool site that I have built. I am hoping someone here can help. A little background... - This is an NHL pool where each player can be drafted twice - defined in …

Member Avatar for ceeandcee30
0
2K
Member Avatar for Adrienne_1
Member Avatar for Var_1

I want to attach two excel files (sealing_production.xls & sealing_assembly.xls)to my email using php,but I have no idea on how to do it. **Problem** When I click on my send mail button, I gets the mail. with all details. but attachment is not working. **Try** I echo the file name, …

Member Avatar for cereal
0
2K
Member Avatar for tara_1

hi frinds. hope you are well. as i writte this writting im thinking about a my [site](http://Iraniantranslate.com) .... how can i introduce my site to other people? and how can i popular it in google search? best regards,

Member Avatar for cereal
0
225
Member Avatar for Ali_77

<?php $san= "" ; $year = 2013 ; switch (($year - 7) % 12) { case 0:$san = "rat" ; break ; case 1:$san = "tiger" ; break ; case 2:$san = "elephant" ; break ; case 3:$san = "sneake" ; break ; case 4:$san = "dog" ; break ; …

Member Avatar for diafol
0
234
Member Avatar for andyy121

the password in database doesnt changet when i press change button in the page i show me the pass is change but when i log in with the new pass it show incorrect pass help please <?php session_start (); $user = @$_SESSION['username']; if ($user) { //user is logged in if …

Member Avatar for diafol
0
14K

The End.