39,388 Topics

Member Avatar for
Member Avatar for Petreanu

so my newest problem! i have a save button and that save button already has the insert into query and working fine now what i wanna do is when the user clicks on the save button what it does first is, it checks if a record of that user already …

Member Avatar for AndrisP
0
319
Member Avatar for seularts

I want to search a combination of values from any given field that has a list of items. Example: id | nume | denumiri_job 1 | my_list | chair,apple,snake,can How can I search for 2 or more elements from the field list? For example if I input in my search …

Member Avatar for diafol
0
6K
Member Avatar for david_105

hi how do i hide the (team_id) value in the below form <option value="' . $row['team_id'] . '' . $row['teams'] . '" ' . $selected . '>' . $row['teams'] . '</option> thanks

Member Avatar for KushMishra
0
161
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
281
Member Avatar for ceeandcee30

I have a mysql database that has a Date Received entry and a Date Sent entry. I would like to calculate how many hours in between. This is what I have... $strStart = $row['Date_Received']; $strEnd = $row['Date_Sent']; $dteStart = new DateTime($strStart); $dteEnd = new DateTime($strEnd); $dteDiff = $dteStart->diff($dteEnd); print $dteDiff->format("%H:%I:%S"); …

Member Avatar for ceeandcee30
0
418
Member Avatar for a5opyan

In my php code, I make for user for upload their files, to ftp. For several months, its work. No problem at all. But recently they said cannot upload their files, which is larger than 5MB. Previously, they can upload for 300MB or more. I ask my hosting, but they …

Member Avatar for Mr.M
0
255
Member Avatar for Naveen_22

I am creating a cloud based application in laravel/php. I have a functionality where user can have their website at user.myapp.com and it works (with subdomain and model binding). I now want to go one step further, and allow users to add their own custom domain names. So their website …

Member Avatar for Naveen_22
0
337
Member Avatar for Dani

Can I do the following? function foo(&$a) { $a += 2; } foo($bar = 5); // Desired Outcome: // $bar = 7 In other words, can I pass an assignment by reference and have the desired outcome? (Yes, I know that I could do the test myself, but I'm working …

Member Avatar for Dani
0
211
Member Avatar for mario_5

Admin USERNAME: IT-1 PASSWRD: IT-1 Nw use index.php file t lgin. If an errr ccurs that “Multiple lgins nt allwed” then run errr.php and try again. 2. Nw yu will see the Accunt Details f Admin. 3. Fllwing ptins are available in the interface: Hme: My accunt: T view the …

Member Avatar for rproffitt
-1
245
Member Avatar for peace_coder

