39,320 Topics

Member Avatar for
Member Avatar for Nameste

i installed it all correctly and everything, i'd recently tried WAMP5 and that didn't work either so i moved to XAMPP when i go onto localhost and type into the URL my file from notepad called index1.php it doesn't work i tried localhost/index1 and localhost/index1.php it doesn't work it says …

Member Avatar for buddylee17
0
75
Member Avatar for isomillennium

Is there a way to allow the php tags with the strip_tags() function ? i've tried strip_tags($text, '<?>') and strip_tags($text, '<? ?>') but it doesnt work .. any help would be appreciated thanx ..

Member Avatar for isomillennium
0
89
Member Avatar for OmniX

I have been reading books and articles and I have seen various mysql functions (mysql_query, etc) being used inside php functions and those php functions be called everything the php programming requires a query, etc. So what do you think are the best practices, etc? Thanks, Regards X PS: I …

Member Avatar for nav33n
0
68
Member Avatar for FerrumBat

Hi, I'm struggling to get a relatively simple PHP/MySQL script to work. Basically, I've got two tables populated with entries from a database. PHP ver: 5.2.6 apache ver:2.2.9 Mysql ver:5.0.51b However I'm getting errors on the second table: [QUOTE]Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in …

Member Avatar for nav33n
0
171
Member Avatar for chriscapetown

Hi, I have a select like below in my form, I want a second box to populate but differently for each activity. I would like to do this by means of something like this (case method really).. Any help would be much appreciated.. been struggling with it. Thanks alot, Chris …

Member Avatar for matudustrauss
0
131
Member Avatar for swefil2008

I need a routine for printing out to pre-printed paper forms. We recently had a programmer install in our office software written in php , and to be used locally through localhost on our pc, mysql, php and apache2.2 all installed, the software is working well, however we have a …

Member Avatar for casper_wang
0
146
Member Avatar for seangdy

Please help me corect my code. I want to insert image into mysql with php but it can't. my code wrote as below: Table: CREATE TABLE `TblClothes` ( `ClothesID` int(11) NOT NULL auto_increment, `ClothesName` varchar(100) NOT NULL, `Description` varchar(800) NOT NULL, `Colour` varchar(100) NOT NULL, `CSize` varchar(100) NOT NULL, `Price` …

Member Avatar for casper_wang
0
143
Member Avatar for aparnesh

Hi Friends Till now, I have been coding my PHP files mainly in Notepad. I had used a few PHP IDEs earlier, but were not satisfied. I found them too cumbersome and some were quite unstable. Now it's becoming rather tedious to edit in Notepad. So I am looking for …

Member Avatar for casper_wang
0
114
Member Avatar for ditty

I have a list box for multiple selection. It contains some main list and sublist. My aim is no one couldn't select the main list. for eg: Project manager Arun Pradeesh Team Leader Madhu Jibin Anybody couldn't select the main heading such as Project manager and Team Leader.. Pls help …

Member Avatar for ditty
0
216
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
68
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
155
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
118
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
80
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
74
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
87
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
260
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
74
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
136
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
70
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
123
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
67
Member Avatar for ishlux
Member Avatar for nav33n
0
88
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
70
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
77
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
97
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
311
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
55
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
65
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
152

The End.