39,323 Topics

Member Avatar for
Member Avatar for UI

Hi, This is a basic cURL web proxy script. Why is it showing weird array pattern looking errors ? <?php function CURLGetURL($url){ // use CURL to make request $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); // the url to retrieve curl_setopt($ch, CURLOPT_HEADER, 1); // return the header along with body curl_setopt($ch, …

Member Avatar for UI
0
413
Member Avatar for UI

Folks, Why do I keep on getting this error when everytime I input a url in the url field in the following web proxy script: **"The specified URL could not be returned due to a status code of 400."** It says unless the Status Code is 200 then to show …

Member Avatar for UI
0
401
Member Avatar for UI

Folks, I'm listing here all the Viral Traffic php scripts I am coming across so you guys can check them out for any purpose. I am hunting them for code learning purpose. You might learn a few tricks of the trade yourselves if you peep on the source codes. **I'd …

Member Avatar for UI
0
562
Member Avatar for UI

Howdy Pros! If I was going to just track which urls from my own domain get clicked then I know how to do it. On everyone of my links, I'll just add my tracking url, like so: http://mydomain.com/?tracker.php But like I said, I want to track what my users do …

Member Avatar for UI
0
1K
Member Avatar for Bacchus_1

I am rather new to Normalization. I understand the concept of how it organizes the tables but I fail to see how I can use the data to show up correctly in my query using pdo. I have 3 tables: employees: id | name 1 user1 2 user2 2 user3 …

Member Avatar for Web-Designer
0
1K
Member Avatar for seularts

Hi, I'm back ^_^ Ok, I almost have this cute thing working. I know I am close but I have no idea how to get this working the right way. I am Left Joining a few tables and I want to filter the results after multiple values. ...... Ex: Options …

Member Avatar for Web-Designer
0
269
Member Avatar for Sharanya_1
Member Avatar for chrisschristou

hello everyone gld this community exist ! i'm facing new problem with apache2 on ubuntu i'm using lamp from yesterday and everything works fine knowing that i'm originaly from windows ! so when i type `gksu service apache2 start` in terminal and then put my password, when i refresh localhost …

Member Avatar for rproffitt
0
2K
Member Avatar for Stefce

Hi everyone. I want to make when i press a button to showup a dialog but page to not refresh or if refreshes to showup after that. i have this code but the dialog is going away after clicking the button <form action="" method="post"> <div class="col-xs-4 col-md-4"> <a href="<?= $Link …

Member Avatar for Stefce
0
302
Member Avatar for shivya_1

Hello to all, I am facing an issue in registering values into database through php. Many times i have done the same but i don't know why i am unable to do this now. Since from 2-3 months, I have not done anything in php.Please help me out.. <?php include("config.php"); …

Member Avatar for cereal
0
313
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
318
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
277
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
416
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
336
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
244
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
353
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
555
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
796
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
219
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
564
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
404
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
767

The End.