39,402 Topics

Member Avatar for
Member Avatar for Mike D

Howdy folks! I'm having a bit of a dilema with a small piece of my coding. I'm working with a database that stores tour/gig dates for a band. The table has fields that include year, month, day, date, venue_name, name_ext, address, and a couple others. The field "venue_name" is the …

Member Avatar for Mike D
0
94
Member Avatar for ashneet

What i am trying to do is to make a like that sends some info to next page so that PHP could use query for the deta sent. OK here is how the hyper link looks like and i want it to send some variable to next page: [HTML]<a href="index.php" …

Member Avatar for Killer_Typo
0
203
Member Avatar for ashneet

what i am tring to do it to show a catalog with php and stop php from displaying any data to the cusomer if table does not have any information it. for example i want to use if state ment to stop and skip if data in the database table …

Member Avatar for Troy
0
129
Member Avatar for BeyerCorpuz

Dear Daniweb: I am using a book called PHP/MySql for the abs[PHP]Apache[/PHP] olute beginner. It includes a cd to installl a PHP triad. :p :cool: Everything goes fine with the install however when I wrote code to save a a .php the program will not work. I have installed PHP, …

Member Avatar for Troy
0
57
Member Avatar for john2k

Is it possible to compile php5 (or really any php version) into the apache2 binary? I'm not looking to install & load php as a shared module. What I'm trying to find out is whether or not it's even possible to compile php5 into apache2 statically. I've been reading through …

Member Avatar for lucian
0
138
Member Avatar for aparnesh

Hi When I am trying to connect to mySQL from PHP, I am getting the error "Client does not support authentication protocol requested by server; consider upgrading mySQL client" . I am using PHP 4, mySQL 4.1 and Win XP Pro. The error is occuring both for Apache & IIS. …

Member Avatar for aparnesh
0
131
Member Avatar for senexom

Hey does anyone know of a way to crop images automatically while still focusing on the subject in the photo? I have a gallery of pictures and I would like to make all the thumbnails square shaped, just thought maybe someone knows if there is such a thing as smart …

Member Avatar for senexom
0
90
Member Avatar for michael123

Hi, I'm new to php, I want to know what's the better time to use POST instead of GET(or GET instead of POST)? what's the advantage to use one rather than other. Thanks.

Member Avatar for Electrohead
0
181
Member Avatar for senexom

Hi, Perhaps this thread does not bellong in the PHP forum, but since I'm working with PHP/Apache I'll try here first. I have setup subdomains on my site and realized that links are not relative to the wwwroot, but relative to subdomain root, I was wondering if anyone knows of …

Member Avatar for senexom
0
143
Member Avatar for Sean_F

