39,402 Topics

Member Avatar for
Member Avatar for jonnafun

Hi All I've checked around all kinds of sites, but to be honest I'm literally just learning PHP and not a clue what people are saying. Basically all I want to do is make some fields required before the form is submitted. At the moment all it does is go …

Member Avatar for Gants
0
90
Member Avatar for emen24

Please see php script below. When I log in, the screen goes blank and on the same /login.php web page. If I enter a wrong password, it will tell me it is wrong, and I registered and activated the user/password successfully. It is just when I login in, it doesn't …

Member Avatar for emen24
0
115
Member Avatar for abelingaw

i have to make a log in form that displays a msg if the user uses the username 'letmein' if not, a msg will also be printed. But the message to be printed aren't showing. Here's my code: [CODE] <html> <head> <?php if (isset($_POST['submit'])) { $username = $_POST['username']; if ($username …

Member Avatar for dietdew12z
0
100
Member Avatar for jrhitokiri

I am trying to get Domain names/URLs from the title and description in ebay, but the text varies a lot. Note that the url/domain names are limited to *.com, *.net, *.info, etc. For instance, I'd have to parse through text such as: IPAD SCREEN LENS.COM 3 4 5 Letter LLLL …

Member Avatar for jrhitokiri
0
127
Member Avatar for Kadafiz

[CODE] class test{ function load($mailID,$message){ echo $mailID; echo $mesage; } function test1($arr,$message){ foreach($arr as $mailID){ $mailID = $mailID.","; $this ->load($mailID,$message); } } }[/CODE] this is my code ... bt this is nt correct.. actually i need is function test1 get mailadresses and message for the mail.. arr is a array. …

Member Avatar for Kadafiz
0
169
Member Avatar for phpDave

Hi, I'm trying to display an image inside a php tag using a file path name I stored in mysql. So far not working. [CODE]<td><?php echo "<img src='images/$image'/>";?></td>[/CODE] $image is the path to mysql. I can echo the path name so I know it works there but I can't display …

Member Avatar for phpDave
0
112
Member Avatar for Joe34

Can anybody tell me what is wrong with these mysql statements? I believe the LIKE is what is incorrect. [CODE] $Find_Query1 = mysql_query("SELECT * FROM pages WHERE title='$Search' AND keywords LIKE '$Search' AND description LIKE '$Search' "); $Find_Query2 = mysql_query("SELECT * FROM pages WHERE title LIKE '$Search' AND keywords LIKE …

Member Avatar for lyrico
0
76
Member Avatar for lyrico

Hi to all again, Can anyone one help me with this? The scenario goes like this. I have this PHP script: [code] <?php $to = "email_address_here"; $subject = "SAMPLE AUTOMATIC MAIL"; $body = "Hi to Every one. Please help me with this ^^,"; if (mail($to, $subject, $body)) { echo("<p>Message successfully …

Member Avatar for lyrico
0
2K
Member Avatar for phpDave

Hi, I am trying to insert an image path name into mysql. I not sure how to insert the path only if the path name "image name" does not exist. Also, I get duplicate rows when uploading image path name, not sure why. Here is some code. Any suggestions would …

Member Avatar for phpDave
0
167
Member Avatar for concordia

Hi again, I'm stumped. I'd like to store results from a questionnaire in a multi-dimensional session variable to tally the number of questions answered after the entire questionnaire is completed. Users choose selections from checkboxes, so I have that info coming from an array. I was hoping I could just …

Member Avatar for keyroche
0
2K
Member Avatar for tcollins412

ok, so i am writing a program for my client. i have a thing where they can view all of their clients. I have it listed where their clients names are listed. How do i make it so when they click on thir clients names, it calls their id from …

Member Avatar for lyrico
0
76
Member Avatar for prithvi.web

Hi Guys, I am trying to make a string from an array.The array structure looks like this [CODE][n3] => Array ( [0] => 2011-01-19 [1] => 2011-01-12 )[/CODE] Now if n3[0] or n3[1] is null i mean if any one value is absent then the string should look like [CODE]$str …

Member Avatar for prithvi.web
0
106
Member Avatar for dragostone

Greetings everyone. i have a number of check box's, a message text area and a submit button. Depending on what box is checked it will send the message to that email address. Here is the code for the form: [CODE] <form method="POST" name="myform" action="checked.php"> <input type="checkbox" name="emails[]" value="user1@domain.com" /> <input …

Member Avatar for dragostone
0
860
Member Avatar for Jwallis

I had someone build forms for me but they didn't put in tags to have those forms do anything, the just made input fields. I have some knowledge on how to do this, but have never written PHP before and was told this is what I need to do to …

Member Avatar for nicholas1981
0
187
Member Avatar for samsons17

Hi,sorry for the title of this thread as I not really know what to give it :) Anyway, I got a problem with my newly created website. My website got the blog section where I write everything onto it.And i when I try to share the link of my recent …

Member Avatar for samsons17
0
193
Member Avatar for Tco03

Allright so.. Im kinda stuck with the project im working on. Im allmost done with it but the remaining is to show each row in a form. I got a form i fill out that save the data to my database, i got a script that shows all my information …

0
61
Member Avatar for Agent Cosmic

What would be the guideline for using a component or module? Is the component where I use to bloat my model with? BTW, I'm using Yii Framework. Thanks.

Member Avatar for Agent Cosmic
0
71
Member Avatar for fouzia Qayyum

hello! i have implemented a signup form in yii framework now i want that after user login user can modify his/her info. help me plz

Member Avatar for halomas
0
34
Member Avatar for PoisonedHeart

Hello everyone, I don't where should I post this thread, but since my project (document tracking system) will be using PHP, maybe I just post it here. Would someone tell what should be the features or modules of my project, here are my listing as of now: -a module for …

Member Avatar for PoisonedHeart
0
216
Member Avatar for shamala

i need javascript code to count the number of div tags in a code with same id and assign same value for div tags with same id

Member Avatar for kurtopia
0
64
Member Avatar for oree

I am trying to use a search script i found online and i am having a problem with the query. I am trying do a query from multi tables. I have 12 tables, all have the same fields: name, phone etc. each table is a different category of items: appliances, …

Member Avatar for codewall
0
130
Member Avatar for Eblahmysuper

What I'm trying to do is take an array that I created and look for key abbreviations in that array, if it finds something it will append a variable until all item in the array have been found, then returns the appended variable. Having trouble with it though... [CODE=php]function check_programs($input) …

Member Avatar for Eblahmysuper
0
309
Member Avatar for mlotis

So I'm creating a website for bar deals... I've tried for hours trying to get the url to take in more than one parameter with no luck, I don't know if my database isn't setup correctly or something but the url would look like this [url]http://www.site.com/?id=1&day=Monday[/url] and when those parameters …

Member Avatar for codewall
0
93
Member Avatar for sjgoodjob

I am have pass Zend PHP 5.3 Certification ,i will list what should you care for about this test (just advise !!!!!!!!!!!!) but i think if you follow it,i think it will be better for you pass Zend PHP 5.3 Certification. HTTP Headers Object Oriented Programming (Reflection,Late Static Binding,SPL) Security(Cross-Site …

0
52
Member Avatar for dos_killer

i need to convert an image to ascii text so that the image is still visible somethigng like [URL="http://asciiconvert.com/"]http://asciiconvert.com/[/URL] any ideas as to how i can go about it ?

Member Avatar for jkon
0
583
Member Avatar for brown23

Hey Guys, So, I've successfully created my own little CMS ... but, I'm stuck on something. I want to be able to manage other users, but more specifically want to know WHEN they are online and WHEN they aren't online. This is the session I'm creating to authenticate the user: …

Member Avatar for chrishea
0
127
Member Avatar for oree

Hello, I am getting this error message on Google chrome but not on fire fox. Warning: mail() [function.mail]: SMTP server response: 503 5.5.2 Need Rcpt command. in \\address....... [CODE] $mail = mail($to,$subject,$body,$headers); if($mail) { session_destroy(); header("location: sendemail.php?verify=ok"); } [/CODE] These are the variables: [CODE] $buyeremail = "email@email.com"; $headers = "From: …

Member Avatar for oree
0
529
Member Avatar for ebookstores

gud day to everyone..im just new in web development..i just want to ask whats the problem if this error occurs: Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /www/zymichost.com/e/p/u/epurchasing/htdocs/index1.php:7) in /www/zymichost.com/e/p/u/epurchasing/htdocs/library/config.php on line 2 Warning: session_start() [function.session-start]: Cannot send session cache limiter - …

Member Avatar for rififi
0
107
Member Avatar for patharianidhi

Hi All, I need some advise, pointers or ideas how I can tackle this problem of mine. I am running a front end php and backend mysql db. I could import my csv file from php to mysql db. However I was wondering if I could upload the csv file …

Member Avatar for jkon
0
63
Member Avatar for andrewliu

I'm trying to create a shopping cart but I need help with arrays. [CODE]if(!isset($_SESSION["cart_array"])||count($_SESSION["cart_array"])<1){ // RUN IF THE CART EMPTY OR NOT SET $_SESSION["cart_array"]=array(1=>array("item_id"=>$pid,"quantity"=>1, "item_size" => $size, "item_color" => $color)); //quantity => $quantity (can be applied) }else{ // RUN IF THE CART HAS AT LEAST ONE ITEM IN IT foreach($_SESSION["cart_array"] …

Member Avatar for andrewliu
0
150
Member Avatar for tape enterprise

I am building a simple CMS for a website, Instead of having a simple texarea box I want it to have different buttons on it for the users to edit the code without knowing html or css. I would like it to be like Daniweb's Toolbar above the textbox on …

Member Avatar for jkon
0
99
Member Avatar for ans2007kumar

My java script of validation is not working don't know why here is the code Header php file [code]<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <link rel="stylesheet" type="text/css" href="c.css" /> <title>simple document</title> <script src="validate.js;cart.js"> </script> <script type=" text/javascript"> <?php session_start(); ?> </script> …

Member Avatar for diafol
0
148
Member Avatar for johnbo100

Hi All I have creating a database table that will store configuration values so that php knows whether to show a field within a html form or not. I know that the PHP code connects to the table within the database as there are now errors when the webpage is …

Member Avatar for johnbo100
0
136
Member Avatar for AndrewSD

Well what this code is supposed to do is create a session when you log in successfully. Then direct you to the member page. Which it does ok. Then when you click logout it destroys the session. My code should, if you are not logged in and go to the …

Member Avatar for madCoder
0
104
Member Avatar for ello

Hey, just got this contact form working, but had an email from the guy with the server, and he says he got the emails as well...which I thought was quite odd. Now I have no idea why it'd do this so I was wondering if one of you guys could …

Member Avatar for ello
0
380
Member Avatar for dietdew12z

I'm editing someone else's code and I have a vague idea of what it does, but if anyone has seen this kind of thing and can explain it to me. [CODE] function mkdir_recursive($pathname, $mode) { is_dir(dirname($pathname)) | mkdir_recursive(dirname($pathname), $mode); return is_dir($pathname) || @mkdir($pathname, $mode); } [/CODE] I don't understand why …

Member Avatar for dietdew12z
0
111
Member Avatar for atutor

Hello All, I need your input on how I can get an HTML form that uses PHP to submit via email, to be able to print the results to be formatted exactly like the original form including font spacing and graphics. I am willing to redo the form. Even use …

Member Avatar for mschroeder
0
104
Member Avatar for crazycat503

i am really tired of Joomla...it is not complicated but very unflexible for me. I have an already functional database that is working just fine. 1. registration field: i have a custom registration field that works excellent and meets my requirements. Its hard to edit and expand with Joomla's registration …

Member Avatar for chrishea
0
127
Member Avatar for chandaboy

My code is this: <?php //Start session session_start(); //Check whether the session variable SESS_MEMBER_ID is present or not if(!isset($_SESSION['SESS_MEMBER_ID']) || (trim($_SESSION['SESS_MEMBER_ID']) == '')) { header("location: access-denied.php"); exit(); } ?> and I am facing this warning, when I login succcessfully: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already …

Member Avatar for Plyswthsqurles
0
108
Member Avatar for litchi

Hi, Is MD5 still secure enough to use for the storing of passwords in MySQL? Or is there a better/more secure way? I did google quite a bit, but all the posts I found were old (2004-2008)

Member Avatar for Plyswthsqurles
0
93
Member Avatar for lf.gene

Hi all, i wonder is it possible to display my images from database into table with 4 rows and 4 column? How can i do that? [CODE] $dbConn = mysqli_connect(DBSERVER, DBUSER, DBPASS, DBNAME) or die(mysqli_connect_error()); $sql = "select * from products"; $result = mysqli_query($dbConn, $sql) or die(mysqli_error($dbConn)); echo "<table border …

Member Avatar for lf.gene
0
211
Member Avatar for greyhat1123

I am transitioning into PHP development from coldfusion development. I am hoping to get some insight into using the Fusebox methodology with PHP. I am familiar with fusebox2, which includes one index.cfm file with case/switch statements as to what to include. If anyone has any suggestions on how to get …

0
43
Member Avatar for cheekycroak

Hi Everyone, After wonderful long Google searches for almost many days, am still unable to achieve what I want to do.Name the URLS that I would have tried and all in vain,perhaps this is due to lack of coding knowledge that is encompassed within me to accept my defeat. [B]Synopsis:[/B] …

Member Avatar for cheekycroak
0
254
Member Avatar for fabzster

Hi I have a db that has the following Data for example: PolicyNumber, StoreId, ConsultantName,ClientName, ClientSurname I would like to have a report that will give me a list of policies done for that day seperated by store printed to PDF. So Basically Store - 12CEL 24Hr001 Bob Joe Soap …

Member Avatar for fabzster
0
1K
Member Avatar for puritha

Hi I am very beginner in phpfox developing. Anyone knows how to integrate photobucket([url]http://photobucket.com/[/url]) to phpfox web site. There is a module for flickr and its working properly. Same like i need to add photobucket as well. Are there any modules ?? Thanks Akila

Member Avatar for chrishea
0
692
Member Avatar for sshaham1

How do websites like facebook and formspring dynamically make links for their new users? for example, if i sign up on formspring and my username is USA1992, the link to my profile is formspring.me/USA1992 how do websites do that?

Member Avatar for steelshark
0
70
Member Avatar for editorawais

I am using wordpress Blog when i want to update new post there is error like that " Warning: Cannot modify header information - headers already sent by (output started at /home/techabso/public_html/wp-content/plugins/add-to-any/services.php:2) in /home/techabso/public_html/wp-includes/classes.php on line 1601 " Nothing is uploading im totally in trouble.. Please help me..

Member Avatar for hapon
0
152
Member Avatar for Joe34

Okay let's say I open the url, [url]http://www.nothing.com/[/url] using php's fopen function. then I do this, [CODE] <?php $S = sss $url = "http://www.nothing.com/" . $S . "&ql=1"; $open = fopen($url,"r"); while(! feof($open)) { echo fgets($open). "<br />"; } ?> [/CODE] That above returns all of the page I'm looking …

Member Avatar for chrishea
0
188
Member Avatar for phpDave

Hello, for a while now I have been studying file uploads. I have 2 scripts, 1 creates a folder for a user and store the image in it. The other resizes the image and stores it inside another folder. What I would like to do is combine both scripts in …

Member Avatar for phpDave
0
144
Member Avatar for lashatt2

I want that mysql data will be in one row but it doesn't, in my case data echoes in a right down side :( [URL="http://lashatt.comoj.com/php+mysql.php"]http://lashatt.comoj.com/php+mysql.php[/URL] [IMG]http://lashatt.comoj.com/mysqlproblem.JPG[/IMG] [CODE=php]<?php $user="a7247794_a724779"; $password=""; $database="a7247794_testdb"; mysql_connect("mysql5.000webhost.com",$user,$password); @mysql_select_db($database) or die( "Unable to select database"); if (isset($_POST['saxeli'])) echo "saxeli {$_POST['saxeli']}"; $a = $_POST['saxeli']; $query = "INSERT INTO …

Member Avatar for aixlu
0
143

The End.