39,402 Topics

Member Avatar for
Member Avatar for darkeinjel04

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 …

Member Avatar for nav33n
0
69
Member Avatar for mustafaneguib

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

Member Avatar for nav33n
0
161
Member Avatar for MDGM

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 …

Member Avatar for nav33n
0
122
Member Avatar for harinatt
Member Avatar for punithapary

Hi, Can anyone tell me what is mean by core php.What is the difference between core php. Please help me Thanks Punitha pary

Member Avatar for Shanti C
0
83
Member Avatar for ingeva

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 …

Member Avatar for ingeva
0
76
Member Avatar for gargg321

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 …

Member Avatar for alinfan
0
88
Member Avatar for PomonaGrange

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 …

Member Avatar for PomonaGrange
0
273
Member Avatar for akshit

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 …

Member Avatar for akshit
0
77
Member Avatar for akshit

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 …

Member Avatar for akshit
0
140
Member Avatar for Nameste

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 …

Member Avatar for nav33n
0
73
Member Avatar for jcmurphy

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 …

Member Avatar for nav33n
0
126
Member Avatar for chriscapetown

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 …

Member Avatar for nav33n
0
70
Member Avatar for ishlux
Member Avatar for nav33n
0
90
Member Avatar for jencinas69

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", …

0
73
Member Avatar for scorpionz

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 …

Member Avatar for pritaeas
0
79
Member Avatar for mushi

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 …

Member Avatar for pritaeas
0
100
Member Avatar for dkv

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 …

Member Avatar for dkv
0
315
Member Avatar for lydia21

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

0
57
Member Avatar for Shanti C

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.

0
69
Member Avatar for ishlux

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

Member Avatar for Shanti C
0
154
Member Avatar for c++ prog

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

Member Avatar for ditty
0
133
Member Avatar for Shanti C

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.

Member Avatar for Shanti C
-1
91
Member Avatar for 4x4biker

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 …

Member Avatar for 4x4biker
0
107
Member Avatar for ishlux

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 …

Member Avatar for ditty
0
155
Member Avatar for akshit

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 …

Member Avatar for ditty
0
125
Member Avatar for tiger86

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 …

Member Avatar for ShawnCplus
0
52
Member Avatar for JeffBot

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 …

Member Avatar for ShawnCplus
0
66
Member Avatar for praveen_dusari

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 …

Member Avatar for ShawnCplus
0
56
Member Avatar for Venom Rush

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

Member Avatar for Venom Rush
0
83
Member Avatar for Rakesh Nagekar

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

Member Avatar for Shanti C
0
71
Member Avatar for Sunshineee

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:

Member Avatar for mexabet
0
75
Member Avatar for akshit

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 …

Member Avatar for nav33n
0
87
Member Avatar for dab

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 …

Member Avatar for dab
0
212
Member Avatar for praveen_dusari

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

Member Avatar for silviuks
0
91
Member Avatar for heels

Hi, How do you retain values entered in the textbox after submitting? javascripts or any other methods? Thanks alot. Regards, heels

Member Avatar for casper_wang
0
174
Member Avatar for Jxxxx

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 …

Member Avatar for Slayxr
0
134
Member Avatar for Venom Rush

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 …

Member Avatar for nav33n
0
105
Member Avatar for kvdd

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 …

Member Avatar for nav33n
0
112
Member Avatar for Venom Rush

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.

Member Avatar for Venom Rush
0
107
Member Avatar for MDGM

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 …

Member Avatar for MDGM
0
103
Member Avatar for soosai

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 …

Member Avatar for casper_wang
0
79
Member Avatar for binukjames

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

Member Avatar for binukjames
0
736
Member Avatar for tanha

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 ...

0
47
Member Avatar for MDGM

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 …

Member Avatar for MDGM
0
154
Member Avatar for MDGM

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 …

Member Avatar for MDGM
3
3K
Member Avatar for ishlux

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

Member Avatar for GGAB
0
332
Member Avatar for shaluu

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

0
34
Member Avatar for phpmine

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 …

Member Avatar for digital-ether
0
216
Member Avatar for ibrahimssani

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 …

Member Avatar for ibrahimssani
0
173

The End.