39,326 Topics

Member Avatar for
Member Avatar for Troy

class_db.php is a database class that provides methods to work with mysql, postgres, and mssql databases. Other database types can be easily added. The class provides a common interface to the various database types. A powerful feature of the class is the ability to cache datasets to disk using a …

Member Avatar for ethen_th
0
212
Member Avatar for JRED

This code snippet will attempt to show newbies to php how to connect and retrieve data from a PostgreSQL Database Server using PHP.

Member Avatar for Troy
0
184
Member Avatar for corewizard
Member Avatar for Scribbller
Member Avatar for Gandalf

[b]1. mod_rewrite se friendly pages for vBulletin[/b] Here is a seo hack for vBulletin developed by Danielle Horowitz. You can find original text at [url="http://www.daniweb.com/techtalkforums/thread9379.html"]http://www.daniweb.com/techtalkforums/thread9379.html[/url] I have remade her instructions in the phpBB mod like format. You can read them here [url="http://www.daniweb.com/techtalkforums/post87148.html#post87148"]http://www.daniweb.com/techtalkforums/post87148.html#post87148[/url] You can download text file here [b]2. Meta …

Member Avatar for didier-fr
0
481
Member Avatar for Scribbller
Member Avatar for dap62
0
96
Member Avatar for ReDuX

Ok, this is about as simple as it gets. This is a hit counter for your page that stores the count in a simple text file of your choosing. No need for a database, MySQL or otherwise. No complicated rubbish. Just one single function and one single file to store …

Member Avatar for DaveSW
0
140
Member Avatar for ReDuX

Well like my previous snippet but completing the collection i suppose, this snippet counts how long it takes to parse the page and displays it somewhere..

Member Avatar for mohamed badr
0
165
Member Avatar for ReDuX

You've seen those sites that say how many seconds it took to parse the page and how many database queries comprised the page. Well heres the database query bit...

Member Avatar for klinke
0
225
Member Avatar for Syneticus

Alrighty! My goal here is to add the specified information into a MySQL database, but then also include a script that goes back and checks to make sure that the entrie given does not already exist. If you have any corrections, or any ideas on how to do this, I'd …

Member Avatar for Ginetta
0
101
Member Avatar for DanF

Hi, this is my first post here, just wanted a place to post some PHP code for a Savant2 plugin I created. I hope that's ok. If you've never heard of Savant/Savant2, you should definitely visit its website. Savant is a very elegant template solution for PHP that stands out …

Member Avatar for Dani
0
145
Member Avatar for AdventDeo

