39,320 Topics

Member Avatar for
Member Avatar for rajeesh_rsn

Hi I am working in a shopping database with php. For this I need to create a Id ( automatically) for each product when I add a new item in to the database and I am using php. I want to create that id automatically and without repetition. It can …

Member Avatar for rajeesh_rsn
0
99
Member Avatar for mirainc

Hey all.. Im in desperate need to solve my shopping cart problem. Im doing it for a school project. The situation is my products are listed in a table. Users will select which product they want by selecting the add to cart link. Once they select it, the product information …

Member Avatar for mirainc
0
424
Member Avatar for CasTex

I am getting error at the second line of the code, what is the problem :-/ [ICODE]$content = '<' . '?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?' . '>'; $content .= "<entry xmlns='http://purl.org/atom/ns#'>"; $content .= "<title mode='escaped' type='text/plain'>".$title."</title>"; $content .= "<issued>".$issued."</issued>" $content .= "<generator url='http://www.yoursitesurlhere.com'>client's name</generator>"; $content .= "<content type='application/xhtml+xml'>"; $content .= "<div …

Member Avatar for almostbob
0
2K
Member Avatar for rajeesh_rsn

Hi I am making a online shopping site. In that I want to add online payment option. Paypal will take 5-7 days to process .. I need help in this chapter.. Any one know the solution ?? I am from India and used php code for building the site .... …

Member Avatar for freshfitz
0
74
Member Avatar for sacarias40

i get this error:[quote]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'index, user_id, username, message) VALUES(' ', '4', 'zack', 'jh')' at line 1[/quote] [code]<?php session_start(); $_SESSION['user_id'] = 4; $user_id = $_SESSION['user_id']; $_SESSION['username'] = …

Member Avatar for sacarias40
0
93
Member Avatar for snadboy6371

I have created sandbox account on google but not got merchant id and merchant key

0
49
Member Avatar for samarudge

Hi, Is there any way to retrieve the contents of a DIV from another website, E.G. there is a div on Youtube with the ID description, how would i get the contents of that DIV? Thanx Sam Rudge

Member Avatar for samarudge
0
269
Member Avatar for cakka
Member Avatar for pcmicro

Good evening to all of you! I was wondering if anyone would be willing to assist me in building an HTML feed back form powered by PHP. Quite frankly I don't care what its powered by as long as it work. Any suggestions??? Thanks for your support. C-

Member Avatar for almostbob
0
322
Member Avatar for queenc

hi i am trying to develop a site.i am using php and wml.this is my first program.can any one say why my below code is not woking [CODE] <?php header("Content-type: text/vnd.wap.wml"); echo " xml version=\"1.0\" "; echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"" . " \"http://www.wapforum.org/DTD/wml_1.1.xml\">"; ?> <wml> <card> <? …

Member Avatar for digital-ether
0
329
Member Avatar for theimben

Hello, I need some help. Ive got this script which scrapes the [URL="http://www.imdb.com/chart/top"]IMDB top 250 movies[/URL] list. What Im trying to do is add a search link next to the year bit. Ive got it partially working with str_replace but it only adds the link to the first movie. [URL="http://www.theflickzone.com/misc.php?do=page&template=top250"]See …

Member Avatar for digital-ether
0
93
Member Avatar for alipourhadi

hi to all i wana get the Traffic left from rapidshare account i used this work but it doesnt work anyone cans help me? [CODE]ereg("<td>Traffic left:</td><td align=right><b><script>document\.write\(setzeTT\(\"\"\+Math\.ceil\((\d+)/1000\)\)\);</script> MB</b></td>", $pagedata, $traffic); [/CODE] html code of this part is : [CODE]<td>Traffic left:</td><td align=right><b><script>document.write(setzeTT(""+Math.ceil(-123313/1000)));</script> MB</b></td>[/CODE] i need this number : -123313 in html

Member Avatar for digital-ether
0
95
Member Avatar for sleign

I'm finding some information here and there about $PHP_SELF but never specific to the question I have. I'm not sure if I'm going about this right, but I'm using a form for user input, specifically a registration page - and I'd rather only have one page the user has to …

Member Avatar for digital-ether
0
187
Member Avatar for shaneog

I have been racking my brain and can't figure this out??? I'm trying to <b> or <highlight> characters/words in my string and for some reason the <b> tag is getting replaced when the $q includes the character "b". It also does the same for <span class=".... just reacts to different …

Member Avatar for digital-ether
0
2K
Member Avatar for Aamit

I am using this code to display calender This runs on IE but [COLOR="Red"]not on Firefox [/COLOR] [code] <table border="0" cellpadding="0" cellspacing="0" style="height: 150px; border-collapse: collapse" width="100%" class="searchBox"> <form action="index.php?view=search2" method="post" name="SearchForm" onSubmit="Javascript: return checkSearchForm();"> <tr> <td colspan="2" valign="top"> <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" class="normalHeading3"> <tr> <td valign="top" width="13"> …

Member Avatar for almostbob
0
170
Member Avatar for Cellu

