708 Posted Topics

Member Avatar for Epic Tissue
Member Avatar for twosocks
Member Avatar for RockNRoll
Member Avatar for Fourbit

how are you going to use this number? after i know this i can tell you which solution (database, txt file, ect.) would be better.

Member Avatar for Fourbit
0
94
Member Avatar for yasmena

please give more DETAILED information. its really hard to help when i have no idea what option items or some items relates to.

Member Avatar for somedude3488
0
116
Member Avatar for veledrom

in upload.php you have many security problems you need to fix, but i can't see where you are adding the file data to the database. where is $content coming from in your code. after you fix that/explain to me what you are doing, try to view the image using [code] …

Member Avatar for veledrom
0
444
Member Avatar for tonyledenko

this should do it. [code] <?php $array = array( 'Name'=>'fullname', 'Company'=>'company', 'Phone'=>'phone', 'Email'=>'email', 'Address'=>'address', 'City'=>'city', 'State'=>'state' ); $html = ''; foreach( $array as $title => $value ) { $str = ${$value}; if ( $str !== '' ) { $html .= "<span class=\"content\"><strong>{$title}:</strong>&nbsp;</span>\n"; $html .= "<span class=\"contentred\">{$str}</span><br />\n"; } } echo …

Member Avatar for somedude3488
0
88
Member Avatar for yasmena

this is more of a client side matter where javascript would solve your problem. you can have the chosen color sent to a php script that will process it.

Member Avatar for sDJh
0
93
Member Avatar for BillyMako

why don't you subtract one for the stock_level once the item is added to the orders_products table. thats how i would do it.

Member Avatar for somedude3488
0
110
Member Avatar for udaydesai
Member Avatar for mrcniceguy

the queries on lines 16 and 20 will fail because your syntax is wrong (probably i simple typing error). it should read [code] $query = "SELECT * FROM `login`"; [/code]

Member Avatar for humbug
0
107
Member Avatar for websurfer

actually a system like this is quite simple. i have created a few and i am working with one on my newest project. i can share some of my code once i know how your system is set up so it will easily integrate into your site.

Member Avatar for humbug
0
166
Member Avatar for justinmyoung

first of all, mysql_escape_string is depreciated. use mysql_real_escape_string instead. is the script throwing any errors?

Member Avatar for somedude3488
0
147
Member Avatar for jk_bscomp
Member Avatar for arshadshaikh

one word: google. google translations will help you a lot. A simple google search will give you your answers.

Member Avatar for arshadshaikh
0
98
Member Avatar for isotope

