39,402 Topics

Member Avatar for
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
451
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
189
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
316
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
530
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
497
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
333
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
283
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
231
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
200
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
209
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
211
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
446
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
529
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
601
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
227
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
237
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
Member Avatar for websponge

Hi There, Im really really pulling my hair out here, and was hoping you guys could help a really poor coder! basically, I have a table with a list of contracts in it, and a table with a list of applications for each contract. I can succesfully populate a list …

Member Avatar for Ronie_1
0
3K
Member Avatar for Maideen

Hi I am new in PHP. I have used dropdown to bind with my sql data. It is ok But I could not insert data into table only from dropdown. Other controls like text can be inserted. I have given code below. Pls advise me. Maideen <?php require_once '../inc/header.php'; ?> …

Member Avatar for hericles
0
382
Member Avatar for WebDevGuy32145

Hey everyone, Sorry for posting another issue with the same project as of recently. I'm having trouble figuring out why when I take away text in an input field when the form is set to "Edit" a category, and click submit (to see if an error shows up), it redirects …

Member Avatar for WebDevGuy32145
0
325
Member Avatar for Queen_2

how to fix this? Port 3306 in use by ""C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe" --defaults-file="C:\ProgramData\MySQL\MySQL Server 5.7\my.ini" MySQL57"!

Member Avatar for cereal
0
209
Member Avatar for rpv_sen

Hi Friends, I have some dynamic text box in my screen, i have entered only one text field of the screen, after submitting the form all the values of the dynamic text box field is getting added in the database as 0 except the value i entered. i have used …

Member Avatar for Bhuvaneswari_1
0
2K
Member Avatar for davy_yg

Hello, I am trying to utilize facebook comment plugin: Cek this website that I created: http://julmarice.com/ this site consist of many articles. I wonder why after I add the fb comment plugin which is good for different articles it shows the same comments? I would like for different article should …

Member Avatar for pixelsoul
0
250
Member Avatar for Saveitpk

i need to update when user i come on left or right side if colums in table when user come with register then count leftcount 1 , if user come right side then count , in colum rightcount . plz any person can help me?

Member Avatar for rproffitt
0
219
Member Avatar for Gloak

I am not a computer professional, only like to develop my own toys. I am using Globi Flow to get the info I need from the XML file. All is done, except for one instance where I do not have the closing tag Regular node with closing tag: <proper price>$4</price> …

Member Avatar for Gloak
0
3K
Member Avatar for tirumalai

I have installed Xampp in my PC. In the Control Panel in the apache the port setting no is not showing inspite of changing from 80 to 8080. How to resolve this problem.

Member Avatar for rproffitt
0
90
Member Avatar for Var_1

I'm trying to create a web page that when user click on the below link,it will bring user to the next page <a href="../try/sewcutrptsummary?pro={$row ->idmsul}" target="blank"">Link My question is,how can i retrieve the same data from 1st page & display it in a textbox in 2nd page as shown in …

Member Avatar for cereal
0
1K
Member Avatar for WebDevGuy32145

Hey everyone, I have been going over this in my head and can't seem to figure out the solution. I've got a database table called brands and in my form I'm trying to get it to where when I edit a brand, I can't edit it into an already existing …

Member Avatar for WebDevGuy32145
0
476
Member Avatar for peace_coder

Hi, Sometime I need to login WordPress dashbaord or Hosting place for fixing bugs and issues for client. So I want to know that how I can scan a WordPress website before logging into its dashbaord for making sure its free from all kind of malwares, viruses and keyloggers. So …

Member Avatar for rubberman
0
246
Member Avatar for Lloyd_4

