39,320 Topics
| |
<body> <p> <?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("select", $con); $result = mysql_query("SELECT * FROM view"); ?> </p> <form id="form1" name="form1" method="post" action=""> <table width="100%" border="1" cellspacing="0" cellpadding="0"> <?php while($row = mysql_fetch_array($result))?> <?php { ?> <tr bgcolor="#F5F5F5"> <td > <?php echo $val['name']; … | |
[color="#4169E1"][size="3"][font="Georgia"][b] hope all will be fine... i want to print a page by using php.... but not getting any solution... plz help me... table width=800px and height=700px .... when i use the java script print function {window.print()} it print the whole page..... including the URL text(i-e: [url]http://localhost/ebooks/print_page.php[/url])... but i want … | |
Hi, I have this image script and I want to upload the image and then save the file into a Database, but I keep on getting errors(a blank screen). Here's my code: [CODE] if(isset($_FILES['logo'])) { if(($_FILES['logo']['type'] == "image/jpg") || (($_FILES['logo']['type'] == 'jpeg') && (($_FILES['logo']['size'] < 524288)))) { $logoname = $_FILES['logo']['name']; … | |
Please help me I want to write url like [url]http://mysite.com/cpanel/manager/subadmin/view_event.php?e_id=137[/url] to [url]http://myurl.mysite.com[/url] in PHP myurl comes from database on behalf of e_id. If user enters [url]http://myurl.mysite.com[/url], on behalf of "myurl",e_id retrived from database and append to this url [url]http://mysite.com/cpanel/manager/subadmin/view_event.php?e_id=137[/url] My mail id is -<<Email Snipped>> Thanks in Advance | |
Hello friends, I need your ideas on my new project in word press. How should i approach that. what i want to achieve is that Client will have library of word press themes called wps themes on his server. I need to create a plugin which when install 1)- The … | |
I am having a problem sending my form to MySQL on my application page (when you click GameTime! it should send the data to a MySQL table.)- [url]http://www.facebook.com/apps/applicatio[/url] … 6347603790 It sends the form data here: [url]http://bit.ly/91oi88[/url] however, it just won't seem to work in facebook. Obviously there is something … | |
i'm planning to put an image before the name of the file. how to do that? for example i have IMAGE1.jpg filename i want to put an JPG image before the filename. | |
Im sure this has been posted a billion times, but ive followed steps on other threads and still no look. What im wanting to do is to be able to delete a record from a form that is echoed..get me? Heres the steps: - Post update news, insterts it into … | |
I have a question that I can't seem to find a satisfactory answer to by searching the site, and I'm not entirely sure I am searching with the correct keywords. Anyway, here goes. I am working on a free membership script, and would like to use the members username as … | |
can anyone help me out with these errors i'm getting please? and if they can explain why im getting them and how i can avoid them in future thanks :) Notice: Undefined index: prod_name in C:\wamp\www\uniwork\update_database.php on line 17 Notice: Undefined index: prod_price in C:\wamp\www\uniwork\update_database.php on line 24 Notice: Undefined … | |
There's a query where I want to get the: - Username of the user attached to the current opportunity record - Sales Stage associated with each opportunity record - Dollar amount associated with opportunity record I want to: - Take the current SELECT IF STATEMENT result, and collapse it based … | |
Good Afternoon, I am looking to create a page where I can enter data into a form and use INSERT to enter into the database. In the code example below, I have shown only 3 fields, but my page will have 13 fields and I want to designate 8 of … | |
hi all, i have system for buy tickets now when i buy 1 ticket is printer good but when i printer more then 1 tickets every time i printer give's more space down the first page with be perfect and the next page it moves little down and therd page … | |
When trying to return all results from my table using odbc_result_all i find that it will print all the results except the last one. I'm not sure why its doing this or if an Access database takes a while for the results to be updated when queried? Can anyone help? | |
Hello All, I think this is server issue, but i thought there are more friends here to help me out. I have website hosted on fasthost dedicated server of 250GB. Now server is out of space.I have to increase server capacity to get website running. I have one another fasthost … | |
Hi there, I used code to fetch email address record from table abc on server but shows " Access denied for user 'mysqluser'@'serverip' (using password: YES) " [code] /********code ********/ <?php include "connection.php"; $tableName = 'abc'; $todayDate=date("m-d-Y H:i"); $backupFile = '../backup/abc_'.$todayDate.'.csv'; $query = "SELECT email_address INTO OUTFILE ".$backupFile." FIELDS TERMINATED … | |
I am trying to create a form that will allow a user to update data in a mysql database. I want to call up the record being updated by the use of a select-option list at the top of the form. I have the code necessary to bring up the … | |
I'm setting up a SOAP service using the PHP SOAP server and client library. I've coded some structured data types into my wsdl file with some heavy restrictions. Do you know of functionality in the PHP SOAP library or of a 3rd party library which will check the actual parameters … | |
Hi, I am new in SOAP webservice. I dont know how to use webserives in php. I need to develope for mobile application using SOAP. I run some sample code in my local server using SOAP file. I am getting WSDL format file. What is the use of WSDL. I … | |
I seem to get this error message when I run this please can someone help? Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\wamp\www\unisite\products.php on line 11 I can't figure this out at all :( [CODE]<?php if(isset($_GET['action']) && $_GET['action'] == "add"){ $id = intval($_GET['id']); if(isset($_SESSION['cart'][$id])){ $_SESSION['cart'][$id]['quantity']++; } … | |
[code]foreach ($items as $product ) { echo $product; ?><input type="text" size="2" value="<?php \\display quantity here ?>" name="quantity" /><?php }[/code] $items is an array. It has multiple values, some duplicate. How do i count the duplicate values in the array and display in this foreach loop? i know array_count_values($product) but putting … | |
hi all, i need to split a string and place it in two strings..like $f1=123 4567 is a string. i need to place 123 in $f2 and 4567 in $f3 how to do that can any one help me | |
hi am new in php, i have values like A,B,C,D in database all in one box. i made a dropdown for its search A B C D , i want if somebody select A or B and search it fetch the whole row from database. or in other words i … | |
How would I check to see if html purifier is running correctly on our server? We are using the following [CODE]<?php $doctypes = array( 1 => 'XHTML 1.0 Transitional', 2 => 'XHTML 1.0 Strict', 3 => 'HTML 4.01 Transitional', 4 => 'HTML 4.01 Strict' ); $tidylevels = array( 1 => … | |
| Hello people. I was reading severals scripts, and I saw, all the time, that they used %s... What is the application of that ??? Becuase I'm searching about that and I don't find anything about it ! I know that it's about injection codes... Can anyone give me a web … |
Hi buddy, I have small script which upload the images. This script is working perfectly fine in localhost but when I upload that script to my website then it is not uploading the pictures. I have subdomain in my website names as [url]http://projects.abc.com[/url], In projects folder I have my photo … | |
Hi, I've been trying to get my head around timezones and how to allow users to set their zone and update the times accordingly. Basically, I have a unix timestamp in the database and i want to be able to update it to a users timezone which is also set … | |
Hi, im a new user to php,problem is : i want to edit/modify the data from the form to the database.kindly make certain changes to it so that the record can be modified.Attached php code is paste below:- <?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . … | |
Hello friends, I need your ideas on my new project in word press. How should i approach that. what i want to achieve is that Client will have library of word press themes called wps themes on his server. I need to create a plugin which when install 1)- The … | |
Hi guys, I am new in web development how should i start developing web site in PHP??? |
The End.