473,554 Members | 2,902 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.
6
1,456
thread by: inspectelement | last post Jun 18 '15 by: inspectelement
I tried this on Miiverse and compared a user with blocked followers with unblocked followers here is the difference. Unblocked: <a href="/users/PridexLeader/followers" class> <span class="name">Followers</span> <span class="number">228</span> </a> ::after </div>
1
1,393
thread by: bhavaniReddy | last post Jun 23 '15 by: computerfox
I have one table t1 on database d1 of the server s1 and now another table t2 is in d2 of the server s2.Now i want some data of the table t1 and its related data from t2 table as resultant data.how can i make it possible and fetch data can any one explan me step by step plz i am worried i am trying from 1 week help me plz i am new to php plz...
0
1,178
thread by: JEEVA5719 | last post Jun 23 '15 by: JEEVA5719
How can I protect my site from HTTrack or other software's ripping?
19
1,746
thread by: tdrsam | last post Jun 25 '15 by: computerfox
I moved my web app from development (local machine) to production (web server) and the script I have that inserts to the database won't work. This is the script: <?php include ('includes/DbCon.php'); //Set directory etc for image upload $target_dir = "images/photo/";
1
1,291
thread by: uzphpcoder | last post Jun 25 '15 by: computerfox
This is my code. Could you correct? Thanks in advance <?php echo <<<_END <DOCTYPE html><html><head><meta charset="utf-8"></head> _END; require_once'login.php'; $connection=new mysqli($db_hostname, $db_username, $db_password, $db_database); if($connection->connect_error) die($connection->connect_error);
12
1,755
thread by: tdrsam | last post Jun 26 '15 by: computerfox
I have a from that brings a record from the database, including the image that is currently stored for that record. The user can then update the information for the record, but the problem is that when I pass the new image from the php page with the form to the script that processes the update of the database record, the image is not actually...
1
1,197
thread by: webbiesindia | last post Jun 28 '15 by: computerfox
I have a doubt regarding this script This is defined about a progress bar public function progressBarStatus($number) { return ($number == 0) ? lang('NOTSTARTED') : '<div class="progress-bar ui-progressbar ui-widget ui-widget-content"><div class="inner-orange ui-corner-left" style="width:' . $number . '%;">' . $number ....
2
1,352
thread by: henryssuuna | last post Jun 29 '15 by: weboutgateway
i want to browse an image into the web form such that it can be inserted into the database
1
1,373
thread by: gintare | last post Jun 29 '15 by: Rabbit
I am getting errors in preg_match: 1) "preg_match() expects parameter 4 to be long, string given". <?php $desc= "th793; D. A. Melnick; Zinc Oxide Photoconduction, an Oxygen Adsorption; J. Chem. Phys., 26, (1957), p1136; doi:10.1063/1.1743483; http://jcp.aip.org/resource/1/jcpsa6/v26/i5/p1136_s1 Donald A. Melnick ;;FROM RCONCL;;...
2
1,370
thread by: vijaytambade | last post Jul 1 '15 by: Dormilich
I want to sent my default session timeout time for a one year. For that i followed method 1 from article http://bytes.com/topic/php/insights/889606-setting-timeout-php-sessions But there they mentioned that destroy and restart the seesion. What i have to do if i want to keep alive my session for one year. Thank you in advance.
3
1,525
thread by: fruity | last post Jul 3 '15 by: computerfox
Here my code i retrieved the images like url from mysql but i want that image to show in mylist not url to show my list. <?php $st=mysqli_connect("localhost","root","","charity"); //$id=$_REQUEST; //$sql='select * from adminlogin'; //$res=$st->query($sql); //$sql='select distinct dept from stu1'; $result =...
1
1,352
thread by: DreamOn | last post Jul 7 '15 by: Bharat383
Hi guys. Need some help with some functions. I'm using a table that lists all the records in my db table but i did a search form and i have been told that for me to do what i want i would have to call one function while i search and one while i list all records. I will show the full code of the page where the two functions are: <?php...
2
1,684
thread by: friendeyz | last post Jul 7 '15 by: Bharat383
how to allow users have their own pages by filling out forms like page title, background color,image,logo e.t.c this will be like Facebook style page
2
1,560
thread by: deepaks85 | last post Jul 7 '15 by: deepaks85
Dear All, I want to have a php code to read an excel file exactly thee same as it has formatted (including border, colors, font size, column width, row height, merged rows and columns etc.). The idea is to whatever I make changes in excel it should reflect exactly the same in the browser. I searched a lot in google but not able to find any...
1
2,244
thread by: deepaks85 | last post Jul 8 '15 by: Dormilich
Hello Friends, I am using https://code.google.com/p/php-excel-reader/ as a library which helps me read an excel file. Now the problem is that I am having some text with strikethrough (horizontal line which cuts the text) in excel but it is not coming in the browser with Strikethrough text formatting. It's showing without strikethrough...
10
10,562
thread by: dinesh1985singh | last post Jul 9 '15 by: Owais Arain
hello everybody, I want to know the exact difference between exit and die function in php.I searched it out on google,but didn't find satisfactory answer.I found both are alias of each other,but I guess there must be some difference,so please help me out. Thanks...
6
1,518
thread by: DreamOn | last post Jul 11 '15 by: Luuk
Hi guys. Is there anyway so that when i upload a PDF file to the DB i store its content on a DB field? Thanks in advance ;)
1
1,275
thread by: lovejoynigel | last post Jul 11 '15 by: Luuk
hie guys am struggling here i have a web page with a form that consist of a text area and selection. the text area i use it for characters to search for, the selection option i used it for tables in my database. nw what i want is this when i type in cars for sale and select one table to search in, i want it to display results and also do paging...
5
1,534
thread by: teo46 | last post Jul 11 '15 by: Luuk
my code is : <?php $file = "http://img2.hdfilmsitesi.com.tr/wp-content/uploads/2015/01/Oz-Efsanesi.jpg"; $folder = "../thumbnails/asd.jpg"; copy($file,$folder) or die("failed to copy ... "); ?> i checked permissions(777).When i try $file= in my hosting its working.
2
1,330
thread by: havealot | last post Jul 11 '15 by: havealot
Hey my friends , I have a task which is to validate a form for contact_us page , which consist of email,subject and the message. my question is what validations do you think should I make ? by now I've made email validation for the email format, and maximum and minimum chars limit for the subject with only letters available , and for the...
1
1,455
thread by: havealot | last post Jul 11 '15 by: computerfox
I've made a form form (contact us) page , with 3 fields: it's cool for now but what happens is when someone submits the form (send an email), it sends the mail from the host email I uploaded my site on . what I want is to receive the message to my gmail accout: xxx@gmail.com, from the email that the user wrote it in the email field:...
0
1,136
thread by: tdrsam | last post Jul 13 '15 by: tdrsam
I was just reading about nonces and thought I could try to implement one on a website I have where the login could be protected a bit more. So, I found some generic code to generate a form key and added it to the site, but I'm not sure if it's doing anything. It gave a few errors until I cleaned up the code and now it runs the login like...
3
1,852
thread by: MozgafD1 | last post Jul 15 '15 by: Luuk
Hi, I am looking around this all day but cant find out a way. Basically I have a html page with Jquery function that send data to a php file to retrieve data from a database. Retrieving data to the html page works fine. What I am trying to do is run a comparison between the value that is fetched from database and a set limit. This...
1
1,494
thread by: ankit chopra | last post Jul 18 '15 by: Luuk
if the user details already exists in php my admin data base like user name and pass then submit a form a alert show user value already exists
1
1,486
Slaxer13
thread by: Slaxer13 | last post Jul 18 '15 by: Luuk
Hello ppl I am creating a website in dreamweaver CS6 with a mysql db connection. I have a page called registration.php and i want to know how when i click the register button the data in the fields is saved to the database. if anyone could help i would be much thankful. Cumps, Slaxer13

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.