to make it optional, you have to set the varible with a value in the function. ex. [code] <?php function test( $a,$b,$c='') { //do what you need } ?> [/code]

Member Avatar for isotope
0
105
Member Avatar for elearner

don't store the images in a database. store the path to the image in the database and store the actual image on the server.

Member Avatar for elearner
0
74
Member Avatar for designingamy

use the $_GET array. you can "get" those values from the url by using: [code] $color = $_GET['color']; $shape = $_GET['shape']; [/code] make sure you validate those as well, especially if you are using those in a database query.

Member Avatar for designingamy
0
105
Member Avatar for gmaster1440

try: [code] <?php define( "DATABASE_SERVER", "blah" ); define( "DATABASE_USERNAME", "blah" ); define( "DATABASE_PASSWORD", "blah" ); define( "DATABASE_NAME", "blah" ); //connect to the database $con = mysql_connect(DATABASE_SERVER, DATABASE_USERNAME, DATABASE_PASSWORD) or die(mysql_error()); mysql_select_db( DATABASE_NAME ); $sql = 'SELECT * FROM `users`'; $result = mysql_query($sql,$con) or die ('Error: '.mysql_error()); while($row = mysql_fetch_array($result,MYSQL_ASSOC)) { …

Member Avatar for somedude3488
0
236
Member Avatar for gordo58

i was little confused as to why you had 4 address field, but i think this might work. i haven't been able to test it. [code] <?php include 'connect.php'; // Execute the SQL query and return records $result = mysql_query("SELECT * FROM tablename WHERE id = 1234"); while ($row = …

Member Avatar for gordo58
0
110
Member Avatar for danielpataki

have to script return how fast it was. Use something like microtime at the beginning of the script then do it again at the end and subtract them. See if you can find any difference.

Member Avatar for danielpataki
0
214
Member Avatar for justinmyoung

yeah, i never tested it. should of mentioned that. let me know the error and i will tell you whats wrong. also the sql query will fail. when a pasted into daniweb they changed the ` signs of the field names somehow. i don't see anything wrong with it, but …

Member Avatar for justinmyoung
0
172
Member Avatar for davewylie

have a last login in the database and then if its blank for that user, highlight otherwise don't. if you have different areas on different pages, you might need to create a table for the pages and have the unique identifier the members id and then put a 0 or …

Member Avatar for Manuz
0
136
Member Avatar for tkhalane

i use this to display the code on my server so i don't have to ftp all the time to see errors. you can make some changes to it so it will work for you. just to let you know its not complete but works. i didn't add the extension …

Member Avatar for somedude3488
0
82
Member Avatar for justinmyoung

there is no space between the id and class for both fields. i doubt that would cause problems, but you never know. your code is over complicated. you need to simply it and write the html correctly. Many small problems are solved when things are done properly.

Member Avatar for justinmyoung
0
116
Member Avatar for queenc
Member Avatar for queenc
0
722
Member Avatar for tanha

the only method i have seen is the code writing the database credentials to a php file. then using those, have the code create a database, then the necessary tables with the prefix. once that is done, then put the admin info into the right database table.

Member Avatar for tanha
0
213
Member Avatar for geordiejon
Member Avatar for cosby

why not use a comma seperated data file that can easily be processed with php. does the file have to be formatted that way?

Member Avatar for somedude3488
0
57
Member Avatar for nishant52

if you know php then making a signup form and processing code shouldn't be too hard. just store their info in a database. then make a simple login system. a visitor must login so you can identify who is playing your game so you can track information about it. the …

Member Avatar for somedude3488
0
230
Member Avatar for BrettH
Member Avatar for Syakoban

look at this: [url]www.banditssoftball.org/show.php[/url] oh yeah, from what i know, php can be used in any type of file as long as the server is set up for it.

Member Avatar for aformoftruth
0
330
Member Avatar for veledrom
Member Avatar for Kavitha Butchi

i personally don't recommend making a new table for every user. it may be organized but is difficult to deal with. i would make a users table, then any other tables you would need and you ids to reference info in different tables.

Member Avatar for Kavitha Butchi
0
259
Member Avatar for bin_asc

did you view the source. sometimes pre tags don't work for me and i know that browsers like to hide php code.

Member Avatar for bin_asc
0
173
Member Avatar for hno
Member Avatar for somedude3488
0
62
Member Avatar for Andrew Hucks

i don't think there is a way to get a certain line with curl. you are just going to have to process the data returned with preg_match and a regex(regular expession). you could also try fopen with fgets to read the file line by line, put the lines into an …

Member Avatar for somedude3488
0
88
Member Avatar for veledrom
Member Avatar for CzechRock3

where the form function? the error is showing because the script cant find the form function.

Member Avatar for somedude3488
0
824
Member Avatar for maydhyam

i made an adjustment and cleaned up the code to make it easier to read. see if it works. [code] <?php echo '<tr>'; echo '<td width="255">'; if ($arr[6] !== 'Admin' && $arr[6] !== 'SysAdmin') { echo '<div align="center"><img src="images/bill.png" alt="Bill" /></div>'; } else { echo '<div align="center"><a href="underConstruction.php"><img src="images/bill.png" alt="Bill" …

Member Avatar for maydhyam
0
104
Member Avatar for broady

fill in the info below and then put this where you want the content displayed. i put some basic html stuff in there to show you what you can do. change this accordingly. [code] <?php //Database Info $host = 'localhost'; //usually localhost, but depends on how the server is set …

Member Avatar for somedude3488
0
89
Member Avatar for kv79

do you really have to use frames. a css layout would be easier and make adding the background a simple task.

Member Avatar for topsege2007
0
115
Member Avatar for prashanth18

all you need to do to destroy a session is call [code] session_destroy(); [/code] you don't need to unset variables before then. session_unregister is depreciated anyway. if you want to remove something like the uname part of the session array just use [code] unset($_SESSION['uname']); [/code]

Member Avatar for R0bb0b
0
99
Member Avatar for skinbug

yes it does need to be checked. i use htmlpurify. its a pretty nice php application that will strip out bad information.

Member Avatar for digital-ether
0
146
Member Avatar for ronghel
Member Avatar for somedude3488
-1
986
Member Avatar for srinivas1236

i would use ajax for this if you don't want to refresh the page. otherwise have the form submit using onchange and then get the value via $_GET or $_POST

Member Avatar for somedude3488
0
44
Member Avatar for Tootlol

why are you using the ../ folder. this means move up one directory. since you are finding the file from the root this is uneccessary. i guess after thinking about it, the file could be in a folder that is above the root directory. in that case, what is your …

Member Avatar for somedude3488
0
143
Member Avatar for Tootlol

the server isn't reading the php code. did you set up apache to work with php. also, fyi the browser doesn't read php code, the server does.

Member Avatar for ryan_vietnow
0
150
Member Avatar for justinmyoung

you didn't escape every " in the html you are echoing. you need to add a \ before the quotation.

Member Avatar for Shanti C
0
293
Member Avatar for god_1896

i really don't think this is a php problem. anyways: do you have an example? also, do you have a doctype.

Member Avatar for god_1896
0
96

The End.