39,323 Topics

Member Avatar for
Member Avatar for elijahmangwe

Specification: I wrote most of the code separately but seems am having difficulties linking it to my database: Write a simple E-commerce application, which may be a bookshop, music shop, clothes store, or anything else you wish. There should be a “user” interface to allow customers to select and purchase …

Member Avatar for ShawnCplus
0
51
Member Avatar for cane23

hey i am trying to execute a query statement here is my code below [CODE] $sel="SELECT course_name,course_code FROM courses WHERE course_name='$diff'"; if ($result2=mysql_query($sel)) {echo"nice"; } else { echo "shit"; } while ($row2 = mysql_fetch_row($result2)) { echo"row[0] : row[1] <br>"; }[/CODE] please note that the $diff variable is an array while …

Member Avatar for jstrain@gpc.edu
0
93
Member Avatar for muralibobby2015

hello.... i am doing search concept. i am searching one word from all my web pages . actually i have only one table for 25 static pages. among this pages i want to search searching content. and also highlight the search content. how to do?

Member Avatar for ShawnCplus
0
119
Member Avatar for lll_ari_lll

hello folks, its Aritra here, a newbie in daniweb as well as in code world.. i am a student of BCA, and doing my major project now.. and facing enormous difficulties.. don't know sufficient php.. but studying through different tutorials. i have been told to redecorate an intranet website and …

0
119
Member Avatar for dominique7

Dear programming cracks! I set up a website and thought an email form would be nice, but I thought it would be easier to get it right! I got it quite ok with the easy example below which I found at: [url]http://www.freewebmasterhelp.com/tutorials/php/6[/url] [CODE]<? function checkOK($field) { if (eregi("\r",$field) || eregi("\n",$field)){ …

Member Avatar for dominique7
0
159
Member Avatar for StrikeFreedom

Hi I've been trying to make pagination for my search results and I have this problem: The first page displays ok but when the max result per page is achieved like $max_results = 2 and it reached 2 the links for the other pages shows but when clicked on it …

Member Avatar for blanche3
0
167
Member Avatar for Chjo

ok so i have a problem: ldap_bind without SSL works just fine but when i switch to SSL it doesn't bind. The simple code im testing this with looks like this [CODE] <?php // LDAP variables $ldaphost = "ldaps://myserver.com"; // your ldap servers $ldapport = 636; // your ldap server's …

Member Avatar for jstrain@gpc.edu
0
318
Member Avatar for selvasoft

please any one help me i want display images from mysql database to my web page... i have no clear idea about that please help me.. i want script that will upload file and also display files in date vise. And also i want display my images like my attachment. …

Member Avatar for muralibobby2015
0
98
Member Avatar for ravi0703

Hi, I want to display the less characters in table. In the database the field datatype for description is TEXT. So for example, when i insert more then 500 charaters in that field. When i fetch that description field in the table(front-end) it is increasing the table size as per …

Member Avatar for logonchristy
0
126
Member Avatar for sarithak

hi frnds.. i am using while loop for getting more records..in this having [B]div[/B]..i need to change div name dynamically...but right now i cant do that code...plz change the below code..... [CODE] <DIV id="div_MoviePicRate" name="div_MoviePicRate" class="text2_grey" align="left">&nbsp; <IMG alt="I Agree, Your life Sucks" src="images/up.png" style="cursor:pointer" border="0" onclick="javascript:TF_RateThumb(<?php echo $p_id; ?>,<?php …

Member Avatar for i-hate-blue
0
133
Member Avatar for lisles

