473,609 Members | 2,296 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.
10
1,535
thread by: Ankit Diwan | last post Jan 5 '14 by: Ankit Diwan
<?php // Connects to your Database $con = mysqli_connect("localhost", "root", "mysql@777") or die(mysqli_error()); $db_selected = mysqli_select_db($con, 'mi_db'); if (!$db_selected) { die ('Can\'t use mi_db : ' . mysqli_error()); } $sql= "INSERT INTO Persons (FirstName,LastName,Age) VALUES('$_POST','$_POST','$_POST')";
4
4,839
thread by: mfredy92 | last post Jan 5 '14 by: mfredy92
Hello Everyone, I have written code to create Temporary Table using PHP script. Now, when I run the script, it seems to have created the temporary table. Now, my problem is when I try to do INSERT statement in PhpMyAdmin into the temporary table I create, I am getting an error message in phpMyAdmin which says table not found. The thing is I do...
1
1,342
thread by: jagadishk | last post Jan 4 '14 by: Luuk
hi this is my code for uploading images into data base which is woring fine, but i want to upload multiple images an any one help me. <?php include 'config.php'; error_reporting(E_ALL ^ E_NOTICE); if(isset($_POST)) { $target = "http://bytes.com/images/"; $target = $target . basename( $_FILES); $name = $_POST;
0
899
thread by: sidpanchal | last post Jan 4 '14 by: sidpanchal
Hello, my question is how can I use Localhost as https://localhost ? How to setup Openssl in Wamp server? Please help me
8
1,871
thread by: Ankit Diwan | last post Jan 2 '14 by: Ankit Diwan
While inserting data from a form into a database i am getting error in the below code only. The error displayed is :( ! ) Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting ']' $sql= "INSERT INTO Persons (FirstName,LastName,Age) VALUES('$_POST','$_POST','$_POST')"; if (!mysqli_query($con,$sql)) { ...
2
1,160
abdoelmasry
thread by: abdoelmasry | last post Jan 1 '14 by: abdoelmasry
What is the wrong with this code ? it always returns zero matches. I think it should return two matches, I need to read how may tags like this pattern <!== any thing ==!>
9
6,176
thread by: Sanitprof | last post Dec 31 '13 by: Luuk
hi there, how to upload an excel file and its data to be stored into database(phpmyadmin) using php. thanks.
5
1,064
KeredDrahcir
thread by: KeredDrahcir | last post Dec 31 '13 by: Rabbit
I'm creating an application that allow the user to draw out a floor plan. It gives them a 12 x 8 grid and lets them click up to 50 sqaures. It stops them when they get to 50 but they can click on an already selected sqaure to turn it blank and then choose another. What I need to be able to do is check the plan. They can't have any gaps in it....
3
1,244
thread by: Nazareth Nz | last post Dec 31 '13 by: zmbd
HELP ME! I want to make sure that I can connect to the database server online from my PC (Remote MySql) .. what I did was: - Set enabled to RemoteMySql at the hosting - Use IP, Username, password of the database - I set grant for all execution in hosting for the user (me) And, this is the code: <?php
2
1,142
thread by: kolly | last post Dec 30 '13 by: kolly
i have 2 forms and i want the details of the first form to link to the second form once user fill the form.
5
8,606
thread by: impin | last post Dec 28 '13 by: Luuk
i need to send a resume as attachment to a particular mail id... its my form. <form method="POST" name="email" action="sendmail.php" enctype="multipart/form-data" onsubmit="return validateForm()";> <table border=0 cellPadding=5 cellSpacing=10 width=100%> <tr> <td><label for='name'>Name:</label></td> ...
1
1,577
thread by: Rachel1234 | last post Dec 27 '13 by: Rabbit
what is the php code for display selected dob value from drop down list - day and month <form action="http://bytes.com/registerProfile.php" method="post"> <fieldset> <legend>Enter your information in the form below:</legend> <p> <b>Userid:</b> <input type="text" name="userid" size="10" maxlength="80" value="" /> </p> <p>...
2
1,569
Claus Mygind
thread by: Claus Mygind | last post Dec 24 '13 by: Dormilich
I'm trying to get the last auto increment value inserted into a table. I am using MySQL v.5 with php v5.3. The table engine is MyISAM. The manual states this is what should be done SELECT LAST_INSERT_ID(); What I get returned is this
0
1,161
thread by: ROXIT | last post Dec 23 '13 by: ROXIT
Here i am collecting the category and area value from the search-form using get method. So as i m having 7 records into the database and i want to display only 4 records per page and when user clicks on Next button then the remaining records need to get displayed but here my code is displaying only first four records from the database but when i...
1
2,032
thread by: mukim | last post Dec 22 '13 by: Luuk
well i wanted to change the url of the forum.. i can get the url like this using php and mysql: http://www.xyz.com/forum/topic.php?id=2&title=this-is-a-topic&page=11 i wanna change the above url to look like this: http://www.xyz.com/forum/2/this-is-a-topic/11/ how can i achieve this??
1
1,224
thread by: rugwiza | last post Dec 20 '13 by: Dormilich
Hello, I am running a vm centos 6.2 with cpanel. recently,I migrated an application written in php,from a physical machine,but I encountered a problem: -Some data were displayed in pie graphic, but now data are nolonger displaying. I tried to install php-gd, nothing changed. I also uncommented the extension=php_gd2.dll in php.ini, nothing...
0
1,215
thread by: bartedecout | last post Dec 20 '13 by: bartedecout
How can I close the suggestion box when the user click the Clear button? When the suggestion box is closed, how can the Search & Clear button move up to its original place? What code should I insert to do this? This is my current code: <html>
1
1,323
thread by: tlou22 | last post Dec 18 '13 by: Dormilich
hello google chrome can run this part of srcipt fine but IE and FF cant run it.Please Help $query= "UPDATE temp_members_db SET dNum=dNum +1 WHERE area ='".$area."' AND Type= '".$Type."' AND confirm_code = '".$passkey."'"; $result2=mysql_query($query);
1
1,165
thread by: tlou22 | last post Dec 17 '13 by: Rabbit
Hello how can i insert my data in the database.if i have unkown number of emails stored in a table and want to send them to the temp_members table.. $sql="INSERT INTO temp_members". "(email,Province,area)". "VALUES('$email','$province','$area'')"; Thank you
2
1,252
thread by: tlou22 | last post Dec 17 '13 by: manigandanta
Hello trying to make a loop that can insert into database. every time user clicks on submit and if in the database dNum is 1 it loop and upgrade dNum which will make it 2.. $sql="INSERT INTO temp_members_db". "(dNum)". "VALUES('$dNum')";
0
1,076
dhwDoug
thread by: dhwDoug | last post Dec 16 '13 by: dhwDoug
I am not a complete noob, but won't claim much beyond that. I have had a script running for over a year that queries a database for member companies within a selectable range of categories. The range can vary from 1 to N and the categories are selected from dropdown lists. The value of $query is a plain text ASCII string with no embedded...
0
990
thread by: riteshyupadhyay | last post Dec 16 '13 by: riteshyupadhyay
Yii with 503 error handle? my site has execute one bye one curl call for different api call but some time my site gives 503 how can i handle this please guide me thanks in advance
3
1,264
thread by: charisma | last post Dec 16 '13 by: Dormilich
I found a form that I would like to use. But all so like to add more fields. As it is now. When I click on send. it doesn't work. Can someone help me please. This is what I have now. Sorry, my mistake. This is the .php file. The submit button doesn't work.
1
1,019
Claus Mygind
thread by: Claus Mygind | last post Dec 13 '13 by: Claus Mygind
I am having some difficulty using an array in my class let's say $_REQUEST = array('foo'=>' ABC '} I am using: php 5.3 on a windows xP platform running an Apache server v 2.xx in a FireFox v 25.01 browser use firephp, I can see that $p has been populated with the array before I try to access it.
1
1,107
thread by: satyasingh1984 | last post Dec 13 '13 by: Luuk
what is web services how to create and use please explain.

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.