39,326 Topics

Member Avatar for
Member Avatar for mbarandao

Hello: I want to create a count down to a date with the following variables 1. number of days (90) 2. current date now using a specific past date stored in db, I want to create a countdown that basically tells me how many days until the 90 days are …

Member Avatar for mbarandao
0
161
Member Avatar for mingler

I have a problem with using globals within class scope. For example: [ICODE] $GLOBALS['test'] = "How are you?"; class great { [INDENT]function grace() { [INDENT] echo $test; echo $GLOBALS['test']; [/INDENT]} [/INDENT]} [/ICODE] Problem is, that neither of the echos produce any output. Is there a problem with accessing superglobals from …

Member Avatar for mingler
0
143
Member Avatar for cliffcc

I cannot delete the records after pressing the delete button. What is the fatal error? Thanks! admin.php [CODE] <?php $host="localhost"; // Host name $username="root"; // Mysql username $password=""; // Mysql password $db_name="test"; // Database name $tbl_name="test_mysql"; // Table name // Connect to server and select databse. mysql_connect("$host", "$username", "$password")or die("cannot …

Member Avatar for cliffcc
0
81
Member Avatar for Lonburak

Guys, I need a code to ask database if the data is MALE or FEMALE than display a picture.. I know little about PHP !! The database has USERINFO table than a row with MALE or FEMALE written. Please help..

Member Avatar for Javvy
0
59
Member Avatar for john0563

Hello, I was hoping for some help in the right direction. I am creating a PHP/MySQL script and I was wondering what is the best way of being able to use it as a standalone application on a local computer. It's a little complicated, but let's say it's an online …

Member Avatar for vsmash
0
585
Member Avatar for ptara1

I have a script that calls up a picture stored in a database. I then have a script that displays said picture on another page. If there is no picture in the database I would like for their to be a no picture icon displayed. New to php but I …

Member Avatar for ptara1
0
2K
Member Avatar for jacob21

Hello friends, I am new in php.I need your help in sending sms through HTTP. Could you suggest me what to do?

Member Avatar for mbarandao
-1
135
Member Avatar for zeeshan_kust

i retrieved data from mysql table into html page i.e [code]$query="select * from student"; $result=mysql_query($query)or die(mysql_error()); while($rs=mysql_fetch_array($result)) { ?> <tr> <td align="center"><?php echo $rs['st_id']; ?></td> <td align="center"><?php echo $rs['name']"; ?></td> <td align="center">&lt;input type="checkbox" name="check" <?php if($rs['checked']==1){echo "checked"; } ?> /></td> <td align="center"><a href="delete_student.php?id=<?php echo $rs['st_id'];?>"><img src="images/delete_icon.png" alt="Delete" /></a></td> <td align="center"><a …

Member Avatar for diafol
0
115
Member Avatar for public-image

Hi there :) I am doing a login log script and at first I didn't record the timestamp unlike all my newer logs, I was wondering is there a way to turn the date d/m/Y (15/02/2011) turned into a timestamp? I would appreciate any help given Thank you in advance!

Member Avatar for diafol
0
86
Member Avatar for RicardoE

Hi, Today I was reviewing traffic for one of my websites, I found out that someone linked a jpg image into a forum, and now its getting huge bandwith I mean a lost of hits even when the image was deleted, hits I could use, is there a way for …

Member Avatar for RicardoE
0
149
Member Avatar for nrkumarvj

Hi I am preapring a website form where the resume needed to be uploaded and it should send an email to me along with upload as attachment. Please let me know the error in this below forms: == HTML Form: [CODE]<form method="post" name="mailform" action="emailnew.php"> <table width="200" border="0" cellspacing="0"> <tr> <td …

Member Avatar for diafol
0
297
Member Avatar for saira-nazir

i want to use if within while loop plz check it out and point out the mistake [CODE]$n=2; $e=8; $n=$e; while ($n<=$e) { if ($n%2=0) { echo"result is " .$n $n=$n+1; } else { echo "invalid"; } }[/CODE]

Member Avatar for diafol
0
104
Member Avatar for ctaylo21

Hello all, I have a script that displays the graphs of the rain gauges that the user selects on my site. They check all the gauges they want to see, and then when they click submit, my script then searches another site for the graph for each gauge using that …

0
81
Member Avatar for mikeflash

