39,326 Topics

Member Avatar for
Member Avatar for Dsiembab

I wrote this script and I was wondering if their was an easier way. It's basically for dynamic links [CODE]<?php $currents = $_GET['page']; function paginator($current , $link, $getpre, $firstimg , $lastimg, $endimg, $startimg, $totalitems, $maxperpage){ // $current is the current page should be dynamic // $link is the url , …

0
74
Member Avatar for cali_dotcom

can anyone tell me why this code does not work? it's suppsed to give back a name from the database but it always returns blank. [code] <?php //connect to database $mysql = mysql_connect("localhost", "root", "") or die ("couldn't connect to server"); $mysql .= mysql_select_db("addressbook", $mysql) or die (mysql_error()); if (!$_POST) …

Member Avatar for OriginalCopy
0
85
Member Avatar for pip86

Hi all, I have just upgrade from php 4 to 5 and now I get a hole lot of weird text on my site. I have try to disable all errors and warnings, but I cant get it to dissapear. hope somebody can help me. [url]http://demo.topnordic.com[/url] [url]http://demo.topnordic.com/info.php[/url] Thanks

Member Avatar for OriginalCopy
0
85
Member Avatar for chronoel

Hi, I'll explain my problem so you could picture it clearly. I do a complex query to fetch some information from the database and the problem is that the query takes some time. Fortunately, the result of the query doesn't change often, so I thought of a solution to store …

Member Avatar for OriginalCopy
0
80
Member Avatar for flforlife

I'm trying to update multple queries but the update is not working. here is the code.... [code] if (isset($_POST['btnSub'])) { // Preset counter $p and switch $sw to 0 $p=$sw=0; // Create UPDATE queries foreach($_POST["entry"] as $data) { $sql[$p]="UPDATE major SET "; foreach($data as $key => $value) { // Save …

Member Avatar for amigura
0
207
Member Avatar for rotsap

I am new to php and am getting the following error; Parse error: syntax error, unexpected '+', expecting T_VARIABLE or '$' in… on line 14. Here is the code; [code=php]<?php /* Subject and Email Variables */ $emailSubject = 'Monthly attendance report'; $webMaster = 'phil@coxwebink.biz'; /* Gathering Data Variables */ $ChurchField …

Member Avatar for mom_of_3
0
214
Member Avatar for jonnica

hi frnds, My problem is that i am having a form that makes selects various persons profile through check boxes. Now i want that in my mysql database , those selected gets stored against the login user on bookmark button click. Problem comes when the user again logins , if …

Member Avatar for forzadraco
0
99
Member Avatar for forzadraco

can anybody help me to show how to make multiple search with some listbox and ot's value have multiple calue and one of them have value 'any' which search all with PHP n MYSQL. Thanks...

0
83
Member Avatar for anish.anick

Hi All, Is there any way to send email in php without user interaction.The scenario is some thing like this.. I want to send email's to persons based on his/her birthday.I need your help. Please help me to solve this... Thanks :)

Member Avatar for anish.anick
0
90
Member Avatar for AceIce

I get this error: Warning: require(D:\Apache\htdocs\public_html/lib/stdlib.php) [function.require]: failed to open stream: No such file or directory in /home/homebase/public_html/config.php on line 143 Warning: require(D:\Apache\htdocs\public_html/lib/stdlib.php) [function.require]: failed to open stream: No such file or directory in /home/homebase/public_html/config.php on line 143 Fatal error: require() [function.require]: Failed opening required 'D:\Apache\htdocs\public_html/lib/stdlib.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/homebase/public_html/config.php on …

Member Avatar for amigura
0
86
Member Avatar for mcx76

I installed the [URL="http://cs-cart.com/index.php"]CS Cart[/URL] . everthing was working fine. I successfully login to Admin panel [url]http://www.website.com/admin.php[/url] But today i am trying to login to admin panel [url]http://www.website.com/admin.php[/url] . But the page is appearing different "Dealer Login" with email address. Please be advice.Thanks for all your help

0
84
Member Avatar for spiderling

I've tried the following force download script and for the life of me I can't get it to download the file. I get the download dialog pop-up, but the file size is only around 500 bytes. I think it is the pathing. I've tried absolute and relative paths for readfile …

Member Avatar for spiderling
0
112
Member Avatar for sjkisby

Hello all, My final year at uni is looming and I've searched the web for some final year project inspriartion but haven't found too much. I study software engineering and have enjoyed web-devlopment the most so want to do a php/mysql maybe some ajax in there as well type of …

