39,323 Topics

Member Avatar for
Member Avatar for Hummdis

I've tried this a number of different ways and I've even downloaded the Regular Expression reference sheet from addedbytes.com, but I just can't figure out how to move this eregi_replace() statement into a preg_replace() statement. I've read and understood the delimiter requirements for preg_replace(), but I think the problem is …

Member Avatar for Hummdis
0
238
Member Avatar for Boboc

If anyone can help me I would be most grateful, Im curently working on a website at the minute that uses images that have been uploaded to a directory, along with a location reference in a MYSQL database. I have currently got the page to show the thumbnail version of …

0
80
Member Avatar for sun-tzu

I am getting the 500 Server Error message when I try to run my captcha script. The script is as follows: [CODE] <?php //Start the session so we can store what the security code actually is session_start(); //Send a generated image to the browser create_image(); exit(); function create_image() { /*//Let's …

Member Avatar for linuxaomi
0
242
Member Avatar for mehrantahir

hi everyone, i write data from database to the csv file,but i face problem how to print the csv file with multiple colors background for example first line is green then second line must be blue, please help me how can i do this in php

Member Avatar for linuxaomi
0
516
Member Avatar for knitex

hey guys, I'm just wondering how you can link to another set of results within the original search results. For example with my code it displays a table and in one of the coloums, plot number, there is a list of number. I would know what to do once the …

Member Avatar for afatn
0
135
Member Avatar for 54uydf

hello, I have a DB table with records that have connection to one another. sort of like object a comes before b, and object c comes after c. example- table1- Id | pre | post a..|..0..|..d.. d..|..a..|..g.. g..|..d..|..x.. g..|..b..|..x.. g..|..c..|..x.. ...... ...... I have all the connections in the DB, …

Member Avatar for 54uydf
0
132
Member Avatar for jorjah

.gud pm, is there anybody who can teach me how to connect to the other folder using the php,i am now currently working for the login but i cant connect it to the registration form,,please!!help me

Member Avatar for pritaeas
-1
41
Member Avatar for bibiki

hey there, in Java, I can take a text file and build a two dimensional array out of it. I hope I can do that in PHP as well but I can't seem to be able to do it. these are the specifics of my problem: I have an xml …

Member Avatar for Insensus
0
2K
Member Avatar for jpknoob

Hello, i attempting to edit an online payment form to connect to MySQl, i have managed to get everyting working up until the payment page. The problem i am having is sending the cart contents via encrytion to the server. When there is one product, there are no issues. If …

Member Avatar for jpknoob
0
161
Member Avatar for johndohmen1963

How can i rename a part from a cell in a data table i have the folowing table id -------------- 35 albumdescription -------------- test 1 name -------------- 001.jpg type -------------- image size -------------- 97182 location -------------- test 1/thumbs/thumb001.jpg location1 -------------- test 1/slides/001.jpg I can change albumdescription and folder with [CODE]if(isset($_POST['change_name_alb_wein'])) …

Member Avatar for johndohmen1963
0
103
Member Avatar for eltonpiko

hi im working on on a personal project and i need some help on how to structure my database and query. so here is my problem and searching for a solution. on my site everyday there will have a daily article or item grouped in categories. now a user has …

Member Avatar for urtrivedi
0
253
Member Avatar for balakrishna115

Hi sir this is the contact from [CODE]echo $name=$_POST['name']; echo $mail1=$_POST['mail']; echo $website=$_POST['website']; echo $title=$_POST['title']; echo $des=$_POST['des']; echo $swf=$_POST['swf'];//this is the attachment echo $photo=$_POST['photo'];//this is the attachment echo $Category=$_POST['Category']; [/CODE] I want send all these details on email send me the mail function code in php Urgent

Member Avatar for Koseto
-1
65
Member Avatar for bibiki

hey there, I am trying to write a simple script that lets me remove lines from a file. I have an elementet.txt file that contains one-word lines. I thought that if I put the file lines onto an array, and then put back the array elements back on file, excluding …

Member Avatar for bibiki
0
123
Member Avatar for mehrantahir

Hi everybody, i make page which display all the record of the user in a table,i want to check if the time of the user login is great than 9:15 am the row background must be red, if not the normal white sisplay, i have the following script but not …

Member Avatar for urtrivedi
0
91
Member Avatar for DILO3D

