39,326 Topics
| |
Php Buddies, Why do you reckon the following script is unable to replace the 'https://' or the 'http://' words with 'http://mymydomain.com' ? It is able to replace the words 'www.' with 'http://mymydomain.com', though. Open 2 tabs in your browser where one opens to the page where you are running the … | |
Hi I have the following form at [http://test.genealogyresearchassistance.co.uk/newLinks.php](http://test.genealogyresearchassistance.co.uk/newLinks.php) The code is <form id="add" action="add.php" method="get"> <label for="name" id="name">Name of site</label> <input type="text" name="name" required="yes"><br/> <label for="link" id="link">Link of site</label> <input type="url" name="link" required="yes"><br/> <label for="desc" id="desc">A bit about the site</label> <textarea name="desc" required="yes"></textarea><br/> <label for="location"> Location:</label> <?php include 'database_conn.php'; $sql … | |
I'm having the following difficultly: I have a table `rates` which contains the follow: -> id -> rate_from -> rate_to -> price A `user` can have many rates, and for an example: between 0 - 10 hours the `user` charges `10.00` an hour between 10 - 100 hours the `user` … | |
I tried to turn on "allow_url_fopen" through MultiPHP INI Editor in cPanel. [You can see image here](https://ibb.co/dS9WHk) But when I check through test.php it shows there that allow_url_fopen is still disabled: [Image](https://ibb.co/irriV5) Can you tell me where the problem is? Even after enabling through MultiPHP INI Editor it is disable … | |
Good Morning.. I Stored an pdf file to varbinary field in Sql Server successfully and retrieved is as it is but my problem is during retrieve i have to put some watermark on it , for that i tried fpdf methods but it didnt parse it so please help me … | |
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, … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
Hi, How to pass query string on click of button ?? | |
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 … | |
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 … | |
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"); … | |
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 … | |
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 … | |
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 | |
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... | |
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"); … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. | |
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"]; … | |
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 … | |
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, … | |
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 … | |
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 … |
The End.