Hi everyone, Iam trying to figure out how to display the correct time and date format in the following piece of code $stmt = $conn->prepare("SELECT * FROM tbl ORDER BY id DESC"); $stmt->execute(); $total = $stmt->rowCount(); while ($row = $stmt->fetchObject()) { //$opvar = $row['mchq_date']; echo " <tr> <td>{$row->mchq_date}</td> </tr> "; …

Member Avatar for Lloyd_4
0
372
Member Avatar for davy_yg

Hello, I am trying to print html message: And when I print it out instead of showing the real message it shows me this: " Ini content baru 2 <br/> <br/> <br/> <br/> " I wonder how to make it shows the message only without the html codes.

Member Avatar for diafol
0
197
Member Avatar for calvinyow

Hi. can someone help me with my problem regarding search function, i have hard time knowing where to insert my if(isset($_POST['search'])).................and so on codes within my phpfile. here is my code, (pagination working) <?php $sql = "SELECT COUNT(user_id) FROM view_onse_officers"; $query = mysqli_query($db_conx, $sql); $row = mysqli_fetch_row($query); $rows = $row[0]; …

Member Avatar for Gugun_1
1
5K
Member Avatar for davy_yg

Hello, I wonder why I keep failing saving data. I keep getting this message: "please fill the title and content article" - eventhough I already fill them in. article.blade.php <div class="backend-form create-article-form" style="display:none;"> <div class="form-top"> <div class="form-left"> <h4>Create Article</h4> </div> <div class="form-right"> <a href="#" class="btn-save-article setting_save"></a> <a href="#" class="btn-cancel-article setting_cancel"></a> …

Member Avatar for pixelsoul
0
286
Member Avatar for Mr.M

Hi DW. I have built a website using Mobirise and now what I want to do is to enable the site to accept comments from people and also display them on the page on the section COMMENTS, now the problem is that I want the comments to use the themes …

Member Avatar for Mr.M
0
324
Member Avatar for Johnson_7

Hi Dynamic Dependent Select Box last one not working Bank,State,District is working branch ont working please check below code Please help. index.php <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <style type="text/css"> .select-boxes{width: 280px;text-align: center;} select { background-color: #F5F5F5; border: 1px double #FB4314; color: #55BB91; font-family: Georgia; font-weight: bold; font-size: 14px; height: 39px; …

0
221
Member Avatar for istore221

<?php $user_name = $_POST["NameBox"]; $user_contact = null; $user_contact=$_POST["ContactBox"]; $comment = $_POST["msgbox"]; if($user_contact==null) { $user_contact = "Not provided"; } $to = "mymail@domain.com"; $subject = "Message From Web"; $body = "Contact name is = $user_name | Contact number is = $user_contact | user comment is = $comment"; mail($to,$subject,$body); header("Location:http://www.masconsolidated.com/confirmation.html"); exit; ?> this …

Member Avatar for Anuradha_2
0
258
Member Avatar for SKANK!!!!!

i know how to do the link thing that if u click it it closes the window. but im wondering if theres a way to automatically close a window after the php code is done running. cause i have an inbox and theres a link to delete the message if …

Member Avatar for sajjadhira
0
47K
Member Avatar for Mugiwara

I want to not include the penalties from Sunday , only Monday - Saturday only using this borrowdate,returndate, and currentdate Thankyou! $borrowdate = new Datetime($row['date_return']); $returndate = new Datetime($row['due_date']); $currentdate = new Datetime(); $fines = 0; if($currentdate > $returndate){ $days = $borrowdate->diff($returndate ?? $currentdate, true)->days; echo "₱ ". $fines = …

Member Avatar for diafol
0
247
Member Avatar for davy_yg

Hello, I am receiving this error message while trying to process the following javascript - "Error, the configuration is failed to save". What might be wrong? How to troubleshoot the javascript? partial/setting.blade.php function onSave(el) { var parent = $(el).closest("li"); var form = $(parent).find("form"); var editel = $(parent).find(".edit_form"); var beforeText = …

Member Avatar for pixelsoul
0
289
Member Avatar for Haji Sameon

Hi guys, Im quite new to php. Currently, im trying to convert my php to word and been googling for a long time about this. Anyone know how to convert php to word (free). For your information, im using Suse Linux as my server. Really need some suggestion for my …

Member Avatar for diafol
0
864
Member Avatar for cainam29

I have a code that send an email but how I can prevent it from always sending everytime my page refreshes. function two_dim_array_to_html_table($arr, $colcomments){ $ret = "<table border='1' width='auto' cellpadding='1px' cellspacing='0px' align='center'>\n"; $ret .= "\t<tr>\n"; foreach($arr[0] as $key => $val){ $ret .= "\t\t<th>".$colcomments[$key]."</th>\n"; } $ret .= "\t</tr>\n"; foreach($arr as $row){ …

Member Avatar for urtrivedi
0
1K
Member Avatar for SimonIoa

Hello, the functions are called in the XHR (status 200) but dont return anything as it should,. Even when i put an echo it doesnt return the echo. The path is correct example javascript function userDetails(uid,apiBaseUrl,baseUrl,public_username,msgID,groupID) { var encodedata=JSON.stringify({"uid": uid,"public_username":public_username,"msgID":msgID}); var url; url=apiBaseUrl+'api/publicUserDetailsTest'; ajaxPost(url,encodedata, function(data) { if(data) { some code.... …

Member Avatar for pty
0
282
Member Avatar for Mugiwara

I want to see the penalties updating, but it's only see after you click the return button and wait for one day again that it will show the penalty. <?php $user_query=mysqli_query($dbcon, "select * from borrow LEFT JOIN member ON borrow.member_id = member.member_id LEFT JOIN borrowdetails ON borrow.borrow_id = borrowdetails.borrow_id LEFT …

Member Avatar for rproffitt
0
468

The End.