39,323 Topics

Member Avatar for
Member Avatar for chalasesha

i am developing a social networking site as my project in college. i have a doubt on php and mysql.. """ I TWITTER OR FACEBOOK OR IN GMAIL WHEN THERE IS NO ACTION FROM USER(BROWSER) THAT IS, THE USER LOGS IN AND STAY STILL(NOT RELOADING THE PAGE). HOW CAN WE …

Member Avatar for chalasesha
0
144
Member Avatar for sowmiya.aariya

[CODE=php] $file=file("templates/index.html"); $rcontent=join("",$file); preg_replace("/{{(.*?)}}/e","$$1",$rcontent); //explain this regular expression statement alone print $rcontent; [/CODE]

Member Avatar for pritaeas
0
59
Member Avatar for prem2

Hi, I want to create a im(Instant Message ) bot for my company.So, i searched in our forum.I found the below url. [url]http://www.daniweb.com/forums/thread9761.html[/url] But, i did not get the more information in that thread and more number of links are expired .I want to send instant message to gtalk,yahoo from …

Member Avatar for abhinavsingh
0
157
Member Avatar for prem2

Hi all, I want to need the information about xmpphp .I have downloaded the code form the google.But i did not get the detailed information.So,Kindly provide the tutorial of xmpphp to send messages to gtalk. Thank you, With Regards, Premnath.M

Member Avatar for abhinavsingh
0
471
Member Avatar for roachae

I'm using the Kohana PHP framework, not very familiar with Kohana and only a novice with PHP and javascript. I'm working on a project where I have a form::dropdown filled with a list of categories and another dropdown (second one using multiple selections) which needs to be filled dynamically based …

Member Avatar for aquilax
0
270
Member Avatar for BzzBee

hi, I have a simple website having russian content, but its not displaying right in website. I am using even following meta tags [CODE]<html lang="ru"> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <meta http-equiv="content-language" content="ru"> [/CODE] But still question marks are there. Please help me regarding this issue thanks in advance

Member Avatar for BzzBee
0
3K
Member Avatar for ceeandcee

Good Morning, I am working on a hockey pool site and am trying to build a standings page. You can see my output here [url]http://www.cornwallfantasyhockey.com/cfhl/standings2/[/url] I would like to be able to write code that will sort the PTS column in descending order, however the PTS value in each row …

Member Avatar for ceeandcee
0
156
Member Avatar for gazza7

Hi I'm a newbie to PHP and mySQL I have the following problem. I have a database with mp3's which I query by artist name, I then print the results in a table with a maximum of 15 rows. I can then have a next, prev, last and first button …

Member Avatar for gazza7
0
195
Member Avatar for nurul_208

i have a prob to insert the data that i've select from the mysql database into the textbox in php..[CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>New Doctor Record</title> </head> <body bgcolor="#FFFFFF" text="#000000"> <p>&nbsp;</p> <?php $host = "localhost"; $uname = "root"; …

Member Avatar for pritaeas
0
180
Member Avatar for eswar.aspire

Hello, I am wondering to implement this logic. Any suggestion or help I have two iframes 1) iframe 1 is Navigation menu(loaded with flash menu). <iframe name=”menu”/> 2) iframe 2 is load the web page. <iframe name=”page_load”/> When I click the navigation menu the corresponding web page loaded. In one …

Member Avatar for eswar.aspire
0
635
Member Avatar for Ender330

I am having trouble with something that I know is probably really simple: I have a bunch of photos in a profile image folder. I want to call the image based on the id of the folder like this main-$id.jpg. I need to know the PHP that can do that... …

Member Avatar for Ender330
0
92
Member Avatar for ryan311

i have a problem in sharing a file to other user here is my code i get lag when i press the share submit button. share.php [CODE] <form action="sharefile.php" method="post"> <p><strong>Enter Jum/Email ID:</strong></p> <textarea name="share" style="width: 400px; height: 60px;"></textarea> <p>(Jum ID or Primary Email separated by comma)</p> <input type="submit" name="submit" …

Member Avatar for diafol
0
119
Member Avatar for paptamas

Hy all. I need to get the content of multiple pages from a single domain. Now for each page I use an fsockopen connection, and I get the content of the page this way: [CODE] <?php $fp = fsockopen("www.example.com", 80, $errno, $errstr, 30); if (!$fp) { echo "$errstr ($errno)<br />\n"; …

0
85
Member Avatar for mattyd

I have read through the FAQ sticky regarding this topic (and have also searched/read here further on this topic) but I am still receiving the following error: [B][I]Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/a4542527/public_html/index.php on line 8[/I][/B] The scripting for this is basic at …

Member Avatar for richieking
0
141
Member Avatar for kesh1000

hi can anyone tell me why doesnt my page redirect if variable $Valid is = 0 thanks also if you could correct me would be appreciated [CODE]<?php $name = $_POST['Name']; $age = $_POST['Age']; $amount = $_POST['Cover']; $plan = $_POST['Plan']; $benefit = $_POST['Benefit']; $Year = DetYear($plan); $Valid = ChkAge($age, $Year); $redirect …

Member Avatar for nonshatter
0
79
Member Avatar for davidjennings

Hi all, I am using WAMP2 on my desktop. each time I run a php page the code is echoed to the screen. The icon in the lower tool bar is white/grey I have had in working I then installed new anti-virus software and that is when I noticed that …

Member Avatar for ivan3510
0
171
Member Avatar for dschuett

Hi, I have a function that I use within my upload script that creates a thumbnail of each image that is uploaded (using php's GD library). The problem is, the thumbnails look absolutely horrible. They are not so much distorted, but just VERY blurry. Here is my function that is …

Member Avatar for dschuett
0
167
Member Avatar for JoeyWong

Hi all, what i want to do is when I select institution A, then the school of institution A come out at the second selection only.. when I select institution B, then the school of institution B come out at second the selection...etc Help...Thanks~ <?php $sql = "SELECT DISTINCT i_name …

0
45
Member Avatar for dschuett

Ok, so i have a form that an ADMIN uses to registers a user (adds them to a database and gives them a username and password so they can log on to view their photos) As soon as the form is submitted the admin is then directed to a page …

Member Avatar for dschuett
0
78
Member Avatar for dschuett

Hi everyone, I have been working on an image gallery to allow people to view/upload their photos. I have everything working pretty well except that I want to modify my upload script so that a thumbnail is generated of each picture that is uploaded and stored in a separate directory …

Member Avatar for dschuett
0
181
Member Avatar for dschuett

I upload pictures and allow users to log in and view them for 30 days using the following statement SELECT * FROM pictures WHERE date >= DATE_SUB(NOW(), INTERVAL 30 DAY) and email='$session_email When i upload a picture for a user the name is stored as a field in a table …

Member Avatar for dschuett
0
107
Member Avatar for dschuett

The following script works GREAT. It uploads an image as well as adds info to mysql about the picture and its location. The problem is that the function "CreateThumbs" actually loops through the entire uploads directory and generates a thumbnail EVERY TIME you upload a picture. I am VERY new …

Member Avatar for dschuett
0
155
Member Avatar for John Linux

Hi, One of my portfolios for a university canoe club committee is to run the website in 2010/2011 season. I would like to improve the photo gallery substantially, and am looking for a ready-made, preferably freeware solution with the following features. - Display photo's from a directory on the server, …

Member Avatar for pritaeas
0
136
Member Avatar for gchurch

hey i have two radio buttons: 'Accept' and 'Don't Accept' when the form submit button is pressed and the 'Accept' radio is not checked i want the page to reload without sending the info accross... [CODE]<form id="form1" name="form1" method="post" action="PaymentFormProcess.php"> <table width="80%" align="center"> <tr> <td width="43%"><strong>Do you accept these terms …

Member Avatar for gchurch
0
4K
Member Avatar for chineerat

hi! I would some advice or guidance to create a timetable or schedule [URL="http://www.dentistry.usyd.edu.au/upload/timetable_example.jpg"]like this[/URL]. the data i am pulling from my db are: Begin and end time of courses, course names and day of the week. Also I would like a notification of when 2 courses overlaps. for example: …

Member Avatar for chineerat
0
4K
Member Avatar for Ender330

Maybe someone can help me with this. I have a sight that is members only and right now there is no charge to join...You just put in your Username, password and email and you are granted access. What I want to do is when they click signup...take them to a …

Member Avatar for dennishall
0
183
Member Avatar for rue...

Im creating an e-commerce site.Need help with the code for transactions such that if a button is clicked,the quanity of the products is reduced in the products table.Say i had ten items and two are bought,the value in the quantity field should come to 8

Member Avatar for Borzoi
0
92
Member Avatar for eswar.aspire

Hello, I getting an error when generating an XML from php and couldn’t find any duplicate root element or space in my XML document. After generating an XML document, it should be saved in specified directory get from POST variable. Error Details: Only one top level element is allowed in …

0
87
Member Avatar for iaaan

Hey, I'm uploading an SVG file, parsing the XML and then using PHP to redraw the image using the GD library. The SVG files are made with CorelDraw. Everything is going well, I can get the picture height, width, text and images. Just one thing I'm not sure about. Shapes …

Member Avatar for pritaeas
0
185
Member Avatar for keok
0
53

The End.