hey all, The server where I host my website went into unscheduled maintenance, a few minutes later I noticed that the IP of the server changed (they probably moved my website to another server since it's paid hosting although shared). So, my website was back online but some things weren't …

Member Avatar for joefarang
1
1K
Member Avatar for JerieLsky

Hi, i don't know if i'm in the right category in posting this thread. I'm only newbie in creating webpages. I created just a simple web page made from wamp server(php & mysql), now I just want to try how to deploy it, like posting it in a free web …

Member Avatar for sudeepjd
0
227
Member Avatar for abhi10kumar

I have text area and combobox, Selected value of combobox is to inserted at the current cursos location in the text area. How it can be possible ??

Member Avatar for abhi10kumar
0
93
Member Avatar for muhamin

bellow is my entire file, the problem is when i insert multiple links, it only fatch 1 link from the textarea and then giving me the following error on the rest, FYI there is no problem with the reading part in the text area i can read line by line …

Member Avatar for paulrajj
0
220
Member Avatar for mbarandao

Hello: I have a mysql table which has following rows: id (unique and auto increment) platenumber customerid servicearea date I want to create a sql statement which essentially performs the following task: Pull from table_name the last inserted row where the customerid='mb6537'. There could be more than one row containing …

Member Avatar for phpology
0
81
Member Avatar for Noorul Ariff

Hi friends... My system is MS WINDOWS XP, Professional Version 2002 Service pack 2... I Want to Connect PHP with oracle... I searched in GOOGLE... Source: [url]http://me2learn.wordpress.com/2008/10/18…[/url] I Followed the steps given by them... but still i'm not able to connect... I installed PHP and APACHE... PHP version: php-5.3.4-nts-Win32-VC9-x86 Apache …

0
107
Member Avatar for arv3

Hello. I'm working with a webpage where its going to a Google Store Locator. [URL="http://code.google.com/intl/no-NO/apis/maps/articles/phpsqlsearch.html"]Goolge Store Locator guide[/URL] I did follow. I got it working for a while, but here in Norway we have some characters, ÆØÅ that we use. This is the problem. When I search for a place, …

Member Avatar for smantscheff
0
242
Member Avatar for nyler01

Good Day, I am looking for threads here in daniweb which will contain my question but the return is not similar to my problem.. Please help me.. i don't know what to do with this. I just want to store date field in mysql database but i can't here is …

Member Avatar for nyler01
0
143
Member Avatar for shainjetly

Hi i wanted to loop the options list of the select tag inside that echo statement from my database. This file out puts the content to a javascript code. and this output is also javascript. any one help me how can i loop that options in select tag from the …

Member Avatar for shainjetly
0
1K
Member Avatar for bimaljr

Hello, I have used Joomla, Wordpress and other CMS tools. All this tools are plugin and theme based. The basic concept for plugins are to extend functionality and if I update the core system than it will not break the plugin's functionality. I like this same feature in a forum …

Member Avatar for bimaljr
0
158
Member Avatar for chris.aaker

I need to take data in from a form, using a javascript call. From there I need to send the data to a php script that puts it in a database. I have an AJAX call that does this...but I know that the AJAX call also waits for a response …

Member Avatar for chris.aaker
0
242
Member Avatar for ujjval dave

hey guys, I am facing problem to get weather information from client ip address. i know how to get client ip address but i don't know how to get weather information. please somebody help me for this problem. Thanks

Member Avatar for Javvy
0
160
Member Avatar for Walahh

Hello everyone, I would really appreciate if anyone could please help me out here. I am trying to read the user's input in one page and then trying to display it in another page (want to let my users upload a file from their machine and save them in my …

Member Avatar for Javvy
0
150
Member Avatar for andrewliu

Hello. I have gone through various checks, and I can't seem to figure this one out... [CODE]while($row_sizes = mysql_fetch_array($sql_sizes)); { $sizes = $row_sizes['size']; $product_list .= count($sizes); $product_list .= "<li>".$sizes."</li>"; }[/CODE] Its not outputting any sizes. However, my count($sizes) outputs 0. And that shouldn't because I have [CODE] $sql_colors = mysql_query("SELECT …

Member Avatar for andrewliu
0
111
Member Avatar for shdwmage

Good Morning! I guess I will start with a little background and then elaborate on the problem. I run a website for a car dealership with many different locations. The site runs relatively well and all information is stored in a MySQL database except for the image information. Due to …

Member Avatar for smantscheff
0
126
Member Avatar for burningcandle10

this is a php code when i check this code on "online php checker" it gives an error "Parse error: syntax error, unexpected T_STRING" on line 1708 how to solve this please give some advice [CODE]<?php class PopUp_Domination { var $base_name = ''; var $theme_path = ''; var $theme_url = …

Member Avatar for burningcandle10
0
2K
Member Avatar for mbarandao

Hello: I have a select box which offers the user the option of selecting multiple selections. I'm a bit lost as to how --if multiple selections are made, to save these selections into mysql. here is the code of my select box: [code] <form name="theForm"> <select size=11 name=servicearea id=select multiple …

Member Avatar for mbarandao
0
635

The End.