Removing item from shopping cart
I am creating an ecommerce website for a project work, it will not be used live. I am having trouble deleting items from the shopping cart! please help me This is to add items to the shopping cart:...
View ArticlerowCount
$count prints out 0 it is retrieving correct username and password from database. Ideas? <?php include_once ('connection.php'); class User{ private $db; public function...
View ArticlePulling today's news item from RSS feed
I am trying to pull only today's item from a couple different RSS feeds. One site posts a few months in advance. I would like to display the post for today only (actually, I'd like to get the mp3 out...
View Articlehelp please with error: syntax error, unexpected T_IF
Hello everyone! I'm adding new fields to the feedback.tpl in DLE. The file is in engine/ajax/feedback.tpl Here is the code: $row['template'] = stripslashes( $row['template'] );...
View Articletrying to identify categories from products in a url
I am working on an e-commerce site. to There are two types of pages, products and categories. I can't work the best way to identify them in the htaccess. example urls: site.com/category/product...
View ArticlePHP Form
I have created a PHP form which has the following code: <?php $to = "example@example.com"; $subject = "Email from Examples.org"; $message = $_REQUEST["message"]; $email =...
View ArticleSending HTML email with multiple attachments.
I have this code, Its working great! Perfect! Other than the emails are plain text and not HTML. What can I do to this code, to make it send HTML instead of plain text? $headers = "From: " ....
View ArticlePHP HTML after 5 States in a Row Go to Next Row
I have a script that displays the States and the cities in that state where we have records. This is the code I had at first: $lookup = "SELECT state, city, count(city) as num FROM needs WHERE...
View Articlefetch_assoc
Hey I have a piece of code that I sort of understand why it is not working but then i dont know how to get around it <?php include 'xconn.php'; $get_id = $_REQUEST["name"];...
View ArticleHow to register _Session[var] globally
I have auth page that auth user against php and later registers data from mysql querry into the session varriables like this: //register sesssion authenticated else {$_SESSION['authenticated']=true;...
View Articlehow to check which question is selected
Hi, I am trying to do the coding for the or choice questions. What i am trying to do is like, i am having set of questions in a form with some image.By clicking the image calls other page with textarea...
View ArticleUpdate Background To Random Image Every Few Seconds?
I'm building a basic photo gallery, and I'm having difficulties with the 'Categories' section. The plan is to display all the picture categories inside divs, and have them 'rotate' their background...
View ArticleRecaptcha PHP Error
Hi All, Very new to PHP so I wonder if you can help. I have set up a form with Recaptcha on it. The form posts the information on the front page (which works). The only problem is that I want the...
View Articlemysql_fetch_array error
<?php $res = mysql_query("SELECT * FROM `events` WHERE `to` = '".$_SESSION['userid']."' LIMIT 5"); while($myrow = mysql_fetch_array($res)) { echo "<center><table><tr>"; echo...
View ArticleParse error: syntax error, unexpected ','
i really dont know what wrong with it. could please help to find out where i get mistake. Parse error: syntax error, unexpected ',' in line 13 which the line 13 is $Conn = (DB_SERVER_, DB_USER_,...
View Articlehelp with regex
i have string like that A11AA9AA7A and i want to print all the number between A this need be the result 11 9 7 every number is between A A234AA433AA413AA0AA222AA2456A <?php...
View ArticleLooking for php-script for taking orders
I am looking for such a script: http://www.travelrussia.su/en/visa.business.blank.php Does anyone has something like that for me, please?
View ArticleLittle Help! :D :D
Hi Frndz!! I have created a simple quiz system but the problem is the questions aren't in random order. If possible need help about how to make the questions appear randomly each time & once. I...
View ArticleCondition help
Hi I have a code like $movie_name = $arrTitle[0]; $arrStr = explode(':',$htmlShowTime); $release = substr($arrStr[3],0,strlen($arrStr[3])-8); $director =...
View Articlegetting a part of the content of a page
my end goal is to show an invoice with data of the customer, therefor i made a templatefile with pure html and within a function, i get the content of the templatefile and replace specific words in the...
View Article