Member Avatar for sjkisby
0
137
Member Avatar for lydia21

hi, how to find the end of file in a word document thanks in advance

0
62
Member Avatar for forzadraco

anyone can help me to show me how to make multiple search with multuple parameter? thanks, Ardy SH

0
62
Member Avatar for kings

hi i have a application where i want the user to click the button only once.i want the user to have time interval(eg 5 sec,before tat if he tries to clickit should display pop -up thanks

Member Avatar for queenc
0
93
Member Avatar for swapna7999
Member Avatar for swapna7999
0
56
Member Avatar for ebabes

I had been using my local phpmyadmin for the past few days and its working. But suddenly, I can't access my local phpmyadmin and got this error [COLOR="Red"]"Access forbidden! You don't have permission to access the requested object. It is either read-protected or not readable by the server". [/COLOR] I …

Member Avatar for ebabes
0
92
Member Avatar for Designer_101

Hi I'v hit a glitch in my bebo, myspace, facebook ect style website. I basicly need help with a script to resize an image, of which directory is stored in my database. [CODE]<div id="profile" class="<?php echo $user_data[skin]; ?>"> <img src="<?php echo $user_data[dp]; ?>"> </div>[/CODE] Bering in mind i cant have …

0
59
Member Avatar for Designer_101

Hey Im having this problem, im sure theres a simple solution, but i cant seem to see it :D The code bellow is part of a regestration form validation. Basicly when i ask the database if anyone else exists with the same username, password or email address - it works …

Member Avatar for Designer_101
0
113
Member Avatar for Fabioisonfire

Here is the error I'm getting: Parse error: syntax error, unexpected T_STRING in /home/fabio/public_html/vote.php on line 21 Here's the code: [CODE]<?php session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us …

Member Avatar for phper
0
106
Member Avatar for csshacker

Can a .htaccess file to Change this URL [url]http://www.myhealthidea.com/index.php?article=Natural-Health-Supplement&article1=Natural-Beauty-Care[/url] To [url]http://www.myhealthidea.com/Natural-Health-Supplement/Natural-Beauty-Care[/url] Not only this URL all URL Rewrite as [url]http://www.mywebsite.com/category/subcategory[/url] Please Please Help Me......

Member Avatar for amigura
0
74
Member Avatar for webie

I thought i post here to see if anybody would like to test new front end for openwebspider the script is PHP and uses the sphinx full text search engine and the smarty template engine for ease of skining new themes. Searh results are returned back lighting fast under a …

0
122
Member Avatar for Brent.tc

Hi, I have made a program in c++ that inputs a file, and outputs the number of characters... I have placed this executable into my apache 2.2 server's cgi-bin directory under the name "TestApp.exe" how would I retrieve the output of this file by calling it with either PHP, or …

Member Avatar for MitkOK
0
66
Member Avatar for Ravenous Wolf

I suppose that this is the wrong place to voice critique of php but does the lack of good php books not make php a bit of a nightmare. i have been on amazon and all the books have a review or two which says something about typos or misleading …

Member Avatar for Ravenous Wolf
0
146
Member Avatar for jino

Hi all, Please tell me where is the cookie file stored in my computer when i run the below codes.. I checked it in the C:\ [code=php]<?php setcookie("test","john_joseph",time()+ 3600); ?> <html> <body> <form name="cookie" method="post" action="<?php echo $_server['php_self'];?>"> Enter ur name:<input type="text" name="name"> <input type="submit" name="submit" value="SUBMIT"> </form> <?php if …

Member Avatar for digital-ether
0
148
Member Avatar for Tess James

can we go for ms excel for creating charts in php(with mysql) instead of using jpgraph? please tell me which is the easiest one to use 9between ms excel and jpgraph)?

Member Avatar for digital-ether
0
199
Member Avatar for forzadraco

hyy... i hv aproblem.. iwant to make aplication thabt need some field database from other database(pg-sql) and want to copy it to other database(mysql). can that skrip make this happen auto copying...?

Member Avatar for AaronASterling
0
101
Member Avatar for prethum

hi i have a simple form where users can upload only images ,i am storing the path to myql and actucal image to a folder on the remote server but when i submit the form iget the image path in my database but not the image in the folder the …

Member Avatar for prethum
0
106
Member Avatar for ZaphodQB

I have a web page which I can login to with a user name and password and when the page reloads of the first time after the signin the session loads and has my status correct but just navigating to another page (all done through the same php file with …

Member Avatar for vinothkumarc
0
125

The End.