39,323 Topics

Member Avatar for
Member Avatar for scrchrds

I am really new to php and am attempting to create a news reader on my site. I have gotten it running just fine in a page of its own, BUT, I need it to be inside a php include. How do I link different scripts and stylesheets in the …

Member Avatar for Tekkno
0
154
Member Avatar for Tekkno

[code=php] $results = mysql_query("SELECT column1, column2, date, time FROM table ORDER BY RAND() LIMIT 1"); $row_table = mysql_fetch_assoc($results); [/code] For some odd reason this does not return data, however if I change it to: [code=php] $results = mysql_query("SELECT column1, column2, date, time FROM table ORDER BY RAND() LIMIT 2"); $row_table …

Member Avatar for diafol
0
195
Member Avatar for rasheed0987

Salam to all. I m new to this forum. I m doing Php Mysql just for fun. I want to make a "login form and Register me" form . so plz tell me the simple code for it.

Member Avatar for colweb
0
43
Member Avatar for bjeffries

Well at least I think my troubles are with the get variable. I know my code is amateur I am very new to PHP and trying to learn as much as I can. So I am trying to create a photo gallery any having trouble with getting my get variable …

Member Avatar for bjeffries
0
340
Member Avatar for jpknoob

I'm trying to create a form that updates stock in mysql database. I have created the forms to upload new stcok and they work fine. However, i'm including a link that will take the user to an update php that will then update the required fields, but i can't seem …

Member Avatar for diafol
0
95
Member Avatar for Famous16

hi everyone, can anyone explain that how to place a banner on the top of a home page using PHP coding. If anyone has the solution then please help me. Waiting for your nice reply With Regards,

Member Avatar for diafol
-1
112
Member Avatar for vinpkl

hi all i have a checkbox and input box [code] $others_text=$_REQUEST['others_text']; [/code] [code] <input type="checkbox" value="<?php echo $others_text ?>" name="checkacc[]" id="checkacc[]" /> Others <input type="text" style="width:200px;" name="others_text" /> [/code] i want that the customer should tick the checkbox and enter the information in text box and that information should become …

Member Avatar for fobos
0
55
Member Avatar for SKANK!!!!!

like im at [url]http://www.mysite.com/thispage.php?black=acolour[/url] and i need the whole thing in the variable not just the mysite.com/thispage.php i need the variables. NOW the pages variable names will be changing so i cannot count on them being the same name like "black" everytime. so far i have got [CODE]$fullurl = "http://www.mysite.com".$_SERVER[SCRIPT_NAME];[/CODE] …

Member Avatar for SKANK!!!!!
0
194
Member Avatar for azegurb

hi all i have a problem with file content copying. i have index.php and there are codes in it. i would like to create [COLOR="red"]indexa.php[/COLOR] and append[COLOR="red"] index.php [/COLOR]file contents to newly created [COLOR="red"]indexa.php [/COLOR]file thanks beforehands here is my file [CODE]<?php // This function shows your form function form(){ …

Member Avatar for azegurb
0
1K
Member Avatar for xylude

