39,393 Topics
![]() | |
Once php has been installed on apache server, why I cannot run php program on it, any idea? | |
Hi! I hope someone can help me out on this one. I have been trying to get it work since last night. I am making an application where I can add a quiz. The quiz has questions. Each question has a certain number of choices and out of those choices … | |
Hello All, I have a form that I created for user login. It has three fields. username Password Date I want the date field to default to the current date when users login. Can anyone help me with setting a default value for the date field? Thanks in Advance! Stick | |
Hi all, Is there a way I can delete or expire a cookie that's been left in the users browser cache with php ? The reason I ask is, I'm setting up a paypal store, and if users already have a paypal cookie in their cache when they checkout from … | |
Hi all, Would anyone know how to search an external html file for a work or phrase ? I was thinking something like - [code]<?php $fp = fopen('http://www.google.ca', 'r'); if (preg_match('/Google.ca/', print fgets($fp))) { echo "match"; } else { echo "no match"; } ?>[/code] Unfortunently, that doesn't work, but you … | |
hey i just did this script for my phpbb forum. its a cash mod (for anyone familiar with) this is what came up Parse error: parse error, unexpected T_STRING in /home/thei2k9/public_html/includes/functions_post.php on line 359 here is line 359 $message = $lang['Stored']. '<br />' . $cash_message sprintf($lang['Click_view_message'], '<a href="' . append_sid("viewtopic.$phpEx?" … | |
I have a bit of a problem with my newsletter here is the error I get: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/happy/public_html/newsletter/subscribe.php on line 64 Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/happy/public_html/newsletter/sindex.php on line 244 Warning: extract(): … | |
I have a problem on mysql_query on using 2 dbs on 1 mysql server. Please help, and code is;; <? $db1[host] = "localhost"; $db1[user] = "abc"; $db1[pass] = "1234"; $db1[db] = "db1"; $db1[dir] = "a/ab"; $db2[host] = "localhost"; $db2[user] = "abc"; $db2[pass] = "1234"; $db2[db] = "db2"; $db2[dir] = "a/cd"; … | |
I installed Apache2, PHP5, openssl, Mysql4.1 all from src(except MySql=>RPM). The problem I am having is with PHP ( well I think anyway ). When I start Apache it loads php without error, but when I point Firefox to localhost/test.php which contains CODE: <?php phpinfo(); ?> ,its displayed rather than … | |
I have a Moveable Type hosting account that seems to come with all sorts of bells and whistles that are not related or even compatible with Moveable Type. I am extremely ignorant about what I'm doing here and I got the MT account because I already had an MT blog, … | |
Dear all members, I have a problem . As i use dial up network as a mean to get to the internet it is some times costly to upload my code to internet and then test . As i am learning PHP recently , if any body suggest any way … | |
Hi there, Ok, I need help from other programmers on creating a hiring ad looking for a programmer who knows MySQL/PHP very very well. I know there are supposed to be 3 different areas I need the programmer to have & some don't have them. 1. The DB Design 2. … | |
Hi there, I am taking over someone elses code and do not work in php. None of this guys pages actually work! The one I am starting on is at [url]http://www.vri.ca/gallery/surroundphoto/restaurant[/url] When you click on any of his links you get the same picture so I am assuming that the … | |
I just read an interesting oracle article comparing PHP4, PHP5, and ASP. I would suggest anyone questioning the PHP/ASP debate to read the article: [url="http://www.oracle.com/technology/pub/articles/hull_asp.html"]http://www.oracle.com/technology/pub/articles/hull_asp.html[/url] | |
I have a login script, I want to modify it to restrict the sharing username access, by IP address, what will be a good method to do this? thanks. | |
Hello please help Total php beginner please help i am going crazy my home-page opens finishes loading but with error's on page and my hitcounter does not display on my site but it's still logging my site I looked through my site files and found this error below. Is this … | |
I am getting the following error: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/champion/public_html/search.php on line 34 when doing a search for text in a description or product name. The error only happens when I do a search for multiple words. Here is the code: … | |
Hello, I am trying to set up the phpbb forums on my site using MySql and I don't understand how to link MY site to the DATABASE. I also can't seem to figure out where my username, password, and the name of my database as I need them for the … | |
Hi there all, I'm about to develop a site with a DB backend & I want to know how one goes about doing organic SEO if most of the site is DB driven. There will be some text on the page, but certain things that are pulled from the DB, … | |
Hello all, first off, I am no PHP coder. I would like to display RSS feeds from other sites, to my index.php on my site. I found this script at [url]http://www.feedforall.com/free-php-script.htm[/url]. It's a php script for this just that, but it displayes in the php file (rss2html.php) OR a .shtml … | |
Can anyone suggest any free/pay script or software of online HTML editor? I want my users to be able to create html page on my website and save to database or text file. TQ. | |
I am a post graduate [B]I was approached by a company to design for them an Intranet using PHP[/B] i just want to know is this a complex issue or is it easy, bcoz in college( those unknown colleges) we didnt do that much [B]PHP[/B] IF U MAY PLease give … | |
hello i have decided to split my products into categories. each product has a category from 1-5. how do i make this page display products relevant to the category I have made links to each category on this page on the left. I dont know if this is the way … | |
please help me when i run my code by using Mysql_num_rows() Warning: Supplied argument is not a valid MySQL result resource in c:\inetpub\wwwroot\php\connect to database.php on line 13 this is my code <?php /* declar some relevant variables */ $Host = "localhost"; //location of mySQL on server $Table = "books"; … | |
My web hosting control panel had this free script section that listed PHPBB2, when I installed it, I got a thing called PHPwebsite copyrighted by Appalachian State Univ. It's a GNU licensed product, so is it the same thing? maybe just a modded version? It seems the same... I just … | |
I made a little code to update record in database like this: [PHP] require_once('includes/config.php'); if ((isset($_POST["DO_update"])) && ($_POST["DO_update"] == "edit_product")) { $ProductID = $_POST["txtProductID"]; $CategoryID = $_POST["txtCategoryID"]; $ProductName = $_POST["txtProductName"]; $ProductPrice = $_POST["txtProductPrice"]; $IsRebate = $_POST["selIsRebate"]; $RebatePrice = $_POST["txtRebatePrice"]; $ImageFileName = $_POST["txtImageFileName"]; $BigImageFileName = $_POST["txtBigImageFileName"]; $ProductDetails = $_POST["txtProductDetails"]; $query_update = … | |
Hey people, for the past few months i have been looking into C++, java and php. My web design is mainly about flash, photoshop and dreamweaver so im trying to brush up on my programming skills. Basically i have a client who wants me to design them a website which … | |
hi If you click on the following page [url]http://www.bluetipdvd.co.uk/indexd.php[/url] and the click on the two product links a new window opens which displays some more info. I am trying to make it so the window that opens displays info relevant to the the link that was click e.g clicking on … | |
How to run web PHPscript in specified user, not in apache(default). In linux you create user test, and he has rights like root. Now you want to run [url]www.yoursite.com/test.php[/url], and script test.php is a execute script. But by default scripts are treated like user apache,but apache hasent got enough rights … | |
I've been getting errors by putting tabs in my script to make it a little easier to read and more organized. As soon as I take the tabs out, the errors go away but the script is very ugly. I even tried using 4 spaces in place of the tabs … |
The End.