39,402 Topics

Member Avatar for
Member Avatar for genieuk

Hi, I'm new here, Does someone have a script that asks user to enter there day/month/year and if over xx minimum age they are taken to website, if under age they are told they are under age and redirected to a link i specify. Possibly with a function to choose …

Member Avatar for genieuk
0
265
Member Avatar for jameswoodhouse

Hi there what i'm trying to do is: return a car manufacturer from a MySQL database and have the text returned a hyperlink to the car manufacturer website. The below just returns the manufacturer without a hyperlink: [B]$row['manufacturer'][/B] Would i make a row in the database called 'carmakeurl', store the …

Member Avatar for vidaj
0
205
Member Avatar for superyo

i got this error: [code]Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\xampp\htdocs\db.php on line 13[/code] my php code is this: [code=php] <?php //Database Info $dbhost="localhost"; $dbuser="root"; $dbpass="something"; $dbname="somedb"; $table="users"; //Connect to Database $con=mysql_connect($dbhost, $dbuser, $dbpass); mysql_select_db($dbname, $con); $user=$_POST['user']; $pass=$_POST['pass']; $query = "SELECT * FROM $table …

Member Avatar for martin5211
0
261
Member Avatar for kssi89

Hello everyone! I've been able to successfully implement this bit of php that alters the color of tables for each row, but I am having a difficult time implementing it on our current web app. I am thinking I have misplaced something because the output shows one grey row where …

Member Avatar for komang80
0
154
Member Avatar for jbobfunky

Hello Everyone! I am having the most difficult time figuring out a nested loop i would like to perform. The Senario: I have a simple flash image gallery that accepts an XML scheme: The page: [url]http://www.jbobfunky.com/multipage_site/gallery.php[/url] An example of the XML scheme i am trying to render out with PHP …

Member Avatar for jbobfunky
0
125
Member Avatar for nathenastle

Hi this is nathen can you please some one help me the following is my form what i want is when ever i fill an empty value that is nothis in my text box and when click on shareacoupon button i need a message that empty values are not allowed …

Member Avatar for samarudge
0
123
Member Avatar for solocky

Hello all i have (after much googleing) written a php script which when activated appends to a main text file with the text seen below in this exact format type= name=---------------------------------------------------------------------------------------------- # type= name=(USER INPUT HERE) # type= name=---------------------------------------------------------------------------------------------- # what i need is a simple webform with one input …

Member Avatar for solocky
0
153
Member Avatar for misticles

