39,316 Topics

Member Avatar for
Member Avatar for ApocDen

this snippet is to create random passwords with a chosen length and a specified number of numbers. Uses both lower case and capital letters, which are chosen at random. And example is: wep5Q268LtTe. [B][U]How to use.[/U][/B] Using this is very easy just add to the appropriate page and call the …

0
700
Member Avatar for lwaterfo

Hi all, I have a big problem. I am very new to php and sql and I need to create a login web page page for access to a database I have created in mySQL. I have located a script online here: [url]http://php.about.com/od/finishedphp1/ss/php_login_code.htm[/url] that basically explains the entire process. My …

Member Avatar for Chi-Town
0
108
Member Avatar for Arawa

Hi all, 3 tables : one events table (each event can have differents types) one types table (each type can have differents events) and one liaison table (link between events and types tables) I have some problems when I show screen. [code=php] <select name="type[]" size="10" multiple="multiple"> <?php $req_type = "SELECT …

Member Avatar for Arawa
0
161
Member Avatar for dietdew12z

I don't know if there is something unstable about using $_SESSION variables or not, but I've written user management scripts for my website, most of the time everything works okay but sometimes my server goes off on it's own and I can't load any pages on my server until I …

Member Avatar for dietdew12z
0
271
Member Avatar for sparatacus

Hi, I am interested in starting a small price comaprison website in my local area. The site should compare prices from 20 suppliers, selling an identical product in 4 different quantities and some suppliers only deliver to certain post/zip codes. What would be the best way to set up this …

Member Avatar for ZZZubec
0
75
Member Avatar for learner4ever

Hi, I am getting an 500 internal server error when using the redirection code in my HTACCESS file.Given is the code i am using: RewriteEngine On rewritecond %{http_host} ^domain.com rewriterule ^(.*)$ http://www.domain.com$1 [r=301,L] I also have already following lines of code in my htaccess file: # -FrontPage- IndexIgnore .htaccess */.?* …

Member Avatar for whiteyoh
0
128
Member Avatar for terrymold

Hi everyone This is my first post here and it would be great if someone could help me with this small problem. I have a PHP script which inserts form data into a MySQL database. But clicking on the Submit button produces the following error:- [COLOR="red"]Database ERROR: You have an …

Member Avatar for hielo
0
86
Member Avatar for seh1

Hi, I have a bunch of uploaded files in a folder. Now I want to be able to get the names of these files that are stored in the folder using PHP so that can I create direct links to each file from my page. ie can PHP read the …

Member Avatar for mschroeder
0
164
Member Avatar for nertos

Hi, how can I get "2" with Url using CI, I try $this->uri->segment() but it doesn't work. [code] http://127.0.0.1/~nertos/index.php/website/search?search=abc+xyz/2 [/code] Any ideas?

Member Avatar for sourcebits
0
60
Member Avatar for macdonald12

Hello people, On my site i am using a .htaccess file with a simple rewrite rule: [code] Options +FollowSymLinks RewriteEngine on RewriteRule ^servers/(.*)/ index.php?action=servers&id=$1 [/code] Allowing visitors of my site to use [url]www.example.com/servers/1/[/url] - which will grab and display the correct page from [url]www.example.com/index.php?action=servers&id=1[/url] In the index.php file, there are …

Member Avatar for sourcebits
0
188
Member Avatar for deni_bg

Hi everybody, I don't understand waht does bigint(20)in MySql means. First I thought bigint(20) means number from 0 to 99999999999999999999 digits, but I made a test with bigint(2). I thought bigint(2)=number from 0 to 99, but it's not. Did you know anybody? I'll be happy to know. Thank you :)

Member Avatar for sourcebits
0
404
Member Avatar for abbyadnez

hi guys, pls can someone pls help look into this code.. i'm trying to create a code that will add data into the database.. after inputing, its giving me the "ERROR: Please fill in all required fields!" error [CODE]<?php /* NEW.PHP Allows user to create a new entry in the …

Member Avatar for Zagga
0
118
Member Avatar for bow103

Hi all I am in need to of some help. As I just sorted out a loging scritp to. I can't seem to add a downloading counter within the members page. So say for example after when the user logs and then wants to view the speacial page the download …

Member Avatar for bow103
0
142
Member Avatar for LRNPHP

Hi everyone. Could some assist me? I have a link. [code] <a href="index.php?make=<?=$mead_make?>&model=<?=$model?>&veh_id=<?=$vehicle_id?>">Add to Cart</a> [/code] This HREF link is generated by a for loop from a mysql DB. All I want to do is add the veh_id to a array and keep adding them to a array until I …

Member Avatar for vibhaJ
0
93
Member Avatar for DealthRune
Member Avatar for vibhaJ

