39,320 Topics

Member Avatar for
Member Avatar for khushhappy

<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']; …

Member Avatar for khushhappy
0
99
Member Avatar for hamayun_4u2004

[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 …

Member Avatar for paulrajj
0
106
Member Avatar for SunnySideUp

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']; …

Member Avatar for SunnySideUp
0
145
Member Avatar for shrikantdhyani

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

Member Avatar for monica singh
0
93
Member Avatar for navi17

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 …

Member Avatar for navi17
0
105
Member Avatar for adand

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 …

0
138
Member Avatar for ryan311

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.

Member Avatar for ryan311
0
87
Member Avatar for Craig2231

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 …

Member Avatar for hielo
0
116
Member Avatar for showman13

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 …

Member Avatar for showman13
0
187
Member Avatar for jamesyrawr

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 …

Member Avatar for jkon
0
165
Member Avatar for emillion82

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 …

Member Avatar for smantscheff
0
143
Member Avatar for ceeandcee

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 …

Member Avatar for epicrevolt
0
142
Member Avatar for WaleedaaN

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 …

0
33
Member Avatar for stonest123

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?

Member Avatar for stonest123
0
126
Member Avatar for vibhaJ

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 …

Member Avatar for nonshatter
0
84
Member Avatar for gptArun

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 …

Member Avatar for gptArun
0
405
Member Avatar for abstrand

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 …

0
83
Member Avatar for smantscheff

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 …

0
85
Member Avatar for swilliamrobert

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 …

0
74
Member Avatar for jamesyrawr

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']++; } …

Member Avatar for cwarn23
0
228
Member Avatar for MDanz

[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 …

Member Avatar for cwarn23
0
258
Member Avatar for niths

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

Member Avatar for cwarn23
1
108
Member Avatar for Sahilsahni

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 …

Member Avatar for jogesh_p
0
575
Member Avatar for valonesal

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 => …

0
52
Member Avatar for P0lT10n

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 …

Member Avatar for mschroeder
0
135
Member Avatar for Jeyush

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 …

Member Avatar for jamal_jarrar
0
164
Member Avatar for ryan-t

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 …

Member Avatar for ryan-t
0
129
Member Avatar for khushhappy

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: ' . …

Member Avatar for khushhappy
0
133
Member Avatar for navi17

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 …

0
99
Member Avatar for Naveed_786

Hi guys, I am new in web development how should i start developing web site in PHP???

Member Avatar for chrishea
0
110

The End.