Hey, im trying to make a PHP Login box for a program that i am making for my A Level project however, im new with PHP so dont really know much about the code :( lol. this is what i have so far <html> <body> <?php $username = "Admin"; $password …

Member Avatar for Sean_F
0
91
Member Avatar for alcoholic1

Hey all ive been trying to get the code bellow to work which should make an update password fourm but im not having much luck if any one can tell me why it's not working i will jump up and down around the room looking stupid lol [CODE] <?php require_once('Connections/koc.php'); …

Member Avatar for senexom
0
81
Member Avatar for chrisxkelley

I found this book extremely useful in learning and using php, mysql and apache together. it's great

Member Avatar for hollystyles
0
175
Member Avatar for xeno439

I am working on a site [url]http://flashmailforms.com[/url] that generates code for php mail form used with Flash. I am thinking of expanding this to include other simple php scripts. Anyone have any ideas how I can get the most useful and most "free" simple scripts? I want to make pages …

0
77
Member Avatar for ashneet

Hi all First thing is that i am new to php and i could get stuck on one semicolen. OK here is the code that i have problem with and the problem is that results given to both the query are same for some reason and i cant figure it …

Member Avatar for ashneet
0
127
Member Avatar for Koldar

Hi there, I was trying to get a script working that will fire me an email when my database cannot be connected to. This is what I have and I'm wondering if it looks right to you php experts. :) $conn = mysql_connect ($server,$user,$pass) or die(mail("$SendToEmail", "$yoursubject", $emailtext . mysql_error(), …

Member Avatar for Gary King
0
176
Member Avatar for namit

I am just looking to tidy the output form echo '<body bgcolor="#FFFFFF" text="#000000"></body>'; echo("Ping Output:<br>"); echo "<pre>"; $i = "11"; //check target IP or domain system("ping -n 1 192.168.2.$i"); echo "</pre>"; I am just looking for somthing like this Reply from 192.168.2.11: bytes=32 time<10ms TTL=128 With nothing else.

Member Avatar for techniner
0
149
Member Avatar for bgharper

Hi all. I am having a problem I've not encountered before. When using mysql_fetch_assoc() in while(), I am getting the following error: [INDENT][B]Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in archives.php on line 81[/B][/INDENT] However, when taking it out of the while(), it works fine. The …

Member Avatar for Troy
0
191
Member Avatar for jime0726

hey guys, i don't program at all , i just run and maintain the servers,so i really don't know much about php but my manager is trying to create web based bill menu for our company using php. he wants to be able to create a user, without being logged …

Member Avatar for jime0726
0
219
Member Avatar for ashneet

Hi, I am new to PHP and still am learning so i was just wondering that how would i send email through PHP because i was making a program that askes the use for email and send it to me so i can respong to them

Member Avatar for sarahk
0
180
Member Avatar for stangfl

I am fairly new to PHP and MYSQL and was having a few problems getting a database search script to work. The data is input through an HTML form with an input field and drop down box to narrow results. This code will work for searching one table but as …

Member Avatar for Troy
0
138
Member Avatar for namit

I have the following code How do i first edit this to take errors and also to be able to attach files. [PHP] <?php //Gets these from page before $mail_ref = $_GET['mail_ref']; $mail_title = $_GET['mail_title']; $mail_location = $_GET['mail_location']; ?> <title>RFC Job Application</title> <link rel='stylesheet' href='../../rfcStyle.css' type='text/css'> </head> <body bgcolor='#ffffff' leftMargin='0' …

Member Avatar for techniner
0
213
Member Avatar for bennetjosem

in my site there is option for users to post comments. when they add a hyperlink like [CODE]<a href="www.web.com" target="_blank">link</a>[/CODE] it is stored in db. when i retrive it the link is like this [url]www.mywebname.com/www.web.com[/url] any solution for this?

Member Avatar for bennetjosem
0
108
Member Avatar for bennetjosem

i got a page index.php. i got a link over there to download.php. in download.php i'll do some mysql things. (like count file download...) and redirect the browser to some file 123.zip. Wot i really want is. I dont want to go to download.php instead the browser should remain in …

Member Avatar for bennetjosem
0
235
Member Avatar for NilovSerge

Hi, all! I run in PHP процедуру MSSql-procedure: $Stmt= mssql_init( 'ProcName', $Con ); ... $Result= mssql_execute( $Stmt, true ); if ( !$Result ) { echo mssql_get_last_message(); ... The problem is that if this proc generate an error(for ex breaking the unique index), mssql_get_last_message() gives "The statement has been terminated." but …

Member Avatar for Troy
0
167
Member Avatar for paradox814

I need to load a value from a recently posted page... [php]for ($i=0; $i<10; $i++) { $_SESSION['someVar'][$i] = $_POST['someVar'][$i] $_SESSION['anotherVar'][$i] = $_POST['anotherVar'][$i] $_SESSION['yetAnotherVar'][$i] = $_POST['yetAnotherVar'][$i] }[/php] now the session part works just fine, but the $_POST part just blows up on me! How can I fix this? I want to …

Member Avatar for Troy
0
191
Member Avatar for tyty

Hi I have attempted to install Apache/PHP on a new WinXP Home machine. I have it running succesfully on a Win98 machine. Apache works fine. PHP doesn't. I get the following Apache log error when trying [url]http://localhost/phpinfo.php[/url] - File does not exist: c:/webroot/php/php.exe/phpinfo.php. phpinfo.php is in c:/webroot. PHP is installed …

Member Avatar for Troy
0
158
Member Avatar for Yuki H.

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/user/public_html/im2db/image.php on line 14 This is the error I am getting Here is the code: Image.php Am I supposed to add a exit(); after $result = mysql_query ($sql, $conn); line? [PHP]<?php // database connection $conn = mysql_connect("localhost", "user", …

Member Avatar for val542
0
227
Member Avatar for symoore22

http://ww.bestblanks.co.uk/media.php hi im not sure what im doing wrong with this: have a look at the above url: each product name is suppose to open a small window which will go on to display a description of the product: however when you click on title there is an error and …

Member Avatar for tgreer
0
193
Member Avatar for Knad

Hello, I have just begun recoding my site and whenever i use PHP to put data on a page via an IF statement it overlaps any cells that are below it, and it also seems to be extending my left menu to the right. The left menu works when logged …

Member Avatar for Yuki H.
0
156
Member Avatar for bennetjosem

This one isnt working! [code]function insertpath($num){ echo " <td colspan=\"3\" align=\"left\"> <br>\n"; echo " <b>Date Published</b>:",$Date_Added[$num] ,"<br>\n"; echo " <b>Sample</b>:",$Sample_Views[$num],"</td>\n"; } insertpath(0); [/code] But this one Works [code] echo " <td colspan=\"3\" align=\"left\"> <br>\n"; echo " <b>Date Published</b>:",$Date_Added[$num] ,"<br>\n"; echo " <b>Sample</b>:",$Sample_Views[$num],"</td>\n";[/code] Well not woking in the sense the values …

Member Avatar for senexom
0
136
Member Avatar for Young Teck 06

Okay, here is the thing, I would like to have BugZilla to run for my site bug tracker, unfortunately I cannot get it going, I have some money in my PayPal and anybody who is willing to help me out on getting it installed and tell me what I have …

0
99
Member Avatar for bennetjosem

well what i want is if my php page generates any error it should automatically redirect to my index.php. please note any error (mysql or sytqax or anything else. )

Member Avatar for senexom
0
150
Member Avatar for moosigal

I'm in need of a PHP tutor/instructor. Does anyone have any recommendations? My background is in front end (HTML, JavaScript, CSS), and I'm having a change in my job at work and need to get up to speed quickly. I'm not even sure what book(s) to pick up. I do …

Member Avatar for Atomical
0
361
Member Avatar for tehbacon

ok, lets say i have: $array = array(1, 2, 3); is there a php command function that i can use that will let me have teh first item in teh array become varible $year, teh second item $mnth, and teh last item be $date?

Member Avatar for aboyd
0
92
Member Avatar for Atomical

I've been coding php for about four years now on and off. I'm attempting to write a script that will replace links on a page with another link. I'm debating whether it's even worth it to try to code something with strpos. I was of the opinion that preg_match would …

Member Avatar for Atomical
0
210
Member Avatar for stevoo

basicly i have a vbulletin forum and i am trying to create a simple web page , now the thing that i do not now is how can i obtain the current Members that are registered in the forum and show it in my web page

Member Avatar for Gary King
0
209
Member Avatar for ashneet

Hi All I need help and i am new to php so bare wih me :confused: what i m tryin 2 do is that add poduct shipping handeling togther to get an avraged rate so this is the part of code Troubling me: [CODE] $nrow = mysql_num_rows($result); if ($Vh4 == …

Member Avatar for ashneet
0
285
Member Avatar for sharp_edges

Example : [url]http://rpol.net[/url] I am trying to create a site of the same nature and trying to avoid "Cgi". A Few questions: The example above allows users to create threads in allowed areas only. Further in some areas user can only post.. In others they can Admin thier threads.. I …

Member Avatar for Troy
0
255
Member Avatar for Gnome_101

I have the following code, which tries to see if someone selected a drop down menu item that is already part of the database. If it is, then the error message should show up. [PHP]$size_of_user_array = count($user_selects); $size_of_db_array = count($already_in_db); for($y=0;$y<$size_of_user_array;$y++) { $input = $user_selects[$y]; for($r=0;$r<$size_of_db_array;$r++) { //echo "Already in …

Member Avatar for Gnome_101
0
121
Member Avatar for MartyMcFly

I would like to install phpBB 2.0 on a windows 2000 server on my network, so that network users can access this locally as a method of communicating over the network in addition to email. This needs to be available to about 200 people on site, which is managed by …

Member Avatar for Zachery
0
190
Member Avatar for 4BoredomDotCom

I am trying to make a joke site..... I havent dont the rating system yet but have one previous issue to deal with and cant find it in any of my books. I want to have a password protected admin page, addjoke.php where I can add by category like "Blonde …

Member Avatar for Troy
0
106
Member Avatar for symoore22

Im getting an error with my website when i try using sessions. Im new to it so im probably doing something stupid [url]http://www.bluetipdvd.co.uk/cart.php[/url] [B]error message:[/B] Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/bluetip/public_html/cart.php:4) in /home/bluetip/public_html/cart.php on line 4 Warning: Cannot modify header information …

Member Avatar for Troy
0
149
Member Avatar for ashneet

Hi all First of all i m still new 2 php so please help me out. I am makin an small shipping system using php and i want to make it so that when people submit zipcode the form should only submit the first two digits instead of whole thing …

Member Avatar for ashneet
0
106
Member Avatar for dafabe

I am currently re desigining a web site and would like to make things easyer by using php. I have the basic design done in html tables and want to change the content of cells depending on what links are clicked on, or at least i think this is the …

Member Avatar for Troy
0
115
Member Avatar for forgotteneagle

I have some questions pertaining to php and I need help! [B]1)[/B]I want to display random art in my signature but I want it behind a frame and with the artists's name written on a "nameplate" [B]2)[/B]I want to have a guest book in my signature that you can post …

Member Avatar for darklordsatan
0
141
Member Avatar for luny

I'm still a newb with php, and i've been messing with this for hours with no success. First, heres the sql dump for the three tables I'm using here they are: DROP TABLE IF EXISTS news; CREATE TABLE news ( id int(10) unsigned NOT NULL auto_increment, postdate timestamp(14) NOT NULL, …

Member Avatar for zippee
0
108
Member Avatar for Dani

I'm currently using phpMyAdmin with Plesk 7.5. Well first of all there's the known problem with the CSS not working, but that's besides the point. My question is actually whether it's possible to access phpMyAdmin directly through some URL instead of first logging into Plesk and then navigating all the …

Member Avatar for Dani
0
254
Member Avatar for jpt62089

I am looking for an experienced PHP Programmer to help me with a website I am building. This will be strictly volunteer but that programmer will earn a spot as a staff member on my new site. I do not want to give out any details right now but if …

Member Avatar for jpt62089
0
108
Member Avatar for symoore22

hi i am trying to turn this code: strOutput += "<input type=hidden name=\"amount\" value=\""+ moneyFormat((fTotal + fShipping + fTax)) + "\">"; into a html form line: <input type=hidden name="amount" value="??????????"> im not sure what i shud be putting in the value bit. can anybody help thanks simon

Member Avatar for darklordsatan
0
141
Member Avatar for michael123

Once php has been installed on apache server, why I cannot run php program on it, any idea?

Member Avatar for wakOrang3
0
100

The End.