708 Posted Topics

Member Avatar for jonow

If you have something specific in mind, I suggest creating your own. Don't over-complicate things with a bulky CMS if you are reaching for a simple solution. I can code a simple login system and a page editor (with the use of a wysiwyg editor) in a matter of hours.

Member Avatar for samarudge
0
121
Member Avatar for alexgv14

if you are using php5 you can use php built-in functions. [url]http://us.php.net/manual/en/function.simplexml-load-file.php[/url]

Member Avatar for alexgv14
0
177
Member Avatar for rajeesh_rsn

according to your error the $phototo variable is blank. see the '../share/', there is no file name. That is your problem. Check to make sure the variable has the correct value.

Member Avatar for somedude3488
0
126
Member Avatar for chinmayu

[QUOTE=chrishea;823223]I believe that the $_post should be $_POST[/QUOTE] yes. and echoing data directly from the $_POST array is a huge security risk. You need to sanitize it before you echo it to the browser. i use sessions to retain data.

Member Avatar for chrishea
0
5K
Member Avatar for claritydigital

are you talking about when you output the data or when they are typing it? i am confused.

Member Avatar for somedude3488
0
156
Member Avatar for rariti

i use list ex. [code] list( $id,$parid,$name,$color,$location,$status ) = explode(',',$string); [/code]

Member Avatar for rariti
0
153
Member Avatar for ruwanaru

actually you can upload files to the database, but its better to save them on the server.

Member Avatar for ruwanaru
0
316
Member Avatar for aamresh1

in your paypal form, set the input with the name of "return" to the address of your site. it needs to include the http://

Member Avatar for somedude3488
0
119
Member Avatar for punithapary

in the move_uploaded_file() function you are moving the file to the file name itself without the upload directory prepended to it. you need to specify the directory the file needs to go to. i rewrote your code. i made i a lot more secure. its untested, please let me know …

Member Avatar for xantini
0
160
Member Avatar for goliath23

first of all, learn to use code tags. second, try not to post so much code. as for your internal server error, that might be caused by the use of short tags "<?" when the server isn't configured to use them. try "<?php"

Member Avatar for somedude3488
0
85
Member Avatar for theimben
Member Avatar for Title27GT

in your foreach statement use "as" instead of "in". i think in is used in javascript not php.

Member Avatar for somedude3488
0
79
Member Avatar for danielagaba

to fix a problem like this I would turn to ajax. it will submit the form to php using javascript without reloading the page. it can get a little complicated, but once you get a basic understanding of it you should find it helpful. also, you could try putting a …

Member Avatar for somedude3488
0
282
Member Avatar for netviper

an invalid resource is usually caused by a bad sql query. this doesn't mean something is wrong with the database page. the problem lies in the page that calls that function on the database page. can you post the code for product_info.php

Member Avatar for cwarn23
0
167
Member Avatar for HB25

i am guessing you forgot a semicolon on the line above this one, but I am not sure.

Member Avatar for Lizapotter
0
75
Member Avatar for emiola

i thought mail only has 4 basic attributes. you have a lot more than that. you need to put all the variables that need to be included in the email into one variable and pass that to the function. look here for examples: [url]http://us3.php.net/manual/en/function.mail.php[/url]

Member Avatar for somedude3488
0
151
Member Avatar for wdms
Member Avatar for danpool

have php make the select boxes. [code] <?php $sel = '<select name="name">'; $query = mysql_query( "query to select seamstresses" ); while( $row = mysql_fetch_assoc( $query ) ) { $sel .= "<option value=\"{$row['value']}\">{$row['name']}</option>"; } $sel .= '</select>'; //echo $sel where you want the dropdown ?> [/code]

Member Avatar for somedude3488
0
103
Member Avatar for hbk_star2006

you are getting that error because of the query failing. its putting the warning on the page before the header call which is making the header error occur. you need to fix the query and your problem will be solved. like xan said, you need to sanitize your inputs. i …

Member Avatar for hbk_star2006
-1
120
Member Avatar for progurammaar
Member Avatar for progurammaar
0
94
Member Avatar for nawabsheriff

you have your select name in the multiple attrib. that needs to be its own attribute [icode]<select name="contact_groups[]" multiple="multiple">[/icode] also, undefined index is a warning which can be turned off. its not an error.

Member Avatar for somedude3488
0
77
Member Avatar for swit

here is how i would do it [code] echo '<select onchange="javascript:window.location.href=this.value">'; for ( $i=0,$i<$pages,$i++ ) { echo "<option value=\"index.php?option={$option}&task=view&limit=". $lmt * $i . "&id={$idpik}&Itemid={$Itemid}\">{$i}</option>"; } echo '</select>'; [/code]

Member Avatar for swit
0
224
Member Avatar for PinoyDev
Member Avatar for PinoyDev
0
199
Member Avatar for apollokid

to access file names in the $_FILES array you need to use 'name' not 'product_name' ex. [code] $_FILES['product_image']['name'] [/code]

Member Avatar for apollokid
0
91
Member Avatar for queenc

