39,402 Topics
![]() | |
I am building a website that uses php5 and mysql database. I want to upload images alongside other information. To get other information into the table of the database, this I can do very well, but to upload and display the images alongside other information(which may be done online by … | |
hi guys m new to this forum .......... i have emp_company table having field ecode, ecardno etc and another table is at0310 the fields of this table are ecardno, date , time, IO, serialno , cardrd and ecode the data inserted into at0310 table from text file except ecode......... i … | |
I got everything going regarding PHP widgets and successfully fetched my DB. [CODE]<?php $con = mysql_connect("mywebsite.com","DB","password"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("pages", $con); $result = mysql_query("SELECT ebayid, reason, DATE_FORMAT(date, '%M %d, %Y') FROM `blacklist` ORDER BY `ebayid` ASC"); echo "<table border='0'> <tr> <th>EBay ID</th> <th>Reason</th> … | |
hi friends, This is my code but it not working properly.pls tell the solution [code] <?php mysql_connect("localhost","root",""); mysql_select_db("samples"); ?> <!doctype html public "-//w3c//dtd html 3.2//en"> <html> <head> <title></title> <SCRIPT language=JavaScript> function reload(form) { var val=form.cat.options[form.cat.options.selectedIndex].value; self.location='drop3.php?cat=' + val ; } function reload3(form) { var val=form.cat.options[form.cat.options.selectedIndex].value; var val2=form.subcat.options[form.subcat.options.selectedIndex].value; self.location='drop3.php?cat1=' + val … | |
Hi, I have a very weird problem sending the below script. The email gets sent successfully but when you get the email, there will be only few lines only....rest of them doesn't get printed in email but if you echo it on screen, it appears all perfect. See attachment for … | |
hi writh ......... thanx for last responses....... i need your help agian plz help me out i have two tables emp_company and at0310 in at0310 having fields: ecardno,atdate,time,IO,serialno,cardrd and ecode. into my text file ecardno,atdate,time,IO,serialno,cardrd record available but ecode not comes from there in my emp_compnay i have filed like … | |
[CODE]Warning: fsockopen() [function.fsockopen]: unable to connect to localhost:25 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ) in C:\wamp\www\murali\includes\class.smtp.php on line 83[/CODE] i am getting this error. when i am … | |
Hi all ... During a session a user causes information to be added to a temporary database table. At the end of the session, the information has to be removed. How can I tell when a session has ended so that I can clear the rows from the table that … | |
Hi All, I can't understand why I am getting The following error message: check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 I've poured through my code and I can't find a solution to the issue. Any suggestions … | |
I have a great download script I have been using from: [url]http://www.zubrag.com/scripts/download.php[/url]. It uses the following headers: [code=php] header("Pragma: public"); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Cache-Control: public"); header("Content-Description: File Transfer"); header("Content-Type: $mtype"); header("Content-Disposition: attachment; filename=\"$asfname\""); header("Content-Transfer-Encoding: binary"); header("Content-Length: " . $fsize); [/code] My goal is to call this php … | |
i having some serious problems in getting the information out of a query. i have put up sufficient flags to know if the database is containing any information and to determine which path the code is taking. however i just cant get the information out here is the code [CODE]if … | |
Hi, The data is stored in the database as HTML code . So this text : [B][U]employee”s[/U][/B] Is stored like this [B][U]employee& #8217;s [/U][/B] The problem comes when I use the search function,because it compares this value [B][U]employee”s[/U][/B] to the database's contents,instead of comparing [B][U]employee& #8217;s [/U][/B] to the database's … | |
Hey guys im having a little problem with this project im working on basically im making a desktop image uploader for this site [url]http://www.noelshack.com/api.php[/url] i have tried hacking around with some example code but cant get anything working i cant even check if the images are uploaded correctly because when … | |
I am trying to send mail with attachment after using browse button. in this process some error shows [CODE]Warning: move_uploaded_file() [function.move-uploaded-file]: open_basedir restriction in effect. File(/tmp/php_upload/phpLc37tw) is not within the allowed path(s): [/CODE] thsese are code for my mail file [CODE]$filename=$_FILES["strresume"]["name"]; $filetype=$_FILES["strresume"]["type"]; $filesize=$_FILES["strresume"]["size"]; $filetemp=$_FILES["strresume"]["tmp_name"]; $fp = fopen($filetemp, "rb"); $file = … | |
Hello, I created a dynamic list in Dreamweaver CE4. It pulls info from my database just fine. Prblem is when I click to edit one of the entries the next page (the form page it creates on its own) is blank. I have searched the help files but cant find … | |
hi guys, just wanna ask how could i pass the value of a certain variable coming from one frame into another frame having that the frames are both present in one webpage only?? thanks thanks..^_^ | |
Hie guys does anyone know something about dotProject. l am trying to modify code in completed.php to display en extra column which is Project Name in a pdf file | |
Hi, I want to submit the form when click on url without page refresh. I create url by using some mysql DB values url like:- index.php?pid=2&mid=25 index.php?pid=4&mid=34 when click on url pass the values to another variables But with out page reload. How to do this? Any sample link? | |
Hi there. I'm very very new to php. :o so i hope i'm posting in the right forum. and i really can't figure this out. probably really simple but i need to place a url into: while ($row = mysql_fetch_array($result)) { echo $row['login']; echo " " . $row['age'] . "<br>"; everytime … | |
Hi, I want to validate the user id that was entered in a textbox (similar to while registering to a site, we come across something like "this username already existed please choose different") without refreshing the page (or i can say in textbox onchange event) can someone guide me how … | |
hey is there any way i can dynamicallay pupulate 3 drop downs ie when based on d selection of a value from 1st drop down populate 2nd drop down and based on value selected in 2nd srop down populate 3rd drop down,but i wan this to happen in my edit … | |
for some reason i am getting an error with my query statements here is my code [CODE]if ($_GET['mode'] == 'edit') { $c=$_GET['coursecode']; echo"$c"; // editing an existing entity // check for value of id if (!$_GET['coursecode']) { echo "error: no coursecode specified, <a href=\"{$_SERVER['PHP_SELF']}\">click here to continue</a>"; exit; } if … | |
hi guys, just wanna ask is there a good software which can help me plot data or draw a line graph in php? these data are dynamic, and will come from the database..just a simple line graph will do. thanks thanks. | |
Hi friends, In my project I'm using multiple tables to sotr the details.There is one main table and in the i'm storing the contact details of the family.And according to the number of members in the family I'm saving the member names and ages in different table.Now what I need … | |
Hello, I'm trying to let users know how many times there personal page is viewed. Here is some code. [CODE] $colname_Recordset1 = "-1"; if (isset($_GET['user_name'])) { $colname_Recordset1 = $_GET['user_name']; } mysql_query("UPDATE content SET counter = counter + 1 WHERE user_name = $colname_Recordset1");[/CODE] It works if I remove the WHERE clause … | |
I will like to change a url from [CODE]http://www.mysite.com/doc1/doc2/index.php?name=username[/CODE] to [CODE]http://www.mysite.com/user[/CODE] I have tried using htaccess [CODE] Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^mysite.com [NC] RewriteRule ^(.*)$ http://www.mysite.com/$1 [L,R=301] RewriteRule ^/[_a-z0-9-]+(\.[_a-z0-9-]+)$/doc1/doc2/ index.php?name=$1 [/CODE] But i seem stuck. Any help will be appreciated. been on google for about 7 hours | |
Hi anybody has scripts for detecting users' country based on ip? | |
This is how my session reads: [CODE] Array ( [pstloggedin] => blah [userID] => blah [email] => blah [fname] => blah [lname] => blah [phone] => blah [cart] => Array ( [0] => Array ( [team] => 2137 [tournament] => 24577 [gatefee] => yes [cost] => 800 [sdate] => 2010-06-03 … | |
Hi, How can I setup a simple paypal buy now button for suscribing paypal payment. i.e not making just one time payment but to suscribe the user for monthly payment? What variables I need to setup? How can I setup a transaction so that it becomes successfull only if postal … | |
hi all I get this error when i try to restore my wordpress files from myphpadmin. You attempted to load file with unsupported compression (application/zip). Either support for it is not implemented or disabled by your configuration. | |
Hello Friends Can anyone tell me where to find php.ini in my cpanel? Thanks | |
We are in the process of developing a new website using Joomla and VirtueMart. It is an ecommerce website. When we think of uploading all the products as a csv, it does not allow to do it. It says we need to buy a licence for this. Is there any … | |
Shall i know if there is implementation of gridview in php as it is in .net please help me ![]() | |
Hie guys l am using dotProject and need to add a project name column in the completed report before the task column. | |
In php mail() function, how can I send attachments? I didn't find parameter to do this. any help will be appreciated. | |
hi all i just have this error when i import my backup database : You attempted to load file with unsupported compression (application/zip). Either support for it is not implemented or disabled by your configuration. one week later i export my database as zip file by phpMyadmin but when i … | |
hi,im having a problem with my code.im trying to edit data that im retrieving from my database tables.but im unable to submit the data after editing it.my code is shown below [code=php] <?php require_once "../inc/functions.php"; require_once "../inc/vars.inc.php"; sessionCheck(); session_start(); $old_sessionid = session_id(); //i've added these lines session_regenerate_id(); //i've added these … | |
Hi All, Im having some trouble with creating PDF's. I have researched and found a boat load of scripts, but non work as I dont have a library installed. That is my question.... How do you install a pdf library? I have tried PDFLib but when i run a script … | |
Hi guys, I have created a php file, which will takes a filename as input parameter, It will just check the extension of that filename and displays the file to the browser using phpscript. for this I used [code=php] header('Content-Disposition: inline; filename='.$filename); [/code] Everything working fine for me, but I … | |
help me to set value in drop down .I want to fetch two ids 1.$row[0]. 2.$row[3] from a view and selected is not set. [CODE]<td colspan='2'><b>Select a Publication and Year</b><br> <select name="publication_name" id="publication_name" onchange="show_year(this.value);"> <?php $get_publn_name=mysql_query("SELECT anPublicationId,sPublicationName,sPublicationShortName,anYearId,nPublicationYear FROM view_publication_year order by nPublicationYear"); ?> <option value=0>-- Select Publication --</option> <?php while($row=mysql_fetch_row($get_publn_name)) … | |
hi,i thought i'd fixed this prb,but i have'nt.i have a edit form with a drop down.i want the drop down to show the value that is saved in the databse along with the other values.ie,when i click the edit form,the value in the drop down that is visible should be … | |
Hell everyone, I have a problem with joomla urls which i am trying to make user friendly. so far with mod rewrite i have managed to come up with a url like this; [url]http://www.edulinksuganda.com/component/option,com_artband/task,details/id,59184/Itemid,75/idd,19/[/url]. but i want it to be something like: [url]http://www.edulinksuganda.com/componentname/schools/schoolname[/url]. Please help me rectify this problem. i … | |
hello everyone i m inserting data from text file into database. .......but the data into the text file is not inserted into database only blank record display in the database.......... my text file is like this: james flower 22 may be i m not giving space delimiter correct... plz help … | |
Hi Guys , I m developing one website for my LAN and working on Linux. I m getting Following Errors after loading or refreshing my page:: [B][Tue Feb 23 16:58:51 2010] [error] [client 192.168.2.147] PHP Notice: Undefined index: parent_url in /var/www/html/pastebin/layout.php on line 320, referer: [url]http://pastebin.geodesic.net/2[/url] [Tue Feb 23 16:58:51 … | |
Every page in the system is grabbed into index.php. For each page i'd like the title to change according to the page it's on, this can be set manually within each page we want to send. My question is what would be the most effective method of updating the title … | |
i want to post on my blogger blog, using php, i tried to read google api but couldn't understand it. this site helps a little but still is confusing [url]http://www.lordtime.com/blog/2007/05/03/how-to-post-remotely-to-bloggercom-working-php-example/[/url] can someone write a simple function for php? | |
i am having some problems using the get function. i aim using it in a href location. while the information is displayed in the url i am just having some problems extracting the required information. here is my code below this is the code for my href location [CODE]echo"<tr><td>$row[0]</td><td>$row[1]</td><td><a href='myform.php?,mode=edit;coursecode=$row[0]'>edit</a></td</tr>";[/CODE] … | |
Hi i am just wandering if anyone knows how to put a trail login to a php mysql driven website. for example when you find a website usually providing a service, it requires payment to sign up to use. How would you allow users to sign up for say 30days. … ![]() | |
Hey, I've come to a bit of a problem - I'm updating a website for users to upload their own games, animations ("toons") and artwork. The trouble is, I've made separate tables for each one, each with very similar structure What I want to do is show, say, the first … |
The End.