39,402 Topics
![]() | |
there is a prob in my program pls help.. [CODE] <?php print "<table border=\"1\">\n"; for ( $y=1;$y<=10;$y++) { print "<tr>\n"; for($x=1;$x<=10;$x++) { print "\t<td>"; print ($y/$x); print "<\td>\n"; } print "</td>\n"; } print "</table>"; ?> [/CODE] the output should be... 1 2 3 4 5 6 7 8 9 10 … | |
[CODE=php]<html> <head><title>Write a New Article</title></head> <body> <?php session_start(); $connect=mysql_connect("localhost", "worldofp_mussy", "mustafa"); mysql_select_db("worldofp_blog1") or die(mysql_error()); $get="SELECT user_id, user_name FROM user WHERE user_name = '" . $_SESSION['username'] . "' ORDER BY user_id"; $results=mysql_query($get) or die(mysql_error()); $row=mysql_fetch_array($results); $insert="INSERT INTO article( article_name, article_content, user) [B]VALUES ( '<h4>" . $_POST['articlename'] . "</h4>', '<pre>". $_POST['articlecontent'] ."</pre>', … | |
Hi all, I have just put together a simple log in script from various tutorials on the web and at the moment it is only checking the username entered by the user against what is in my database. I cant find any infromation about any kind of AND function or … | |
hi how to create dynamic menus for web pages in PHP. | |
Hi, Can anyone tell me what is mean by core php.What is the difference between core php. Please help me Thanks Punitha pary | |
![]() | Searching for a solution to my problem I found this forum. Hope someone here can help. Instead of manually updating a table by using copy/paste from a web page, I would like to read the page directly from php. Pasing the contents would be a breeze, but I have no … ![]() |
Hey Guys, I am working on a PHP platform where I have to build reports that show graphs that take values from MySQL Queries. For this purpose I am refering google chart libraries. In that I have to pass data to a hyperlink but as the data in my case … | |
Hi, I have been trying to create a searchable database and have the following code for my form and the action code. When the form is changed/submitted ll I get is an error "Query was empty" Can anyone offer any help?? [code]SEARCH By Last Name (Letter)<form NAME="navsel" action="sel_byLetter.php" method="get"> <select … | |
hi frnds. this is something which may seem foolish to ask, but i have been beating my head against the wall at the frustration of not being able to get over this... anyways, what i want to do is to select some data from a single MySQl table, using a … | |
hey frnds... i am develpoing a program using PHP/MySQL. Here, i have a form which consists of a few text fields etc etc. It also contains a drop down menu. In the backend, i have a number of databases. The user input (drop down menu) will decide which database is … | |
right, well i'm just recently learning php. i've installed WAMP and it seems to be working for all i know, but when i go onto the localhost or whatever and click onto my saved file in my project folder it always tells me that i have to download it. i … | |
Hi all, i have a php form that i use on websites for their contact forms. it uses basic php mail send. i have just received a couple of emails that were sent using the form, but i feel didnt get sent via the website. i.e. i think that they … | |
Hi, can anyone help me debug this piece of code please, any help will be much appreciated! Its the body of a message im sending with mail() function.. Thanks, Chris Getting this error in FireBug.. Parse error: syntax error, unexpected '.' in /var/www/virtual/capetownalive.co.za/htdocs/bookings/scripts/xmlHttpRequest.php on line 28 [code] $message = 'Cape … | |
Hi all, I want the the tag , to retrieve the values from the database......... Thanks | |
Hello I have a csv file which I am parsing into XML with this code : [code] <?php /** * Converts a CSV file to a simple XML file * * @param string $file * @param string $container * @param string $rows * @return string */ error_reporting(E_ALL ^ E_NOTICE); ini_set("display_errors", … | |
Hi this is Scorpionz Reason of this thread: I have created a small record sheet in which, I created 3 fields namely ('name, store_date, store_time') and handling this through PHP like i insert name in the field and press button it then saves (Present time as stated in machine and … | |
Parse error: syntax error, unexpected T_STRING in /www/110mb.com/m/u/s/h/i/2/1/9/mushi2195/htdocs/includes/languages/english/index.php on line 15 [Code]<?php /* $Id: $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2007 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', 'WELCOME TO M M TECH. <b>Our aim to provide cheap products at the best prices.</b>. <br><br><table … | |
I am new to using php for querying exchange server. I downloaded the class_http.php and class_xml.php. I am trying to run the example "Grab all properties for an item " given at http://www.troywolf.com/articles/php/exchange_webdav_examples.php#allprops . I have modified the following variables in the example php script (exch3.php): $exchange_server = "http://mail.msm.edu"; $exchange_username … | |
hi i have a search page where it displays the search result in the next page.i have used paging concept to display the result.when the user clicks back link after viewing a record,it should redirect him to the page where i have the results in paging thanks | |
I want to expire login details after some days.. Can any one help me any short code to this thread in php... I have the registered date of particular member in my database.. Thanks. | |
Hi all, i am getting `Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\demo\help.php on line 23` this error. how to overcome by this problem, <?php include 'database.php'; $email = $_POST; $firstname = $_POST ; $lastname = $_POST ; $tphone = $_POST.$_POST.$_POST ; $message = $_POST; … | |
our group made a decision to do a dynamic website, and the best tool for this is PHP! But this is too risky...why? because none of us has any background on it!!! can anyone recommend a site that can teach me how to use PHP...any help would be appreciated..tnx | |
Hello all.. Plz look at my thread... I have a date field in my data base table.. And i want to increment that date coming from database table.. Can any one help me please... Thanks... Shanti. | |
I'm uploading files via php script straight to a folder called 'uploads' on my mysql server. I can list all the files uploaded. My problem is listing only selected files from this folder for each user that login. i.e. user A logs in with username 'theboss' The user will be … | |
Hi, if user is not the registered user first he has to register and then login, my login page is working but i want to validate whether he is an registered user or not. i had written some code but its giving some problem , can any one help me … | |
hey guys. this may be very trivial, but i cant figure out a way... i want to retrieve the data entered by the user through a drop-down-menu using POST method. I am unable to do so... kindly suggest P.S. I am how to retrieve text-field data from a form, but … | |
Hi, I am using TikiWiki and There is a major exploit in the blog code which first of all I am not sure which file it is located in and second of all I don't know how to stop it. Blogs in Tiki Wiki will let people run scripts also … | |
I'm redeploying my webserver. As of right now my IIS is shut off, and I am in limbo between installing it or going with apache server. My main concerns are ease of use and security, and I'm not sure which is the better choice. Looking for recommendations, so which is … | |
hi all, i have a small doubt if a project is done in javaserverpages and a part of that project is done in php if i logged in jsp we should also log in php part which is included. is his possible using sessions? my seniour is trying this out … | |
Hi there I'd like to know if this is at all possible...I'm sure it is but I haven't been able to find a single function that would do this in php.net's manual. The only function I've found is the copy() function but that only copies a single file or folder. … | |
Hello This is Rakesh Nagekar, i faced a problem in PHP when we create a shopping cart and click on Add to cart button i require the explanation and code for view cart . Thanks in advance | |
Hi everyone, I have my website in PHP.I want to add in Whois Search. can someone please guide me thro? Thanks.Have a nice day.:icon_smile: | |
hi... I am developing an application using PHP/MySQL. here, i have one page(say P1), which contains a form(just one drop down menu, say D1, with only 2 options , say O1 and O2)... the target of P1 is another page, say P2. Now, P2 is also a form, and contains … | |
I'm trying to upload a file to my PHP form on my website. I have no idea how to go about this. I'm sure I need to break down the file into a transferable form, I'm not sure where to go about this. Then I need to send an HTTP … | |
hi, iam working in php for 4 months iam still trainee iwant to study a sample project so,that i can improve my knowledge i really fed up with tutorials. can anyone please help me in finding sample projects thanx | |
Hi, How do you retain values entered in the textbox after submitting? javascripts or any other methods? Thanks alot. Regards, heels | |
how to to "ondelete cascade" command with the phpmy admin? I know how to link the relation between different tables and primary key and foreign keys in the tables but unsure how to put constraints such as "on update cascade" with phpmyadmin...... is it needs to be done just by … | |
Hi everyone Does anyone know of a script that allows multiple file upload while only having one file input on the screen? I think gmail does this. The user browses for an attachment and then clicks ok, the file is uploaded immediately and then the user can upload another file … | |
Hello, I am trying to add a total of some items in a while. My while produces list with names and with times that that person has worked. Like this: [code] John 8:00 John 5:00 John 6:00 <<here the total of john>> Lars 9:00 Lars 4:00 <<here the total of … | |
Hi all Just curious to know if this(thread heading) is at all possible. Haven't been able to find anything on the net so far. | |
Hi all, I just need to delete .jpg form the end of a variable stored like this: $name = $_POST["name"]; Thanks :D Max ps echo stristr($name, '.', true); // As of PHP 5.3.0, outputs *content of string BEFORE the first full stop* dosnt work. im guessing its because my php … | |
hi there....I'm a trainee student who is new to the world to the world of programming.I would like to do a lab time table scheduling system.i have about 100 records where i have to generate list of students according to labs available that equals to the number of computers available … | |
[B][COLOR="Green"]I'm developing a WAP site using wml and PHP. i want to display some images from database (mysql). The problem is , how can i display more than one image in a single wml page ? Is it possible to implement "Image Scrolling " using PHP ? please help me … | |
Hi. Want to create web service on my local computer, that converts a given date of Gregorian calendar to a date in Persian calendar or vice versa. or Converting Celsius to Fahrenheit and vice versa. need your guide and idea ... | |
Hi all =] I have a php script which gets the file name of every .jpg file in a folder and then writes the <img>, and a form. The script uses a string called "galleryarray" to store the filename, which is then called into a hidden field so when the … | |
Hey, Im just wondering how i can get something like this to work: [CODE] $tablename = $_POST['tablename']; mysql_query(CREATE TABLE `databasename`.`$tablename` (`name` VARCHAR( 200 ) NOT NULL)) [/CODE] At the moment its coming up with an error because I am using a variable for the table name instead of inputting it … | |
Hi all, i have used this include function , but i am not getting proper output, the included files are one below the other i want it to be side by side, this is code i have written whats wrong with this code,? <html> <head> <style type="text/css"> table.one { table-layout: … | |
i have installed wamp server in my system to implement spell check.and also aspell in the directory c:\wamp\aspell. i also made changes in the php.ini file to include spell check option. even after i restart the server the changes are not effected.get me some help to overcome this problem | |
Hello you PHP Community! I am looking to make an automatic meta keyword generator based on an array of phrases. It is more my site that is under construction, [url=http://www.phpmine.com]PHPMine[/url]. Go to the "Q and A" section and you'll see a series of questions there, five in total. right now … | |
Problem : i have three forms on three different files, personal_details, property_details and payment. After clicking the submit button on the personal details form the property details form opens as expected but upon clicking the submit form button on the property details form the payment form does not open. If … |
The End.