39,326 Topics

Member Avatar for
Member Avatar for DaveyMoyes

Hi Everyone, I have been trying to understand mysql a little further - with some small steps in the right direction. but I have come across a problem I am unable to fix / get working. I have a form, that has a variable $country - I am trying to …

Member Avatar for DaveyMoyes
0
258
Member Avatar for klemme

Hi all, I came to think of something in my code, which might cause a problem, but I am not sure. After a user of the site has succesfully put a product in the shopping cart - I set a session['cart_succes'] = 'something'; - to display to the customer (after …

Member Avatar for klemme
0
217
Member Avatar for jacksantho

My question is that first i need to create the 10 checkboxes which i have already done and then when i set the value of any of the checkboxes as checked, it should be saved in a session after clicking on the submit button.After clicking on the submit button the …

Member Avatar for diafol
0
129
Member Avatar for Aser Gado

I have all passwords stored in my database in md5 form. when people log in it always says Email or Password wrong, well thats the error i added when something's wrong, I am pretty sure the email and password are right. here is my login code: [CODE] $emailin=$_POST['emailin']; $passwordin= md5($_POST['passwordin']); …

Member Avatar for diafol
0
140
Member Avatar for QuaminaIT

[CODE] if ($_POST) { echo "You chose ", $_POST; } else { $families = array ("Peter Griffin","Lois Griffin","Chris Griffin","Meg Griffin","Stewie Griffin") ; echo '<form name="families" method="post" action="index.php"><select name="family">'; foreach ($families as $family) { echo '<option value="' . $family . '">' . $family . '</option>'; } echo '<input type="submit">' ; echo …

Member Avatar for QuaminaIT
0
123
Member Avatar for xuweisen

Hi, I have stuck on text animation for web design.. [url]www.byouinternational.com[/url] I want the text on the main page (enter site) can animate when I hover to the text, the animation is like the entersite text slide to the right, and then dissapear, and then appear from left side, back …

Member Avatar for xuweisen
0
103
Member Avatar for suavedesign

I am a web designer, with no experience in programming. I want to learn how to program a submit form, since that something that many clients want on thier websites. Can someone please give me a link to an easy to understand tutorial on how to do this? Thanks!

Member Avatar for reganstar
0
86
Member Avatar for Stickie

So I've got this piece of code: [CODE=php] /* BEGIN ZENDINGEN */ $zendingheader = mysql_query("SELECT z.ID, z.Bestemming, z.Datum, m.Aantal_Duiven, s.Aantal_Manden FROM Shipments AS s JOIN Zendingen AS z ON s.Zending_ID = z.ID JOIN Manden AS m ON s.Mand_ID = m.ID WHERE z.Actief = 1 order by s.Aantal_Manden, m.Aantal_Duiven ASC LIMIT …

Member Avatar for Stickie
0
91
Member Avatar for nova37
Member Avatar for pritaeas
0
90
Member Avatar for thecameraman

I am trying to create at user search for my website and I'm not sure where to start. My table name is users with user_id, user_name, name I'd like to be to search and have a page come up with the top 5 closest results. Sorry if this question has …

Member Avatar for thecameraman
0
586
Member Avatar for subrata_ushasi

Hi all, I have dropdown in html consisting value country name. Instead of entering country name one by one into the mysql table I want to transfer by php programming . Is it possible ? If so ,any one can suggest....... Thanks in advance. Subrata

Member Avatar for subrata_ushasi
0
145
Member Avatar for cartergarth

I have 2 tables: 1. users - user_id(PK), firstname, middlename, lastname 2. user_shift_schedule - shift_code(PK), user_id(FK), effectivity_date I want to get all rows with the latest effectivity_date for each user_id. This is what I've got so far: [CODE]SELECT users.user_id ,users.firstname ,users.middlename ,users.lastname ,user_shift_schedule.shift_id ,MAX(user_shift_schedule.effectivity_date) FROM users JOIN user_shift_schedule ON users.user_id=user_shift_schedule.user_id …

Member Avatar for cartergarth
0
266
Member Avatar for rahman86

hey everyone. i am creating a seating system using php. it is to determine which people to their seats in the event. the problem is if I want to visualize the position of the seating using pictures in php is it possible? if yes, how can i do this? The …

Member Avatar for rahman86
0
401
Member Avatar for nova37

[CODE] <?php // initiate curl and set options $ipin = '69.72.129.3'; $ch = curl_init(); $ver = 'v1/'; $method = 'ipinfo/'; $apikey = '100.hva7qa7893wzcsc3x8dk'; $secret = 'uHZVvYK5'; $timestamp = gmdate('U'); // 1200603038 // echo $timestamp; $sig = md5($apikey . $secret . $timestamp); $service = 'http://api.quova.com/'; curl_setopt($ch, CURLOPT_URL, $service . $ver. $method. …

Member Avatar for nova37
0
231
Member Avatar for Warl30ck

The error : syntax error, unexpected T_STRING But I checked all string objects and they worked separately.. [CODE]mysql_query("INSERT INTO downloadlogs(id, name, ip, time) VALUES('" . $Gid. "', '" . $nFile . "', '" . $IP . "', '" . date("l jS \of F Y h:i:s A") . "')")or die(mysql_error()); [/CODE] …

Member Avatar for vaultdweller123
0
300
Member Avatar for grant.baker

Hello all, I've been having an issue with php variables recently. I don't have much experience working with sessions, but I know that domain.com and [url]www.domain.com[/url] are viewed differently when working with sessions. The problem I have is with included files. I am calling .../logbook/header.php from ...logbook/Graphs/index.php. When I use …

Member Avatar for grant.baker
0
224
Member Avatar for s0bigg

I am using a php script for sending email alerts to a list of recipients that I have in MySQL. I want to automate the unsubscribe process for recipients because right now I have a static page where they have to manually enter their info. Since anyways I am calling …

Member Avatar for diafol
0
1K
Member Avatar for israillaky

I have a MySql database that uses a time field to track when the entry was inserted. Now I want to query the table for entries by a time range. I would prefer to use MySql to extract the records instead of extracting all records then iterating and comparing time …

Member Avatar for israillaky
0
722
Member Avatar for ARKaMAN

Hello, what am I doing wrong? It just errors out or posts blanks. [CODE]'$edate=implode('-', {$_POST['edate']})',[/CODE] Is the thing not working [CODE]<?php include_once 'resources/init.php'; $sql="INSERT INTO Client ( firstname, lastname, email, invoice, company, arenew, contact, wink, wint, wind, vtype, usera, yeara, sdate, edate, viprek, notes) VALUES ('$_POST[firstname]', '$_POST[lastname]', '$_POST[email]', '$_POST[invoice]', '$_POST[company]', …

Member Avatar for diafol
0
134
Member Avatar for HecGL35

Hello. I need some help in solving a php code project. I have a combo box field (months) that pulls all 12 months from a MYSQL table. The combo box is populated using php. I want to know how can I evaluate the value in the Select tag to do …

Member Avatar for diafol
0
175
Member Avatar for thedonedeal

I'm working on a Visual Basic application and would like to have it send its results (either an XML file or database rows) from the application to a database online for processing. I'm more familiar with MySQL/PHP but have no idea where to get started on with this. What I …

Member Avatar for thines01
0
113
Member Avatar for filipgothic

Can someone explina me this error on 42 I have to make Questionnaire with database so I made it like this but won't load site. here is code [CODE]<?php include 'config.php'; $err = array(); if($_POST['doAnketa'] == 'Anketa') { foreach($_POST as $key => $value) { $data[$key] = filter($value); } if(empty($err)) { …

Member Avatar for filipgothic
0
167
Member Avatar for BenzZz

Hi, The following code is working without errors: [CODE] <table> <tr> <td>Booking No.</td> <td>Driver Id</td> <td>Time Booked</td> <td>From</td> <td>Pick Up Time</td> <td>To</td> <td>No. of Passengers</td> <td>Distance</td> <td>Cost</td> </tr> <?php $stmt = $dbh->prepare("SELECT * FROM Booking WHERE cust_id = '$username' "); $stmt->execute(); while($row = $stmt->fetch(PDO::FETCH_ASSOC)){ echo "<tr><td>".$row['booking_no']."</td>". $row['driver_id']."</td>". $row['time_booked']."</td>". $row['pick_up_dest']."</td>". $row['pick_up_time']."</td>". …

Member Avatar for BenzZz
0
87
Member Avatar for microbert

Hi, I have a While Loop to display my MySQL info. This makes a list of all my data, in one row. But what I want is it to display it in a table with 5 columns so that the data is more readable. this is my code: [CODE] while …

Member Avatar for broj1
0
4K
Member Avatar for Yoong Sin Jie

I am a student , I dont know much for the php , I using the HTML ,PHP, XAMPP and MYSQL The 3 tier architecture normally are consider Model ,view and controller. For the part of controller , Normally how are you people coding , I really need help . …

Member Avatar for Yoong Sin Jie
0
278
Member Avatar for thecameraman

Hello I am trying to make a friend request system and I have it so it displays all the friend request and at the end there is a button that says "Yes" and one that says "No" I would like the Yes button to change "0" to "1" and No …

0
161
Member Avatar for Riteman

I know that php is same like HTML. I have the codings. But wondering how to execute it...? I use Dreamweaver but in vain.. i get no result.. some body pls help me.. It asks me to set a server for it. Though i set, no result obtained...!

Member Avatar for minitauros
0
200
Member Avatar for klemme

Hi, I want to get information from each session set, EXCEPT when the session name is 'navigation': So basically: Create an exception for the session called 'navigation'.. [CODE] foreach ($_SESSION as $name => $value) // $name = navn på session: f.eks. 1 eller 2 - $value indeholder antallet der er …

Member Avatar for pritaeas
0
922
Member Avatar for Aamit

Hi, I need some deep knowledge Regex Vs Dom. Is Regex much faster then Dom or not? Like processing speed, reliable or not . If any one share link or article it helpful for me.

Member Avatar for pritaeas
0
174
Member Avatar for PF2G

Hi, i'm doing a page where user can register and give up of a course: [CODE]<td width="5%"> </td> <td> PROGRAMAÇÃO: <br/> <?PHP $cc=$_GET['cod']; $sql_prog = "SELECT prog_curso FROM cursos WHERE cod_curso=".$cc; $query_prog = mysql_query($sql_prog, $connect); while ($row = mysql_fetch_array($query_prog)) { echo $row['prog_curso']; } ?> <br/> </td> <?PHP if(is_logged()) { ?> …

Member Avatar for pritaeas
0
150

The End.