im trying to display the results of a search when users use the drop down menus. ive been at this for 2 wks and cannot get it to work at all. please help :( [ICODE] <?php $programme = $progyear = $subjectname = $examyear = null; //declare vars $conn= mysql_connect("localhost", "root", …

Member Avatar for misticles
0
149
Member Avatar for Stefano Mtangoo

Hi all, I have MP3 player from [url]http://www.premiumbeat.com/flash_resources/free_flash_music_player/multiple_tracks_mp3_player_menu.php[/url] and I want to put it in my page. I want it to appear in every page. I'm pretty new to many PHP stuffs and with PHP page I judt do simple include statement. How do I do that? Here is their …

Member Avatar for Stefano Mtangoo
0
110
Member Avatar for bthaxor

hey everyone, i've been using a wordpress blog for a while now, and i recently decided i'm tired of the hassle of having to manage all the plugins, spam comments and updates. i don't know a lot about php either, however i am a web designer by hobby: so i …

Member Avatar for Airshow
0
157
Member Avatar for jda318

I have a form that I am trying to post to a table, everything works fine except for the one multiple select option I have. When it posts to the table, only the last selected option shows. How do I get it to either a. post to separate fields in …

Member Avatar for GameGape.com
0
157
Member Avatar for JimD C++ Newb

Good morning, all! As the title suggests, I am having a syntax error. I'm using Notepad++, and I don't seem to be missing any curly braces. Is there somthing else I'm missing? Thank you [code] <?php session_start(); include('header.php'); if((isset($_GET['movie_users_id'])) && (is_numeric($_GET['movie_users_id']))) { $movie_users_id = $_GET['movie_users_id']; } elseif ((isset($_POST['movie_users_id'])) && (is_numeric($_POST['movie_users_id']))){ …

Member Avatar for vicky_rawat
0
181
Member Avatar for macfi

Hi All I am a bit of a begginer in PHP. How do I store multiple vales in a cookie? I am going along the lines of: [code=php]$data = array('apple'=>'green', 'orange'=>'orange', 'banana'=>'yellow');[/code] then something like (not sure about the sytax here):: [code=php]$var=implode($data); setcookie('data', $var, time() +3600);[/code] Basically how do I …

Member Avatar for macfi
0
4K
Member Avatar for kssi89

Hello, While putting together a sticky form I got this error: Parse error: parse error in C:\wamp\www\base_ball\insert_player.php on line 175 The problem is that this line of code does not exist. The script ends at line 174. Here are the bits of code I have altered: [CODE] <?php if (isset($_POST['Insert'])){ …

Member Avatar for samarudge
0
102
Member Avatar for Newbie 123

Hi I have some code where the user inputs some stuff and then i would like it to get added to a database. The problem is dont know how to make it so that it only adds to the database when the user has submited it? Any ideas ?

Member Avatar for Newbie 123
0
184
Member Avatar for jakesee

Hi all, ok this is quite general in a sense but there's no other approperiate forum to put this so here goes: When thinking how the langauges resolve IP when given a hostname, am I right to say that client-side languages like javascript uses the local computer's host file and …

Member Avatar for martin5211
0
220
Member Avatar for fitse

I developed a forum in php that works only in English but I wanted to make it work in another language as per the user request can anyone please tell me how. thanx in advance

Member Avatar for cwarn23
0
208
Member Avatar for praveen_dusari

hi all, i want a different views to display my products for users like in this site [URL="http://www.naaptol.com/buy-online/WO-shopping-best-deals-W6O/cameras/digital_cameras.html"]http://www.naaptol.com[/URL] in this site user can see different views like grid view,consise view and list view and also the page displays very quickely in this site,how can i acheive this if i use …

Member Avatar for praveen_dusari
0
127
Member Avatar for Designer_101

Hi I'm doing a project for express and star delivery. I have a varchar field for a week in my database The name is of the field is [B]28-03-09[/B] It then lists how much each customer owes ID ---- Address ----- 28-03-09 ------ will 1 29 Broomy 1.20 1.2 I …

Member Avatar for martin5211
0
81
Member Avatar for weblover

hi all ..i'm working on php application .......and i need to insert data into a filed in my table but in a certain condition ......exp:(insert into users (posts) values(...) where ...) i can't do this .....what should i do ? please help and thnx in advance

Member Avatar for Designer_101
0
346
Member Avatar for csharplearner

Hi all, i have this bbcode for a [URL] which is not working. Please let me know whats wrong with it. [code] // Perform URL Search $post = preg_replace("/\[url\]([$URLSearchString]*)\[\/url\]/", '<a href="javascript:go('$1','new')">$1</a>', $post); $post = preg_replace("(\[url\=([$URLSearchString]*)\](.+?)\[/url\])", '<a href="javascript:go('$1','new')">$2</a>', $post); [/code] Thank you.

Member Avatar for martin5211
0
514
Member Avatar for ahmadjhoney
Member Avatar for Designer_101
0
84
Member Avatar for KJATL

Hello, I do not know if I fully comprehend the use of post. My understanding was that because $_POST was a superglobal, the values set applied to all pages after having been set. Here is the problem I am facing. 1) User enters an id number into field to delete …

Member Avatar for meleo
0
117
Member Avatar for dipakxyz

Hi , i am developing the bidding site in which customers and vendors belongs to different timezones,customer can place an order provided the order should be placed on or before 3pm GMT time at a spcified day like today, tommorow,.........After 3pm of lasting day,customer should not be able to place …

Member Avatar for samarudge
0
79
Member Avatar for alexgv14

I have been trying to format a date that I receive from a value in a mysql database. The format in mysql is as follows. 1986-08-02 I want to convert that to Aug. 2, 1986 I tried the date function in php and it was not working for me. Anyone, …

Member Avatar for Josh Connerty
0
161
Member Avatar for 7arouf

Hi there, i have a quick question. What is a good software that we can use to build php pages??? I heard that netbeans is a good one!! i never used php before, and would like to have my own website using php. It's not a complex website, it's fairly …

Member Avatar for BzzBee
0
314
Member Avatar for hbmarar

Hi to all, I integrated the supercali calendar to my office intranet application using a iframe. I also changed the meta attributes and made sure it is not cached. Still my boss does not find the events or calendar items, instead gets a blank calendar. I tried even the frame …

Member Avatar for BzzBee
0
108
Member Avatar for alexgv14

I wrote this php birthday script to send emails to people whos birthday is today. I know there is a more efficient way to do this, but because i did not use the standard unix timestamp in my mysql database. I had to do it this way which was a …

Member Avatar for BzzBee
0
168
Member Avatar for PsyberMind

Hey everyone, first post, but I've browsed here enough to know I'm in the right place (of course, if its in the correct FORUM is another story) Ok, first, the breakdown.. I have a PHPmotion script running as a BACKEND. My users will ony see the videos via a "popup" …

Member Avatar for PsyberMind
0
257
Member Avatar for jameswoodhouse

Hi there i'm trying to display an image on a webpage. The image's URL is stored in a mysql database. i just want to output the image to the display via PHP. Any ideas? Thanks

Member Avatar for Designer_101
0
105
Member Avatar for jyotiu

[CODE]<div style="float: left; font-variant: small-caps;">movie link ([COLOR="Red"]zshare[/COLOR]) :</div><div style="float: left; margin-left: 10px;">Link <a rel="nofollow" style="color: rgb(0, 0, 221); text-decoration: underline;" target="_blank" href="[COLOR="Red"]http://www.zshare.net/video/58502819262e0ecc/[/COLOR]">[COLOR="Red"]1[/COLOR]</a> </div><div style="float: right;"><a href="javascript:DeadLink('http://www.movies-on-demand.tv/report.php?id=2845')"><img title="Report Dead Link" src="http://img.movies-on-demand.tv/templates/mod/images/broken.gif"></a></div></div><div style="margin-top: 2px; width: 550px; height: 20px; background-color: rgb(255, 255, 255); font-size: 13px;"><div style="float: left; font-variant: small-caps;">movie link ([COLOR="Red"]zshare[/COLOR]) :</div><div style="float: …

Member Avatar for martin5211
0
133
Member Avatar for The Midnighter

I'm trying to create a form that updates a MySQL record when the user clicks a LINK, not a button. I don't want to open another page for this. There really isn't a need for me to post my code right now, as I'm trying to figure out how to …

Member Avatar for Designer_101
0
129
Member Avatar for cyberbaffled

The dll is in the directory specified in the apache2.2 configuration file. Yet restarting the apache server generates this error message: "httpd.exe : syntax error on line 128 of C:/Program Files/Apache Software Foundation/Apache2.2…/conf/httpd.conf : Cannot load c:/php5/php5apache2.dll into server. The specified module cannot be found." Any thoughts on why it …

Member Avatar for Designer_101
0
208
Member Avatar for hemlii

I basically need an ajax function which helps me by fetching a next record in the form which pops up dynamically on every edit click.. plz plz do help out guyss... Thanks and Regards, Hemlii...

0
49
Member Avatar for szita1

hi I started using NuSphere but when the php code runs, I keep getting messages "Strict Standards: blabla...". What should I set to get rid of the messages? Thanks

Member Avatar for pritaeas
0
34
Member Avatar for Vai

Using this code: [code] $query = "select * from `music` WHERE `music`.`catid` = '" . $catid . "'"; I cannot seem to add "ORDER BY artist so that it would be in alphabetical order. [/code] Second issue: What do I need to do to have Display X amount of records, …

Member Avatar for somedude3488
0
109
Member Avatar for rajeesh_rsn

Hai I had a search script in my web page. There are two inputs 1. Type 2. Location ( list with values --> Any,India,China) And location is not mandatory for search. When user submit search in database and show results. my query is like this [code]"SELECT * from dbname where …

Member Avatar for JRSofty
0
75
Member Avatar for shadiadiph

how do i find out the row size in kb? is it possible to automatically insert the size I have a mail table and have the field is there a way of automatically creating the value on insert by resetting the values of the field?? [code]`messagesize` int(255) NOT NULL default …

Member Avatar for shadiadiph
0
136
Member Avatar for justinmyoung

I'm working on implementing a php registration/login script. When a user registers and then login - they are directed to a page that I would like to display a form, such as you would see in a contest. The person would fill out the form, entering the information into the …

Member Avatar for rm_daniweb
0
3K
Member Avatar for Tekkno

I am new to PHP. I have a MySQL database with a column of URL's. I have a PHP script that randomizes the URL's and echoes the result to the browser. I just need a need a way to turn the randomized URL into a clickable link. I would imagine …

Member Avatar for Tekkno
0
2K
Member Avatar for nschessnerd

Hey, I want to integrate a phpbb login with my site so i added the following code: [code]<?php define('IN_PHPBB', true); $phpbb_root_path = "../forum/"; $phpEx = substr(strrchr(__FILE__, '.'), 1); include($phpbb_root_path . 'common.' . $phpEx); include($phpbb_root_path . 'includes/functions_display.' . $phpEx); include($phpbb_root_path . 'includes/bbcode.' . $phpEx); // Start session management $user->session_begin(); $auth->acl($user->data); ?>[/code] …

0
60
Member Avatar for mrcniceguy

i have a script which i`m using in ma site,for friends system. that if somebody accept me as friend,i appear in his friend list also he appears in my friends list. That works fine. Also when displaying the friend list is ok!!!(In which to all scripts i used serialize and …

0
64
Member Avatar for Vanq69

Hi guys, I cant seem to work out a way to keep my paragraphs when using a text area as part of a form. I send the form using ajax and then display the text again in a textarea to allow editing before finally displaying it on a standard page. …

Member Avatar for Ezzaral
0
94
Member Avatar for rajeesh_rsn

I had a web site ( Real Estate) and visitor can add data. But I only need to add in site only after my approval. So I make a column in database that "approved". When an user submit data then Enter the value "no" in "approved" column. When I approve …

Member Avatar for Designer_101
0
127
Member Avatar for kings

hi for posting a new thread we are using editor in daniweb.i want something simple like this.can anyone tell me how to achieve this. thanks in advance

Member Avatar for JRSofty
0
93
Member Avatar for veledrom

Hi, Code below generates this error [inlinecode]Warning: Missing argument 1, 2, 3for MyWebpage::pageElements(): Class_for_HTML.class on line 18 )[/inlinecode] but i cannot solve the problem. Thanks [code] <?php class MyWebpage { var $header = "<html>\n<head>\n"; var $title; var $keywords; var $content; var $footer = "</body></html>"; function generatePage() { echo $this->header; $this->pageElements(); …

Member Avatar for veledrom
0
52
Member Avatar for Newbie 123
Member Avatar for Designer_101
0
94
Member Avatar for jyotiu

Hi All I am new to PHP and just got a project ;) that needs me to extract links from the page, i have got the part of page that have links in a string and was wondering if i can extract all the links in that string. String is …

Member Avatar for martin5211
0
281
Member Avatar for HITMANOF44th

making php code to pull data for database now it pulls most data fine with the like statment now is there anyway to make it pull both things that are lower and uper case ? [code=syntax]$query = "SELECT * FROM `users` WHERE `$lookby` LIKE '%$lookfor%'";[/code]

Member Avatar for Designer_101
0
102
Member Avatar for emarshah

Hey All, I have a Register.php page, whose code is as follows. On Register Me button, i want to restore values back in text boxes, when some invalid input is in textboxes. How can i do this? [code] <?php session_start(void); ?> <html> <head> <title>Login System Using PHP</title> <meta http-equiv="Content-Type" content="text/html; …

Member Avatar for Designer_101
0
145

The End.