Hi, I am facing problem in adding a widget to header of Wordpress website. Here its [Header](http://ibb.co/kr9sCa) and I want to add this [Widget](http://ibb.co/erykXa) on the right of social links. Can you guide me how to add it. I already have HTML code, not sure where to put it.

Member Avatar for diafol
0
356
Member Avatar for Mhecha

Am trying to create edit-form but there are some problem which I cant determine by my self. I cant echo inserted record and updating. <?php include("db_con.php"); $edit_reg_no = filter_input(INPUT_GET, 'edit_customer_detail', FILTER_VALIDATE_INT, ['options' => ['default' => NULL]]); if(isset($_POST['update'])){ $update_reg_no = $edit_reg_no; //getting the text data from the fields $d_fname = $_POST["d_fname"]; …

Member Avatar for Mhecha
0
447
Member Avatar for michael.dewitt.716

Hello all, i have been searching and now i am coming here to ask for some help. can i use a php function in bind_param? If so, how can i go about doing it? my function does have a return in it rather than an echo and when i echo …

Member Avatar for michael.dewitt.716
0
565
Member Avatar for OtepTheThird

Hi, Need help, im stuck here in PHP pagination, though i have made it work but it displays all the nmuber of pages i have. My goal is to have an adjacent so that it would be more clean for the user. here are the fucntion code for my pagination, …

Member Avatar for Bacchus_1
0
798
Member Avatar for OscarZulu

I'm trying to pass an array from php file to a js file here is the code in php file <!DOCTYPE html > <html > <head> <style>------</style> </head> <body onload="gotofunction()"> <?php session_start(); $_SESSION['street']= $this->street; $_SESSION['city']= $this->city; $_SESSION['state']= $this->state; $_SESSION['zip']= $this->zip; ?> <script type="text/javascript"> function voodoo(){ alert('alert in voodoo'); // 1st …

Member Avatar for michael.dewitt.716
0
2K
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
222
Member Avatar for seularts

I have a little issue I can't figgure out. I can't seem to figure out how to add dots to my pagination so I don't have more pagination numbers than mysql results in the page XD . This is my code: $query = "SELECT id, ....."; $records_per_page=10; $crud->paginglink($query,$records_per_page); public function …

Member Avatar for seularts
0
1K
Member Avatar for david_105

Am able to use this code to bind a.id = :auc_id in order to display certain result needed for menu code, but when i introduce it in the submenu i dont get any result below are the codes for menu and submenu' MENU works fine, display whats need to be …

Member Avatar for david_105
0
565
Member Avatar for peace_coder

A new client, as you know client have sometime zero knowledge related to web development. Client said to insert a link in her website. But when I asked her for login details she provide me godaddy login details. When I loged in there, I saw this: [Image](http://ibb.co/kYGP7a) There is no …

Member Avatar for cereal
0
405
Member Avatar for SimonIoa

I have a script that opens a camera and takes a snap. I want it to be able to create an id of the photo and then store it. HTML <a href="javascript:void(0);" class="updateControl2" id="webcamButton" title="Open Camera"><span class="boxWebcam wallbutton">Open Camera</span></a><br /><br /><br /> <video id="player" controls autoplay></video> <div id="webcam"> <button id="takeSnap" …

Member Avatar for diafol
0
3K
Member Avatar for UI

Good Day Folks! 1. Is the following regex ok to extract top level domains and 2nd level domains ? [^.]*\.[^.]{2,3}(?:\.[^.]{2,3})?$ 2. How to write php code to use that regex ? Any sample code welcome.

Member Avatar for JamesCherrill
-6
773
Member Avatar for UI

Guys, What I am trying to do is load google.com with cURL and no matter what link is on the page, be it a google link or another domain), I want the script to precede: http://mydomain.com/tracker.php? So, if the page contains a link like this: http://somedomain.com/ then that should be …

Member Avatar for JamesCherrill
-3
312
Member Avatar for seularts

I'm trying to find a way to output whatever BLOB files are inserted into a silly database. In my code when I query the CV column I get all sorts of weird symbols. Can you guys please help me fix my code? $crud->dataview($query); }else{ $query = "SELECT id, from_unixtime(cheie_wp) as …

Member Avatar for cereal
0
3K
Member Avatar for ARNAB_2

I have a shell script , which I am executing via a PHP, which in turn executed from a html page. Whereas PHP script is not getting executed from the html. PHP script is working fine when executing from the server. Please be informed ownership is correct. Please suggest a …

Member Avatar for patk570
0
273
Member Avatar for phphp

Sir I have these codes <body onload="code.focus()"> <!-------------------------------------> <form name="form" action="<?php $_PHP_SELF;?>" method="post"> <!-------------------------------------> <div id="partybox"> <!--f_date1--> <label for="datepicker-13"> Date </label> <span style="border:1px solid #FFF;border-radius:3px;width:95px;height:20px;"> <input style="background-color:#FFC;border:1px solid #9C6;text-align:center;" type="text" size="9" name="f_date1" required id="datepicker-13" onblur="validatedate(document.form1.f_date1)" value="<?php echo date('d-m-Y', strtotime($f_date1));?>" disabled="disabled"/> </span> <!--vno--> <label for="vno"> V. # </label> <span style="border:1px solid …

Member Avatar for AndrisP
0
214
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 david_105

how do i convert this <label for="category">Select Winner</label> <select name="willwin" id="willwin"> <?php if ($db->numrows() > 0){ while ($row = $db->fetch()) { ?> <option value=''></option> <option value="<?php echo $row["willwin"]; ?>"><?php echo $row["team1"]; ?></option> <option value="<?php echo $row["willlose"]; ?>"><?php echo $row["team2"]; ?></option> <?php } } ?> </select> <br/><br/> <label>Tag Bettor</label> <select name="sub_cat" …

Member Avatar for diafol
-1
271
Member Avatar for UI

Associative Array <html> <body> <?php /* First method to associate create array. */ [b] $salaries = array("mohammad" => 2000, "qadir" => 1000, "zara" => 500);[/b] echo "Salary of mohammad is ". $salaries['mohammad'] . "<br />"; echo "Salary of qadir is ". $salaries['qadir']. "<br />"; echo "Salary of zara is ". …

Member Avatar for AndrisP
0
404
Member Avatar for davy_yg

Hello, I am trying to utilize a share hosting. WHM. And now is there anyway to update many websites with the same template into a new version automatically? For example if I am having 20 users using the same templates and I want to upgrade all the templates into a …

Member Avatar for diafol
0
126
Member Avatar for peace_coder

Hi, I have a little problem related to WordPress, look at screenshot first: [Here](https://i.stack.imgur.com/DeP8e.jpg)! On the main page I just want to edit that link and also its title from Business Business News to Business news. As you can see in Image I marked it with red arrow. I am …

Member Avatar for diafol
0
396
Member Avatar for anmol.raghuvanshi1

In my registration page i want user to select multiple images and upload it i am saving images name in database for reference. I am successful in uploading single images in database and can also show image in view but now i have problem in uploading multiple images. <?php if …

Member Avatar for Rizvan_1
0
7K

The End.