708 Posted Topics

Member Avatar for ramseswar

do you have the class which creates the $mysqli instance. is there a function named query in the class.

Member Avatar for ramseswar
0
240
Member Avatar for PomonaGrange

i have an upload class if you want it. i created it to upload mulitple files and i also added a thumbnailing capability. also $HTTP_POST_FILES is outdated. use $_FILES

Member Avatar for somedude3488
0
108
Member Avatar for ishlux

is it an internal messaging system for a website or are you want to retrieve real emails.

Member Avatar for digital-ether
0
97
Member Avatar for Venom Rush

the php time() function returns seconds. so one second = 1, one minute = 60 ect.

Member Avatar for Venom Rush
0
104
Member Avatar for lydia21

get fckeditor. integration is really easy. they will have all the information you need.

Member Avatar for lydia21
0
213
Member Avatar for Vilice

isn't this the php forum? why don't you post this question in the asp forum.

Member Avatar for Vilice
0
93
Member Avatar for awandest
Member Avatar for somedude3488
0
64
Member Avatar for ishlux

i just finished creating one today for my latest project from work. i can post the code and let you make the neccessary changes to make it work for you if you want.

Member Avatar for nikesh.yadav
0
93
Member Avatar for Rakesh Nagekar

why do you use session_register(). i thought it was depreciated. just set your user id into a session. here is some sample code [code] if (isset($_POST['submit'])) { $user = mysql_real_escape_string($_POST['user']); $pass = mysql_real_escape_string($_POST['pass']); $sql = "SELECT * FROM `tablename` WHERE `username` = '{$user}' AND `password` = '{$pass}'"; $query = mysql_query($sql); …

Member Avatar for Rakesh Nagekar
0
95
Member Avatar for OmniX
Member Avatar for Alexandre Lark

i created this chat: [url]http://www.daniweb.com/forums/thread126462.html[/url] which uses ajax and xml files (its pretty easy to do this with mysql so i ended up trying to challenge myself by using files). i think ajax would to solve your problem.

Member Avatar for somedude3488
0
300
Member Avatar for Shanti C

i have done this before for someone on daniweb. search through old threads and you should find something that can help you.

Member Avatar for tanha
0
527
Member Avatar for seangdy
Member Avatar for wdev

ajax, or use php to validate your form. i am leaving so i wont be able to provide examples right now. hopefully someone else can help, i was just trying to point you in the right direction.

Member Avatar for wdev
0
144
Member Avatar for OmniX

maybe try to put the $con variable with the query so it will denote which connection the query corresponds to. ex. [code] function q($sql) { $query = mysql_query($sql,$con); return $query; } [/code]

Member Avatar for somedude3488
0
168
Member Avatar for confusedofphp

just make a back button. and use some php to take the session variable and decrease it by one. then redirect to the correct page.

Member Avatar for somedude3488
0
119
Member Avatar for pedramphp

i wouldn't use heredoc syntax in a situation like that. just use echo to output the html to page. if $i changes you could do this: [code] <?php echo <<<HTML <div>\$i is $i</div> HTML; ?> [/code] i don't know if thats what you were looking for

Member Avatar for R0bb0b
0
110
Member Avatar for seangdy

why are you trying to store them in the database? its better to store them in a folder on the server and put the path to the file in the database.

Member Avatar for casper_wang
0
145
Member Avatar for aparnesh

i use notepad++ and i have liked it so far. they have some pretty nice features and some great plugins people have built for it.

Member Avatar for casper_wang
0
118
Member Avatar for MDGM

make sure sanatize your inputs to protect against sql injection. as for the login, just change your query to: [code] SELECT * FROM logins WHERE uname='$uname' AND password='$pword' [/code] also, a better way to do a login script is to see the number of results returned from the query. ex. …

Member Avatar for nav33n
0
121
Member Avatar for PomonaGrange

wow, that is a lot of uneccessary code. why don't you use one sql query and just input the letter from the get array.

Member Avatar for PomonaGrange
0
271
Member Avatar for jcmurphy

sometimes i resort to the referrer for something like that. its not always reliable but works when it is. look up HTTP_REFERER on php.net. there a proably other ways to accomplish this but i know this way could work.

Member Avatar for nav33n
0
126
Member Avatar for 4x4biker

since the user should be logged in to upload files, why don't you just put the uploaded file name into the database with their user id. then all you have to do to get the files for a certain user by one simple query: [icode]SELECT * FROM `files` WHERE `id` …

Member Avatar for 4x4biker
0
106
Member Avatar for ishlux

we need to know what the error is to help you. if you would post your full code that would help as well.

Member Avatar for ditty
0
155
Member Avatar for MDGM

you can do that. try this: [code] $tablename = $_POST['tablename']; $sql = "CREATE TABLE `databasename`.`{$tablename}` (//table fields here)"; mysql_query($sql); [/code]

Member Avatar for MDGM
3
3K
Member Avatar for chicago1985

are you wanting us to translate it into java for you or just explain what the php is doing so you can make it into java.

Member Avatar for nav33n
0
113
Member Avatar for nilantha_php

open the file using fopen(), fread(), and fclose(). then parse the contents with a regex and the preg_match function. all of this with examples can be found at [url]www.php.net[/url]

Member Avatar for nilantha_php
0
128
Member Avatar for Spaiz

what exactly are you trying to do? maybe there is a better way???? once you explain i should be able to help.

Member Avatar for Spaiz
0
174
Member Avatar for lndfrg

my company uses mailing-manager software. its easy to install. go to: [url]www.mailing-manager.com[/url] its much easier than creating a custom one.

Member Avatar for lndfrg
0
103
Member Avatar for mrcniceguy

i would add an else statement to the if that determines if the number of rows is one. in that else statement i would open an image file that contains the "no profile image" image. read its contents and echo it out.

Member Avatar for mrcniceguy
0
141
Member Avatar for Roebuc
Member Avatar for doel.jangkrik

you can't use header() like that. you would need to make the javascript redirect using: [code] window.location = 'index.php'; [/code]

Member Avatar for doel.jangkrik
0
114
Member Avatar for OmniX

to use them as string put quotations around them. [code] $a = '1'; [/code] then to break them up again use explode() function if you are just trying to store some data just seperate the values using commas by i think using implode(do use it much) and use [icode]explode(",",$str);[/icode] to …

Member Avatar for R0bb0b
0
204
Member Avatar for AliHurworth

try putting [icode] or die(mysql_error());[/icode] after the mysql query. i usually have that problem when there is a sql error.

Member Avatar for somedude3488
0
235
Member Avatar for roy--

are you tring to read the html? could you explain what you want to do in more detail. i have no idea what you are wanting to do.

Member Avatar for somedude3488
0
125
Member Avatar for helraizer

on line 26 of gif.php there is [code] if ( ! is_array ( $GIF_src ) && ! is_array ( $GIF_tim ) ) { [/code] but i don't see where $GIF_tim is coming from. should it be $GIF_dly?

Member Avatar for somedude3488
0
267
Member Avatar for Barman007

for a situtation like this I like to use a session and a switch statement. i put all of my forms into seperate html files and include them based on the survey that needs to be displayed. example (named survery.php): [code] <?php session_start(); if (!isset($_SESSION['survey'])) { $_SESSION['survey'] = 1; } …

Member Avatar for R0bb0b
0
191
Member Avatar for heels

you use a form with either get or post method. once the form is submitted you can access this data by using: [code] //This is used when form method is get $var = $_GET['input_name']; //This is used when form method is post $var = $_POST['input_name']; [/code] input_name is the name …

Member Avatar for heels
0
113
Member Avatar for maydhyam

like this: [code] $sql = "LOAD DATA LOCAL INFILE ".$filename." INTO TABLE testtsttbills FIELDS TERMINATED BY ',' ENCLOSED BY '\"' LINES TERMINATED BY '\n'(account,service,date,time,timebandtype,destination,callednumber,mins,airtimecharge,tollcharge,amt,privatenumber)"; [/code] you have to escape the "

Member Avatar for R0bb0b
0
194
Member Avatar for R0bb0b

the syntax you are looking for is: [code] $variable = "blue"; ${$variable}[] = "red"; //print array to see if it worked (did for me) print_r(${$variable}); [/code]

Member Avatar for R0bb0b
0
88
Member Avatar for Kavitha Butchi
Member Avatar for Kavitha Butchi
0
403
Member Avatar for mgt

does it matter if the page reloads or not. if not, then i would use the $_GET method to do this. which means store the select value in the url.

Member Avatar for mgt
0
735
Member Avatar for Venom Rush

you would need to use a regex and the preg_replace function. here just found this: [code] $text = preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', '<a href="$1">$1</a>', $text); [/code] remember google is your friend

Member Avatar for Venom Rush
0
140
Member Avatar for Zemfik

yeah, php is used a lot throughout the web. I work as a PHP/Database Developer for a fairly large web design company called Heritage Web Solutions, and they use php for most of their sites.

Member Avatar for msteudel
0
126
Member Avatar for colcar2008

search daniweb. i have done this many times for other people. its not that hard. i will not provide examples so don't ask me. one search can answer your problem. either seach google or daniweb, your answer is there if you are willing to take the time to look for …

Member Avatar for peter_budo
0
78
Member Avatar for sunshine12

1. add link styling css to the page. [code] a:link { color: #000000; } a:visited { color: #000000; } a:hover { color: #000000; } a:active { color: #000000; } [/code] change the color of course. 2. i haven't used dreamweaver much but i recently got Vista and have run into …

Member Avatar for MidiMagic
0
41
Member Avatar for ztwalsh

i would set up the database differently. the way you have it organized but hard to deal with once you are trying to get the information. make a table for movies with an id column so you can reference a movie itself. make a reviews table with 2 id colums. …

Member Avatar for nav33n
0
75
Member Avatar for paldss
Member Avatar for kvdd
0
108
Member Avatar for heels

because contact contains the number of rows returned by the query. change: [code] $contact = mysql_num_rows($result); [/code] to [code] $contact = mysql_fetch_assoc($result); [/code]

Member Avatar for heels
0
89
Member Avatar for Diode

I use a session to remember the value. It has worked perfectly for me everytime i have done it that way.

Member Avatar for Diode
0
159

The End.