Hi all, Here is my htaccess code for url rewrite: [CODE] RewriteRule ^(.*)/test.php$ test.php?language=$1 [NC] [/CODE] which will redirect [url]www.domain.com/english/test.php[/url] to [url]www.domain.com/test.php?language=english[/url] It is working fine... But when i have extra variable with that url then it doesn't work. e.g. [url]www.domain.com/english/test.php?name=abc[/url] should work like: [url]www.domain.com/test.php?language=english&name=abc[/url] But it is not working.. …

Member Avatar for vibhaJ
0
257
Member Avatar for jfarny

Hello, I am currently developing a review site that requires displaying video reviews. I have created a PHP page that successfully retrieves all records from my video database called reviews.php. I have also created a page that a user gets redirected to when he/she selects a video entitled watch.php. The …

Member Avatar for jfarny
0
985
Member Avatar for bouhbob

Hi there, here is my code and I don't know how to add <br /> to get a return in the email received: [CODE]<?php $to = "myemail@gmail.com"; $subject = "From the website"; $email = $_REQUEST['email'] ; $yname = $_REQUEST['name'] ; $ycompany = $_REQUEST['company'] ; $yphone = $_REQUEST['phone'] ; $ymessage = …

Member Avatar for bouhbob
0
170
Member Avatar for ekseks

I don't know where to start so I just got to ask from the experts :). From my MySQL (database) I got a date formatted mm-dd-yyyy (i.e. 01/01/2010), now from my php page there are 3 dropdown/list menus which are for [B][Month]-[Day]-[Year][/B] and a [B][TextField][/B] then a [B][Submit Button][/B]. When …

Member Avatar for Zagga
0
152
Member Avatar for dontnoephp

hi, i have to write a program that simulates a vending machine: the sale of items,coin counting and change giving. can some1 help???

Member Avatar for Zagga
0
80
Member Avatar for zer0cool

Hello, Here is my problem: I have copied a web site onto my development server. All the images and files are called using absolute paths, for example: <img src="/images/picture.jpg" /> So it's trying to do this: [url]http://www.localhost.com/images/pictures.jpg[/url] When I want it is actually suppose to do this: [url]http://www.localhost.com/client/folder/images/pictures.jpg[/url] How do …

Member Avatar for Zagga
0
152
Member Avatar for niche1

$ct is my array: array(4) { ["a"]=> int(1) ["b"]=> int(2) ["z"]=> int(2) ["c"]=> int(1) } I need to put it in a two column database where "item" is col1 and "count" is col2 where the first row has an "a" in col1 and 1 in col2, 2nd row has a …

Member Avatar for niche1
0
61
Member Avatar for tjohnson13

Hello! I have been searching for a good solution all morning but can't seem to get one! I'm trying to create a form that sends to a different set of email addresses based on what is selected in a drop down menu. While I can make this happen, I need …

Member Avatar for diafol
0
100
Member Avatar for andrewliu

Hello. I was wondering how a simple script would look like if a user would to search a term and there would be suggested results from other users or suggested results from similar searches? Thanks

0
130
Member Avatar for speakerbug

I am super new at coding PHP, and ive gotten this to work in the past, but for some reason it isn't working now. Can someone tell me what im doing wrong. Thank you so much in advance! [CODE]<?php $email = $_POST['email']; $firstname = $_POST['firstname']; $lastname = $_POST['lastname']; $addressone = …

Member Avatar for Flexor123
0
178
Member Avatar for rrothfeldt

I keep getting the following syntax error: Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in C:\xampp\xampp\htdocs\xampp\getFriends.php on line 26 I'm hoping some fresh eyeballs on this will help. I've been puzzling through it for the better part of the day and I'll be doggone if I can …

Member Avatar for rrothfeldt
0
117
Member Avatar for nsandberg

I am new to PHP and I have an application that is suppose to take 6 pieces of information and insert it into the table. I essentially have this application working but the issue that I am running into is that when I select multiple checkboxes it will only insert …

Member Avatar for vibhaJ
0
3K
Member Avatar for private bob4

Hello DaniWeb, I was wondering how I can have a server status in the Title bar. Such as: (Website name) - Server is online! or (Site Name) Server is offline!

Member Avatar for 84hd0ns
0
80
Member Avatar for Awah Mohamed

Hi guys . I need your help . I want to open a powerpoint file on my website but i dont want it to be downloaded so please tell me any way that i can use to open my powerpoint presentartion

Member Avatar for ApocDen
0
52
Member Avatar for lionaneesh

These are my 2 pages index.php:- [CODE]<?php session_start(); ?> <html> <head> <title>Enter Your Name</title> </head> <body> <form action="hello.php" method="post"> Wat's U'r name : <input type="text" name="name"/> <br/> <input type="submit" value="Next"/> </form> </body> </html>[/CODE] hello.php:- [CODE]<?php session_start() ?> <html> <head> <title>Hey <?php echo $name; ?></title> </head> <body> <?php $_SESSION['name'] = $_POST['name']; …

Member Avatar for lionaneesh
0
200

The End.