473,544 Members | 120 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP Forum

PHP web programming language - Ask questions about php scripting, databases, mysql, templates, PEAR, php functions, PHP-GTK, setup and installation, object oriented programming, classes, files, security, sessions, arrays and more.
1
1,349
thread by: prabhu13 | last post Apr 7 '17 by: Dormilich
i am using this code <?php /* get disk space free (in bytes) */ $df = disk_free_space("/var/www"); /* and get disk space total (in bytes) */ $dt = disk_total_space("/var/www"); /* now we calculate the disk space used (in bytes) */ $du = $dt - $df; /* percentage of disk used - this will be used to also set the width % of the progress bar...
1
1,145
thread by: REFGonzales | last post Apr 4 '17 by: REFGonzales
I have a form that I use php to retrieve data from MySQL and display that data in an input box. One of the fields is encrypted when the data is submitted into MySQL using AES_ENCRYPTED and that part works fine, I can see in the DB that that data is encrypted. My issue is how to use AES_DECRYPT to display the decrypted data in my input box with...
0
1,060
thread by: shruti12 | last post Apr 3 '17 by: shruti12
I have select box in that two options like static value and custom value if user selects custom value a textbox will appear and if it is static value a combo box will appear so that from both option based on selection the value should store into database please help to code this problem correctly <!DOCTYPE html> <html lang="en"> <head>...
1
982
thread by: Striker1989 | last post Mar 31 '17 by: Dormilich
<!doctype html> <head> <title>Show password </title> <script> //show password button $(document).ready(function(){ $("#showpassword").on('click', funtion(){ var pass = $('"password"); var fieldtype = pass.attr('type'); if(fieldtype == 'password'){ pass.attr('type','text'); $(this).text("Hide Password");
1
1,351
thread by: jenggoe | last post Mar 31 '17 by: Dormilich
I have problem login to my system after upgrading php5.2.6 to 5.3.xx. something wrong with my code? tq <?php # FileName="Connection_php_mysql.htm" # Type="MYSQL" # HTTP="true" //$hostname_contmjportal = "localhost"; //$hostspec_contmjportal = "localhost"; //$database_contmjportal = "tmjportal";
0
1,059
thread by: ccoronado | last post Mar 27 '17 by: ccoronado
Hi I would apreciate it immensly if somebody can help me with the following problem. I need to create an insert using only variables. To explain what I am trying to do, I need to turn this: $sql = "INSERT INTO table (column1, column2) VALUES (value1, value2)"; into this:
0
914
thread by: salvador5266 | last post Mar 24 '17 by: salvador5266
I'm running a PayPal plugin that is built with php. The problem I am having is it works perfect in sandbox only. I have posted this question in several places with no response so far hoping someone here might have some suggestions. When I take the plugin out of sandbox mode the payment completes successfully but the details are not being...
1
969
dbrewerton
thread by: dbrewerton | last post Mar 24 '17 by: dbrewerton
Hello folks, I'm trying to figure out how to get the last inserted ID from my database. The query runs but instead of getting the actual number inserted, I get the word Array returned. Here's the code, let me know how to fix this. Thanks! For what its worth, this is MySQL running PHP and the DB connection I believe is PDO. $query =...
0
880
thread by: shahaxor | last post Mar 23 '17 by: shahaxor
How to update database when a file is downloaded to the server? Assign that downloaoded file an id.
1
1,074
thread by: mtroooody | last post Mar 20 '17 by: Dormilich
I have a table in a form where i would like the user to be able to upload up to 8 photo's. The photos that have been uploaded so the person can see the photos in the form before completing the form and saving it. I have seen a number of upload scripts but not able to do multiple uploads and the user to see while still completing the form. ...
1
1,004
thread by: SamDave | last post Mar 10 '17 by: Dormilich
Am still learning php. I really don't know what's wrong with this code, it keeps displaying errors when I try running it. I would really appreciate if it is checked out for me so I can know where the errors are. An alternate code would also be appreciated. <html> <head> <?php $ch1 = " unchecked"; $ch2 = "unchecked"; $ch3 = "unchecked";...
0
2,171
thread by: khaledbelal | last post Mar 3 '17 by: khaledbelal
When i post form angular form to API Laravel i get error 500 (Internal Server Error) in console .... why? Note: Backend API is working perfectly with POSTMAN. My Cors.php in Laravel is: namespace App\Http\Middleware; use Closure;
2
1,049
thread by: kombo | last post Feb 13 '17 by: Dormilich
Hello Programmers. Am having a problem, want to provide a search box to my website. i have tried figuring that out but i dont get the answer. pls help.
1
1,040
thread by: vickyveera | last post Feb 10 '17 by: Dormilich
<tr> <th>Read</th> <th>Write</th> <th>Delete</th> </tr> <tr> <td ><input type="checkbox" name="admin_access" id="admin_read" /></td> <td><input...
0
1,038
thread by: dikomamen | last post Feb 8 '17 by: dikomamen
im making a mini attendance module, but i dont have a idea to do this so please help me and the user must attend every 3hrs so if they attend at 3:05 the difference from time will be the value of $late so its the 5 minutes this is my code of getting the time to show in the page var currentTime = new Date() var hours = currentTime.getHours()...
3
2,209
thread by: mckin | last post Feb 6 '17 by: Dormilich
Does anybody know how solve this error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 here is my code <?php header('Content-type: text/html; charset=UTF-8'); set_time_limit (60*60); // 60 minutes
0
1,011
thread by: Stackin | last post Jan 25 '17 by: Stackin
There used to be many field kept hidden. But a user who is concern about programming they may change the coding at run time and can see the important fields like API key etc. How to restrict users to do that??
1
1,524
Ashish Bisht
thread by: Ashish Bisht | last post Jan 23 '17 by: Dormilich
Hi, I would like to know that "how to fetch data in array from multiple select box in Slim framework.", which has become difficult to debug. I hope any tech developer will help me in resolving this issue.
0
1,037
thread by: Mint | last post Jan 19 '17 by: Mint
I'm trying to retrieve values of out parameter by using ODBC and PHP. I've been searching online but to no avail. There are a lot of resolves for PDO and mysqli and I only found this for odbc. I'm kind of lost by the parameter and the operation involve. Is there any documentation or reference that I can follow? Anyone have any idea on how can I...
1
1,742
thread by: dash12 | last post Jan 19 '17 by: Dormilich
I have the following script for getting a response from the Twilio number when a sms is sent to it. However, when I run my script, it doesn't work for all keywords. I am not sure why? It runs for '1' and 'hello' as keywords but that's it. <?php require __DIR__ . '/twilio-php-master/Twilio/autoload.php'; $from = $_REQUEST; $body =...
0
1,169
thread by: pns College | last post Dec 28 '16 by: pns College
There the PHP pages are successfully worked inAdobe Dreamweaver CS3 with localhost!!! But these pages not working when these php pages are uploaded into website It shows some session warning:- 1)session_start() : Cannot send session cache limiter - headers already sent (output started at /home4/raju/public_html/verify/verification.php:9) in...
0
1,079
thread by: Toki | last post Dec 27 '16 by: Toki
Hi Guys, Could you kindly help with this. So we can assume that we have a html5 form that writes its data to a text file. Now this is the easy part my intent depends on the below configuration template (using Grouped arrays) 1-Group1,10,20,30,40,50,0 2-Group2,1,0,0
0
1,116
thread by: Umar Mukhtar | last post Dec 26 '16 by: Umar Mukhtar
I want to use a table name variable in selecting and updating multiple table in mysql database like UPDATE $table_name SET reg_no = ?, name = ?, class = ?, ca1 = ?, ca2 = ?, ca3 = ?, cat = ?, exam = ?,total = ? WHERE id=?"
0
1,058
thread by: knewts98 | last post Dec 22 '16 by: knewts98
am new in php and what to insert data in my database from a form but when i try inserting i get only half of my data in the database. here is my code. Please help me out. Thanks in advance. <?php include 'muthala primary.php';?> <?php // create a variable
0
973
thread by: knewts98 | last post Dec 22 '16 by: knewts98
Hello am new in php and am having error with my code. i want to update my database fron my form but when i run my script it has the following error. Please help out thank you in advance. <html> <head> <title></title> </head> <body>

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.