you use global inside the function [code] function blah() { global $db; //code here } [/code] or send the object as a parameter [code] function blah( &$db ) { //code here } [/code] I have no idea why you want this as a function. It doesn't need to be.

Member Avatar for queenc
0
79
Member Avatar for whitestream6

Search for php templating engine. You should find some useful information. You can use a cron job to remove an event at a certain time.

Member Avatar for death_oclock
0
151
Member Avatar for dewhickey

why don't you just use a field in the table telling whether or not its archived. just add an archive column with a 0 or 1. where 0 means not archived and 1 means it is.

Member Avatar for almostbob
0
5K
Member Avatar for bornok15

never put an image into the database itself. just upload them into a directory and put the path to file in the database.

Member Avatar for shohel_nub
0
116
Member Avatar for theimben

post your code that you changed. and we will help you. what do you mean it stops working? i don't think this is really that hard. its looping through a list of urls and using curl to post to another server. then parsing those results to get the info you …

Member Avatar for theimben
0
76
Member Avatar for k2k
Member Avatar for jumbla

i am not sure if this is what you are looking for: [code] if ( $variable !== '' && $variable !== 'N/A' ) { //put code here if the variable is not blank and not equal to 'n/a' } [/code]

Member Avatar for jumbla
0
109
Member Avatar for Jacky1

you could use mod_rewrite to have that url redirected to something like images.php?file=image.jpg and then you can update the database in that script using the file name in the url.

Member Avatar for Jacky1
0
833
Member Avatar for jakx12
Member Avatar for jakx12
Member Avatar for gpittingale
Member Avatar for FlashCreations
0
85
Member Avatar for jlochhead

include doesn't return the contents of a file. you would need to do a ob_start(), then include, then ob_get_contents() to get the file contents from an include. i would use file_get_contents();

Member Avatar for diafol
0
95
Member Avatar for nmcgoo108

the problem might be that the input and textarea tags do not have a name attribute.

Member Avatar for nmcgoo108
0
200
Member Avatar for Smurf_UK

to fix your problem, just have all of the images upload into the same directory with a randomly generated name. then put that name into the database (which i think you have already done) with the member id. to get the images for a member, just run a query on …

Member Avatar for somedude3488
0
107
Member Avatar for CasTex

try using a different content type like text/javascript. and capitalizing the php start tag does nothing.

Member Avatar for almostbob
0
576
Member Avatar for cali_dotcom

you can't have the same primary key twice. hence the "duplicate entry". you are setting it as NULL. just omit the primary key entry in the values all together. like this: [code] $sql = "INSERT INTO `article_fields` (`field_title`,`field_type`) VALUES ('{$new_text}','{$field_type}')"; [/code]

Member Avatar for almostbob
0
356
Member Avatar for mirainc

they are not adding because the url to add products is wrong. [code] <a href="Cart.php?action=add&id=1">Add To Cart</a> [/code] should be: [code] <a href="Cart.php?action=add&booksid=1">Add To Cart</a> [/code]

Member Avatar for mirainc
0
446
Member Avatar for CasTex

i tried this: [code] $content = '<?xml version="1.0" encoding="utf-8" standalone="yes"?>'; $content .= "<entry xmlns='http://purl.org/atom/ns#'>"; $content .= "<title mode='escaped' type='text/plain'>".$title."</title>"; $content .= "<issued>".$issued."</issued>"; $content .= "<generator url='http://www.yoursitesurlhere.com'>client's name</generator>"; $content .= "<content type='application/xhtml+xml'>"; $content .= "<div xmlns='http://www.w3.org/1999/xhtml'>".$body."</div>"; $content .= "</content>"; $content .= "</entry>"; [/code] and there were no errors on my server.

Member Avatar for almostbob
0
2K
Member Avatar for syazuchan
Member Avatar for syazuchan
0
127
Member Avatar for dourvas

do you have a doctype. a lot of cross-browser issues are solved just by defining a doctype. you might also want to look into css.

Member Avatar for dourvas
0
284
Member Avatar for designingamy

i have done this before. post your code and I will help you make the necessary changes.

Member Avatar for designingamy
0
178
Member Avatar for jeffc418

ok, i don't think this will be too hard if the text is all in the same format. the way you stated it, i think it is. is the data on seperate lines or one long string of text? if its on separate lines, you can use the file() function …

Member Avatar for death_oclock
0
424
Member Avatar for confusedGirl

By "didn't work" you mean? It would be a little easier to help you can explain the problem further. Also, what are you trying to do with: [code] $_SESSION['UserName'] = $UserName; $_SESSION['Password'] = $Password; [/code] at the top of every page. I was confused by that.

Member Avatar for Fest3er
0
97
Member Avatar for thunderbbolt

Well i can help you with that. i have done this many times. if you will post the authors and the books they have, i will make a script for you that you can view on my server in a couple of hours.

Member Avatar for ambiliya
0
122
Member Avatar for Deathrains

try this: [code=php] $result = mysql_query("SELECT id,title,description,data,author,mini_img,view FROM data WHERE data>'$data_begin' AND data<'$data_end'",$db) or die( 'Error: ' . mysql_error()); [/code] and tell us what is returned. you can solve many simple sql problems that way.

Member Avatar for dasatti
0
104
Member Avatar for tedobg

try this: [code] <?php if(isset($_POST["name"]) && isset($_POST["pass"]) && isset($_POST["email"])) { $name=$_POST["name"]; $pass=$_POST["pass"]; $email=$_POST["email"]; $con=mysql_connect('localhost','root','password'); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("users", $con); $sql = "INSERT INTO `members` (username,password,email) VALUES ('" . $name . "','" . $pass . "','" . $email . "')"; $query = mysql_query($sql,$con) or …

Member Avatar for ashafaaiz
0
251

The End.