Hi, This must be a rather dumb question, but I'll ask it anyway. Me and my friend are making a simple news script for our website, and thus we are not going to use mysql. The idea was to use mod_rewrite for SEO friendly URLs e.g /news/2008/12/25/this-is-the-subject/ (== news.php?y=2008&m=12&d=25&s=this-is-the-subject ) …

Member Avatar for almostbob
0
241
Member Avatar for enim213

hi All, I want to ask if is there any possibility to separate column data in different columns using php code.. really dont know if i have solution in php or here in mysql.. any idea would be really appreciate Thanx enim

Member Avatar for enim213
0
144
Member Avatar for guitarscn

I have a .php web page with these lines: [code]//gather all the comments $commentquery = mysql_query("SELECT * FROM comments WHERE tutorialid='$tutid' ORDER BY date DESC") or die(mysql_error()); //count all the comments for the total $commentNum = mysql_num_rows($commentquery);[/code] I want the value of $commentNum which is going to be a number, …

Member Avatar for diafol
0
162
Member Avatar for Harneet

[url]www.lbnutrition.com[/url] Nothing is showing up. I have revised the index.php code plenty of times. I need help of an expert. Much thanks! ------------------------------------------------------------------------------------ [code=php] <?php /* $Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public …

Member Avatar for almostbob
0
102
Member Avatar for ajhais

Hi... I have the following code... [code=php] case 10: if($uid=$_GET['u'] && $pid=$_GET['p'] && $t=$_GET['ti'] && $type=$_GET['typ']) { print "$uid $pid $t $type "; } $query1="select * from album"; $result1=mysql_query($query1); if(mysql_num_rows($result1)>0) { $i=1; print "<table width='1000px' cellspacing='10px' cellpadding='10px' align='center'><tr><td colspan='4' class='h1'>Click on an image to delete it..</td></tr><tr>"; while($row1=mysql_fetch_array($result1)) { $query3="select * …

Member Avatar for hielo
0
101
Member Avatar for emclinux

Im in the market for a good php reference book. Does anyone have some suggestions on such a book so I waste my money on a book that is not going to help me. Im not really looking for a book to teach me how to code or anything just …

Member Avatar for pclfw
-1
131
Member Avatar for rajeesh_rsn

Hi I am new to php, I had a form in my page to upload image and some data. And that image filed is not mandatory. I had done that script well and working well. But the problem is it always need a image ( that is not mandatory in …

Member Avatar for wilch
0
222
Member Avatar for cali_dotcom

hi, i'm a newbie to php and i'm building a website right now. i giving the users the option to create and send news letters. i also want to give them the option of sending the newsletters at a later date i.e they can create the newsletters, choose a date …

Member Avatar for mschroeder
0
514
Member Avatar for guitarscn

I have forms already made that takes the user's name and input box for their comment, but I cannot figure out how to make it so that when the user clicks on Submit button, it will display on the same page in a certain style that I want (justified left …

Member Avatar for guitarscn
0
171
Member Avatar for marciano

Hello. I've tested sending emails to popular webmails like gmail and hotmail successfully. The problem is with yahoo. All mails are delivered to SPAM folder. These are some of my class.phpmailer vars where the mails are sent from [code=php]var $From = "admin@domain.com"; var $FromName = "ME"; var $Mailer = "sendmail"; …

Member Avatar for marciano
0
116
Member Avatar for Troy

[url="http://www.tgreer.com/class_http_php.html"][b][url="http://www.tgreer.com/class_http_php.html"]http://www.tgreer.com/class_http_php.html[/url][/b][/url] I've written what I think is a high-quality PHP class for screen-scraping external (or internal) web content. The class includes features to cache scraped content for any number of seconds. So for example, if you want to show stock market data on your site that you scrape from a …

Member Avatar for WebSnail
0
747
Member Avatar for kuldeep04

Hi All, I m working on one web site and i want to search image from given color code,and i put one color piker for that but i don't know how can i get the image from that color code. my site URL is : [url]http://www.alleystock.com/avd_search.php[/url] please help me for …

Member Avatar for mschroeder
0
121
Member Avatar for lisan28

Hello everyone! I was trying to follow along with this tutorial: [url]http://www.sitepoint.com/article/watermark-images-php/[/url] and everything worked fine until the end. Basically I'm trying to write a script that both resizes and watermarks images for a couple of websites I'm working on, so that I don't have to go through and do …

Member Avatar for lisan28
0
112
Member Avatar for theimben

Hello. Ive got this script which scrapes [URL="http://www.imdb.com"]IMDB[/URL] for their top 250 movies list but its not parsing and Im not sure why. Could you help me out please.... [code=php] <?php function get_inner_string($a,$b,$c) { $y = explode($b,$a); $x = explode($c,$y[1]); return $x[0]; } //Get Page $file = 'http://www.imdb.com/chart/top'; //Open Page …

0
56
Member Avatar for desiguru

For some reason when i was creating my database I messed up in inserting data into mysql and now all dates are in yyyy-mm-dd format so when the data are displayed it seems like (2007-06-26) How do i change that to (mm-dd-yyyy) in php for users to understand it better. …

Member Avatar for buddylee17
0
219

The End.