I want to echo a message before redirecting.the message gets displayed but it disappears very soon.is it possible to increase the time of display before redirect.this is my code [code=php] if($result) {echo "Data has been edited"; redirect('edit.php'); } else { echo "<p>cannot update your data<p>"; } function redirect($loc){ echo "Reset …

Member Avatar for OS_dev
0
2K
Member Avatar for sammer021486

I need some help with developing a breadcrumb trail/menu. I am currently using php scripts to call my menu to the currently viewed page. Due to my menu being so large and wanting to keep all of the content on one screen size, without using vertical scroll bars. I have …

Member Avatar for sammer021486
0
1K
Member Avatar for lisles

hey,can any1 tell me what im doin wrong here.im trying to upload a pdf file but the file is not gettin uploaded.here's my code [code=php] <?php require_once "../inc/functions.php"; sessionCheck(); session_start(); $old_sessionid = session_id(); //i've added these lines session_regenerate_id(); //i've added these lines $new_sessionid = session_id(); if($_POST['submit'] && $_FILES['txtFile']['name']){ global $uploadPath; …

Member Avatar for lisles
0
94
Member Avatar for jonyetter33

I'm attempting to create a form that will eventually take user submitted information to create a pdf and email it to them with a pdf attachment. I got through making the form, and how I've been getting the information from page to page (its about a 4 page little form) …

0
76
Member Avatar for s_kanika

Hello everyone i'm new to daniweb and php also. i need help. I want to send sms alert to my customer when he fills a form just like email alert from my website Can anyone help me. Thanx a lot in advance

Member Avatar for vsmash
0
75
Member Avatar for grisha83

Hey guys, I am trying to do the basic :hello world" in PHP When i compile the code, my browser doesn't display "hello world" it is giving me an error: "You tried to access the address [url]http://localhost/PhpProject1/index.php[/url], which is currently unavailable. Please make sure that the Web address (URL) is …

Member Avatar for diafol
0
218
Member Avatar for replic

Hi everyone, as said in the title i have a _very_ basic IRC bot that keeps disconnecting after a few seconds. This is what i have so far and i'm grateful for every hint you might have. I also checked this thread but it did not really help: [url]http://www.daniweb.com/forums/thread243489.html[/url] [code] …

0
92
Member Avatar for sutt0n

Ok, so basically I want to be able to do this. I have it all down from obtaining the content from the e-mail and saving the attachment, but when I save the file's content into a file (permissions aren't a problem, as you'll see in the code) it doesn't show …

0
154
Member Avatar for SKANK!!!!!

[CODE]$arr = array(1 => "rambow", 2 => "rambow", 3 => "popcorn", 4 => "rambow");[/CODE] how do i make it in simpler format so i dont have to keep typing "rambow" for every number that => "rambow" ? cause theres a lot of "rambow" for a whole bunch of numbers. isnt …

Member Avatar for OS_dev
0
118
Member Avatar for andydeans

hi, i added a css code to transform the text of my input form however it only displays this and inserts lower case into the database rather than first letter being capitalized. i looked at the phpstrtoupper, however how would i use this in my input form to change it …

Member Avatar for diafol
0
121
Member Avatar for Mujahid158

How can I set a time limit for a user to stay on a web page. Let me explain it to you; Let suppose I've two web pages, page-A and page-B. When the user is on page-A, he needs to stay at this page for 30 secs before going to …

Member Avatar for diafol
0
96
Member Avatar for sumit007

Hii I m using PHP-MySQL to make a class assignment. In this i have made a login control. It was working very fine. But i made an attempt to provide the password changing facility. Since then my project is not logging in. It shows in table the new password but …

Member Avatar for Fbody
0
99
Member Avatar for shraddha Hinge

i have 3 variables $page_no,$noc_no,$doc_no these are coming from 3 different drop down on other page only one is active at a time i want to assign one of the variable to variable in select statement ie $card_id at a time [code] $page_no=$_POST["page_no"]; $page_no=$_POST["page_no"]; $yr=$_POST["publication_year"]; $noc_no=$_POST["noc_no"]; //echo $noc_no; $doc_no=$_POST["doc_no"]; //echo …

Member Avatar for as.bhanuprakash
0
63
Member Avatar for nvdhassani

I need helping fetching the URLs I have stored in my database and opening a new page. I am using a dynamic drop down menu for users to select a category and company. Once a user selects category(parent table) the child table opens up. The user then can click the …

Member Avatar for cwarn23
0
204
Member Avatar for pbcomput

hi.. i was working with php 4.2.3 and now i changed php to 5.3.1 now problem is that when i login as a user in my script i got this warning.. [CODE]Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that …

Member Avatar for network18
0
93
Member Avatar for mcastu

hi all i spent 2 days to find out my mistake.... but failed i m completely stuck out from my code plz help me out :'( I am trying to update one field(ecode) of my at0310 table from emp_company table's ecode within same database(master)... i tried update query with diff …

Member Avatar for mcastu
0
93
Member Avatar for baabdaam

Hi everybody, Actually I stuck in updating a date field in my page that I don't know why it doesn't want to update. I'm retrieving a data from my DB and I I made one column has Textfield that I enter the new date so I press the submit and …

Member Avatar for diafol
0
187
Member Avatar for Davife

I'd like to trap mysql warnings and log them as part of my debugging process. However mySQL warnings just print to screen. I'd appreciate if someone knows how trap warnings along with whatever other information is available and prevent users from seeing the warning. Thanks. David

Member Avatar for NettSite
0
109
Member Avatar for stardustmeri

I have to be honest. I am about to quit college and I just recently started. I have no clue about this assignment. I need help...badly. [COLOR="Red"] For the lab this week, you will need to connect to data via JDBC and run a query such that the result is …

Member Avatar for darkagn
0
110
Member Avatar for wonderland

Hi, Hello, Few hours back I implemented [URL="http://developerkarma.com/projects/phpformmail/readme-all-one-version"]phpFormMail[/URL] with simple form, and everything is working fine except after I submit form I get redirected to this page: The following information has been submitted: Name: Ultra e-mail: [email]email@email.com[/email] Comment: test email: [email]email@example.com[/email] I wanted to know why do I get email: …

Member Avatar for wonderland
0
250

The End.