39,320 Topics
| |
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 … | |
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.. | |
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... | |
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 … | |
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 … | |
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'])){ … | |
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 … | |
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. … | |
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 … | |
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? … | |
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, … | |
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" … | |
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 … | |
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. … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 = … | |
| 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 … |
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 … | |
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) … | |
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 … | |
i was wondering how to how seprate php from html while fetching rows from database.. . . [code] <?while($row=mysql_fetch_array($result)) {?> <td><?$row['firstname']?></td> <td><?$row['lastname']?></td> <?}?> [/code] can i separate php and html in above case.>? . . thank u | |
Morning people, I'm trying to embid php in javascript function and pass the information php read to a separate javascript page using js function [CODE]<script type="text/javascript" language="javascript"> function alerting() { //var getinformation = new Array(40); var information += <?php $sql = $conn->query("select valgroup_id,valgroup_desc from validating_group LIMIT 1"); if(mysql_num_rows($sql) > 0) … | |
Can some one help me to create a form & send the results to my e mail address?? and cc as well to another one ? Field Names : Name , Telephone No (should get validated to c the user enters more than 10 numbers) , E Mail address (should … | |
hi friends, my code is as follow, [ICODE] ------sql query here------------ $result = mysql_query($sql): while ($row = mysql_fetch_array($res)) { $row[tableLegends]; $link[]=$row; } [/ICODE] when i use foreach loop in template, it give the inavlid argument "Invalid argument supplied for foreach() error" [ICODE] foreach($link AS %links){ --------code here------- } [/ICODE] i … | |
any body have binary Tree programming coding in PHP na send me give blow id., id : [email removed] or if u know the concepts na explain me | |
Hello, I've read on how to insert properly into two linked tables using mysql_insert_id() function from: [url]http://www.webproworld.com/web-programming-discussion-forum/87197-php-insert-different-records-into-multiple-mysql-tables-same-unique-id.html[/url] now how about if i want it to be from 4 linked tables? can I still use the function? and I want some to be a dropdown lists. My tables are: Client(clientID, Name, … |
The End.