I need to use the mysql query result.following is the mysql query. [CODE] while($row = mysql_fetch_array($result)) { $name=$row['name']; } [/CODE] For example: result of above query is (name1,name2,name3...) The problem is... i need to return that result in the following function.How can i do it? [CODE] function results() { return …

Member Avatar for DILO3D
0
298
Member Avatar for Righthe

Is this code correct? It is supposed to get input from SMS messaging API and save it to database. Mysql database is created with Table inbox and 2 columns called ID & Msg. I want to know if this code is going to do the job? Else help me in …

Member Avatar for Righthe
0
183
Member Avatar for jreality

I have a similar error in line 1 of the following code: [code]<?xml version="1.0" encoding="iso-8859-1"?> <?php $ip = $_SERVER['REMOTE_ADDR']; if (getenv(HTTP_X_FORWARDED_FOR)) {$pipaddress = getenv(HTTP_X_FORWARDED_FOR); $ipaddress = getenv(REMOTE_ADDR); }[/code]

Member Avatar for jreality
-1
225
Member Avatar for Lius

[CODE]function populateHarga() { var x=document.getElementById("barang").value; document.getElementById("harga").value=x; var y=document.getElementById('barang')[document.getElementById('barang').selectedIndex].innerHTML; document.getElementById("nama_brg").value=y; } function populateTotal() { var y=document.getElementById("jumlah").value; var x=document.getElementById("harga").value; document.getElementById("totalnya").value=x*y; } </script> <html> <body> <?php include ("db.php"); $now=date("Y-m-d",time()); ?> <? if($_REQUEST['action']=="del") { mysql_query("DELETE FROM temp WHERE t_no={$_REQUEST['id']};"); } ?> <table border="0"> <tr> <td>No.Faktur</td> <td><? echo "$no";?></td> <td></td> <td>Tanggal Order</td> <td><? echo "$now";?></td> …

0
142
Member Avatar for newbie14

Dear All, I got few tables as below. So then what I do on any time I will calculate the total points collected based on each table via some of this queries like below. What I am using now is the sum function. I am confuse should I like run …

Member Avatar for newbie14
0
132
Member Avatar for dwlamb

Good day, I am climbing a wall trying to figure out why I can not retrieve the results of a mysql query to a php array. My query polls the database and it is retrieved but all the data is encrypted. I need to take the results and put them …

Member Avatar for diafol
0
330
Member Avatar for Hani1991

Hi Why there is a var function when we create classes?? I tried to use a variable with out type var before it and it worked

Member Avatar for diafol
0
80
Member Avatar for skiabox

I am reading a book and there is the following code inside : [CODE] if ( !isset( $_POST[$requiredField] ) or !$_POST[$requiredField] ) [/CODE] I can understand the first part of the use of isset function but I cannot understand what the second part does. Any ideas? Thank you very much.

Member Avatar for skiabox
0
99
Member Avatar for vaanipala

Hi, I'm getting the following error when i try to get the next sibling of the current node in php: Fatal error: Call to undefined method DOMElement::next_sibling() in C:\wamp\www\Ajax\getcd.php on line 1 does anyone know on what i'm doing wrong? thank you. cd_catalog.xml [CODE]<CATALOG> <CD> <TITLE>Empire Burlesque</TITLE> <ARTIST>Bob Dylan</ARTIST> <COUNTRY>USA</COUNTRY> …

Member Avatar for hielo
0
153
Member Avatar for niche1

This script displays the way I need it to when I manually insert it into my script with the correct value for $expdat: <span style="background-color:yellow">Expires ' . $expdat . '. </span> How should I escape the quotes to be able to echo it from a mysql table? If I just …

Member Avatar for hielo
0
199
Member Avatar for fokys

[CODE]<?php //set host, username and password for MySQL $dbhost = "localhost"; $dbuser = "root"; $dbpass = "root"; //connect to MySQL or return an error $conn = mysql_connect("$dbhost", "$dbuser", "$dbpass") or die('Could not connect: ' . mysql_error()); //set database name $dbname = "database"; //select database or return an error $dbselect = …

Member Avatar for diafol
0
120
Member Avatar for hsetaknev

Hai frnds, Ahh...:?: I started learning PHP by my self frm somr Online tuts,And tried my first script.yes here it is [CODE]<html> <Head> My first PHP By my own </head> <body> <?php echo "My first program and its a failure" ?> </BODY> </html> [/CODE] But,The problem is..:confused: that iam not …

Member Avatar for hsetaknev
0
699
Member Avatar for afatn

I'm new to php mysql. i'm creating website for my community. help me out... My web page has one search page. user to feed few letters in the search box. it is proceesed and the result displaced in a table. here is my code [COLOR="Red"]for getting input : search.php[/COLOR] [CODE] …

Member Avatar for afatn
0
754
Member Avatar for Hani1991

Hi I wrote a php program that shows a poll and people have to vote for it theres a table in my mysql database for polls: polls columns: [B][COLOR="Green"]pollquestion polloptions pollvotes pollvoters voterschoices[/COLOR][/B] [COLOR="Green"][B]pollquestion[/B][/COLOR] column will contain the question of the poll [COLOR="Green"][B]polloptions[/B][/COLOR] will contain all the options for the …

Member Avatar for diafol
0
90
Member Avatar for Whilliam

Hello guys, I've been having this problem for 4 days now. I have this table that outputs records. One row contains all the records of the person. Every row has a 'ban' function. When the user clicks this 'ban' hyperlink, the program should popup a ban form wherein the user …

Member Avatar for ko ko
0
71
Member Avatar for 080346

i have a website at localhost yet :) where user upload swf file and it is shown to him. i want to extract all the jpg and png images from that swf file .... Any suggestions or solution please.... Much obliged

0
55

The End.