Well you see, I'm not really sure how but I'm guessing I can cut the code below by about 70% of its length if I can turn the "mandatory fields" into an array. Anyone care to help? Thank you so much in advance! [CODE]<?php session_start(); if (isset($_POST['submit'])) { if (empty($_POST['cliname'])){ …

Member Avatar for AdventDeo
0
107
Member Avatar for severman

hi this is must be an easy question but i didnt find the answer to it anywere. could someone pls tell me how do i send an array from macromedia flash 8 to a php file? i have an array in flash which looks like this: [code] outboard[][] [/code] which …

Member Avatar for severman
0
104
Member Avatar for SYST3M4T1C

OK I'm trying to help my friend out with this template he has but the contact form is not working. Here is the XML document contactFormConfiguration.xml [CODE] <?xml version="1.0" encoding="utf-8"?> <!-- -- Please read this information to learn how to set up the contact form integrated -- into the template. …

Member Avatar for cwarn23
0
159
Member Avatar for ronny22

hi everyone please is the anyone who can show me how to make a add, edit and a delete forms my database is called gamelist on my database i have products table which has id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(100) NOT NULL, `body` text NOT NULL, `price` decimal(8,0) NOT …

Member Avatar for pritaeas
0
93
Member Avatar for veledrom

Hi, I use this code in Windows (wamp), it works fine. When i use it in Ubuntu it generates this error "Warning: Cannot modify header information - headers already sent by (output started at /var/www/toycar/header.php:9) in /var/www/toycar/classes/class.basket.php on line 17" There is no blank space anywhere. What do i do? …

Member Avatar for EvolutionFallen
0
71
Member Avatar for grr

For each individual row of an array, I would like it to sort by a function that I perform on each value. For example: Array { 1 => "great", 2 => "bad", 3 => "awesome", } and I have a function that would make great a 2, bad a 1, …

Member Avatar for grr
0
74
Member Avatar for Barman007

Im having trouble centering the content of this PHP code (please find code down the bottom fo this post) on my joomla site. I added [code]#google_map{margin-left:140px;}[/code] to the CSS in the hopes of centering it all but it only centered the map itself. Since then I have added the "google1" …

Member Avatar for Airshow
0
108
Member Avatar for valonesal

I have pages written in html that use javascript and css, what I would like to do is use php to change how the url comes out. So I would like the url to look like mywebsite.com/index.php?xx1122 or something like that without disclosing the location of the html files or …

Member Avatar for EvolutionFallen
0
146
Member Avatar for mark2326l

I'm trying to upgrade my server from Mac 10.4.11 Server, running Apache 1.3; PHP 4.4.9; and mysql 5.0.45 (all pages work fine) to Mac 10.6 server with the latest (default) Apache, php, and mysql. Any page with a mysql connection is blank I can connect to mysql through mysql admin. …

Member Avatar for mark2326l
0
209
Member Avatar for Enthused

Hi all, Ive created a pretty simple user system its all working well users can sign up and so on. Though i wanted to add extra security to this system so when the user wants to modify their password it asks for their old password otherwise they cant sign up …

Member Avatar for Enthused
0
294
Member Avatar for Devendra1

I have worked on Java but new to PHP. I want to know the scope of PHP. Where PHP works ? like JAVA ban be used to create desktop applications and on J2EE platform for developing WEB APPLICTIONS and JAVA has many API to work with. Q1. Can PHP be …

Member Avatar for ryuslash
0
112
Member Avatar for empoor

I'll start by publishing my code: [CODE]// query article $query1 = "SELECT page_title,author_id FROM articles WHERE category = 'fiction'"; $mysql_result1 = mysql_query ($query1) or die ("Query '$query1' failed with error message: \"" . mysql_error () . '"'); $fiction_articles = mysql_fetch_assoc($mysql_result1); // query author $auth_result = &$fiction_articles['author_id']; $query2 = "SELECT author …

Member Avatar for empoor
0
150
Member Avatar for Designer_101

Hi I know this topic isnt directly related to PHP however I understand many users in this forum may understand something further about this question. I have a webcam in a nightclub and I want to stream this live onto a webpage. This is probably very easy however i'd like …

Member Avatar for almostbob
0
150
Member Avatar for mynameis

Hello, I need to make an script that displays word "admin" or "regular member" etc below an username.e.g.If a member is admin it displays "admin" below his username every time he posts. like here in [URL="http://daniweb.com"]daniweb.com[/URL] whenever i post a thread it displays "Newbie poster" below my username. I don't …

Member Avatar for Designer_101
0
81
Member Avatar for Susan.LK

Hi, I think i am missing something obvious. The popup should bring up a page passing an id. Currently nothing happens but i can see the id is being passed into the varaiable when hovering over Link, how can this be chnaged. Below is part of the code [code=php]while($row = …

Member Avatar for Susan.LK
0
91
Member Avatar for diafol

Don't know if this is the best place to ask (possibly networking - no prob if you move me). Here goes: 1. A website has its admin area and email hosted externally. The domain name belongs there. Called the 'website' from here on in. 2. A front-end (Joomla) has been …

Member Avatar for diafol
0
87
Member Avatar for Kfd

I have a form which the user enter info. I have 2 buttons - 1 takes data to next page to save data. The other button recalculates and re displays the same page. The problem is I cant read the data in the second form. It is blank. How can …

Member Avatar for Kfd
0
88
Member Avatar for Auch

Hi guys! I'm still fresh on php and from time to time I hang on simple things. Well, this time I was trying to make an include with an onclick action but now I'm not even sure its possible the way I'm trying. Here's the code (problem on line 18) …

Member Avatar for codejoust
0
89
Member Avatar for just asif

hi.i am intersted to build a database and want to link it with other data base in sach a way that any entery in other database also appear in my database automaticaly.i hv knowledge of php and my sql.bt i dont know where to start any body there who can …

Member Avatar for slyme
0
100

The End.