I have an if statement that is always evaluating true even if none of the conditions are true. It goes like this: if(condition1 || condition2 || condidion3) { //do stuff } For whatever reason even if none of the 3 conditions are actually true, it just runs anyway. Is there …

Member Avatar for theighost
0
109
Member Avatar for kristo5747

Greetings! I created this form that works like a charm, captures data in my db and sends email. Suppose user Joe hits the RESET button before he clicks SUBMIT, all fields are reset. If Joe hits the RESET button AFTER he clicked SUBMIT (e.g. to make a new submission)...nothing gets …

Member Avatar for kristo5747
0
119
Member Avatar for Midnite003

I have thsi script and I am trying to pass the variables to a form ... and have it email them but for some reason its not working ... can anyone offer a reason why it might not be or what I might do to fix it ? This is …

Member Avatar for digital-ether
0
173
Member Avatar for nathanpacker

I have looked everywhere, I've figured out how to add x amount of days to the current date, or take away x amount of days from the current date. But let's say I have a date stored in my database as "0000-00-00", that is not the current date. How can …

Member Avatar for ripraw
0
191
Member Avatar for SOlaNkI ThakUr

i just want to display images ( that are stored into database )in a dynamically create table which has dynamically row & 4 columns in php like this:- image1|image2|image3|image4 image5|image6|image7|image8 image9|image10 etc. if a new image i upload in the database than it should come in third row third column …

Member Avatar for Froger93
0
88
Member Avatar for D4n1sD

Hello, I would like to know how to create dynamic pictures with imported text from php. For example an image with the variable $username above it, but not to make 10000 images with the different usernames but 1 which will be generated for each username. So tell me.

Member Avatar for Froger93
0
91
Member Avatar for khess

If you are a PHP, Zend or IBM fan, today Zend and IBM announce a major release for IBM i-Series Servers. Zend Technologies and IBM are working together to offer PHP solutions for IBM i customers. Today Zend announced Zend Server for IBM i, a Web Application Server for applications …

Member Avatar for theighost
0
870
Member Avatar for anumitadas

Can we make a software using Php As php is web development softawre I am confused :( Plz help

Member Avatar for hondros
0
62
Member Avatar for eusb

Hey , I'm having trouble showing data from my data base in php. i always get the " No database selected " line and also i was wondering why the second echo doesn't show the result is : first echo No database selected this is my code [code] <?php require($_server["DOCUMENT_ROOT"]."/config/db_config.php"); …

Member Avatar for theighost
0
247
Member Avatar for filch

I am having a hell of a time with a form, which is built dynamically from PHP. The form is constructed first by calling a page called gala-tix.php, This page holds a bunch of javascript functions, the form code and it also calls an include called dwt.php. dwt.php has a …

Member Avatar for colweb
0
160
Member Avatar for niths

[QUOTE]hi all, i need to print the value in sql2.but it is not printing it. but if i execute the same query in mysql it is giving the value. so please check this. thank u.[/QUOTE] [CODE]$sql2="select allocatedmemory from projects where projectname='$projectassign'"; mysql_error(); $d=mysql_query($sql2); $data1=mysql_result($d,0); echo '$data1';[/CODE]

Member Avatar for prem2
0
75
Member Avatar for jino

Dear all, I have a table in mysql and i want to insert records into the table without using "FOR" or "WHILE" loop..Can this be done?? Thanks in advance.. Jino.

Member Avatar for indraginanjar
0
206
Member Avatar for 3pmSunday

I want to have the user fill out a form with the email address they would like to send to and a short message and be able to send it without opening an external mail program like outlook is that possible?

Member Avatar for jas11
0
101
Member Avatar for computerfox

Okay, so I'm not sure why this is happening, but I have a table full of data and I got the edit link working for the top of the stack, but when I want to edit another entry, it keeps pulling in the info from the top ID. Is this …

Member Avatar for computerfox
0
124
Member Avatar for phobia1

Hi Guys I'm back...greetings to all and thanks for keeping in touch. Not sure even where to post this question but php section usually is cool. Is there any guru here willing to help me make a display of exchange rates on my site? I only need Euro, Sterling, USD …

Member Avatar for waelm2010
0
367
Member Avatar for benqus

Dear Dudes! =) If anybody has a complete list of php methods separate in a file, please share it with me! I really need a txt file containing all of the PHP methods. It goes for my diploma work also... =) Ex: [CODE] for(){} //new line if(){} //new line switch(){} …

Member Avatar for benqus
0
146
Member Avatar for michael_r

hi i have got a simple table in my database like this: [B]from[/B]|[B]to[/B] bangalore | delhi chennai | mumbai i am using two drop down list to display this data. here is my code: [CODE]<select name="From"> <?php while($row = mysql_fetch_row($result)) { ?> <option value="<?php echo $row[0];?>"><?php echo $row[0];?></option> <?php }?> …

Member Avatar for diafol
0
158
Member Avatar for nelliott10

I am trying to code an update sql command which can be seen in the code below, however, i am getting the following error: - Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/qchqsdju/public_html/project/lines/update_line.php on line 40. The code is: - [CODE] <? // Connect database. …

Member Avatar for diafol
0
85
Member Avatar for nelliott10

I am a bit of a newbie to PHP and have produced a dynamic form for a uni project, however, I am unsure how to code the PHP script which will insert the data inputted through the form into a SQL database. The code for the form can be seen …

Member Avatar for diafol
0
138
Member Avatar for lordtrini

I am trying to display the results of a query in the form of a table. this it the PHP that i am using below. The problem is that the headings of the table repeats. I really don't want that... I am also trying to get a border around the …

Member Avatar for lordtrini
0
330
Member Avatar for Designer_101

Hey Im having a bit of trouble due to creating a media player playlist and using xml to input the directory variables to flash. I haven't really used xml much apart from that. Anyway... I need the variables from my XML file in a variable ready to print in php …

Member Avatar for whiteyoh
0
114

The End.