39,320 Topics
| |
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 … | |
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 … | |
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 … | |
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 .... … | |
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'] = … | |
I have created sandbox account on google but not got merchant id and merchant key | |
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 | |
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- | |
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> <? … | |
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 … | |
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 | |
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 … | |
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 … | |
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"> … | |
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 ) … | |
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 | |
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, … | |
[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 … | |
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 * … | |
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 … | |
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 … | |
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 … | |
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 … | |
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"; … | |
[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 … | |
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 … | |
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 … | |
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 … | |
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. … |
The End.