39,326 Topics

Member Avatar for
Member Avatar for demon8

Hey all. Ok this is so basic but confused. I'm updating the student name in this instance. I'm able to extract the name out of the database, but I cannot update. Any hints as to where i'm going wrong? [CODE] <?php $dbhost = 'localhost'; $dbuser = 'nbsstud1_test1'; $dbpass = 'demon8'; …

Member Avatar for demon8
0
88
Member Avatar for fire eaters

<select name="criteria" class="report_listbox"> <option value="">Status</option> <option value="PASS">PASS</option> <option value="FAIL">FAIL</option> <option value="ALL">ALL</option> </select> ------------------------------------------------------------------------------------ $date = $_POST['date']; $criteria = $_POST['criteria']; $sql=" SELECT frsemployees.`name`, bft.`date`,bft.`dpush`,bft.`push`, bft.`dsit`,bft.`sit`,bft.`drun`,bft.`run`,bft.`status` FROM `bft` INNER JOIN frsemployees ON frsemployees .empid = bft.empid WHERE bft.`date`= '".$date."' AND bft.`status` = '".$criteria."' "; -------------------------------------------------------------------------------------- the bft database table `status` row containes …

Member Avatar for karthik_ppts
0
117
Member Avatar for arunsolo1984

I need to upload of maximum 5 GB file size in php. I have given max_execution_time = 3600, LimitRequestBody = 0, max_input_time = -1, memory_limit = -1, post_max_size = 10000M, file_uploads = On, upload_max_filesize = 10000M. Many people said that have to use FTP. According to my project, it should …

Member Avatar for diafol
0
105
Member Avatar for akashbarot51

i am doing connectivity of one form of my project website. and i am facing following kind of error. please can you help me. i have tried to solve. but not getting idea exactly. the error is Parse error: syntax error, unexpected ';' in C:\wamp\www\PROJECT\feed_data.php on line 15 <?PHP $con=mysql_connect("localhost","root",""); …

Member Avatar for pritaeas
0
135
Member Avatar for clerisy
Member Avatar for vizz

How to extract only first two paragraph form mysql? [CODE] while($row = mysql_fetch_assoc($result)) { $about=$row["about"]; } $start = strrpos($about, '<p>'); $end = strrpos($about, '</p>', $start); $paragraph = substr($about,$start,$end-$start ); [/CODE] This code gives first only one paragraph. How to get first two paragraphs? Please help

Member Avatar for vizz
0
2K
Member Avatar for Olifant

i want to do a project on online vihecle tracking so i need to know the requirements and the code

Member Avatar for diafol
0
59
Member Avatar for swilliamrobert

Hi, This is code. $toname = 'XXXXXXXX'; $to = 'test@mail.com'; $fromname = 'YYYYYYY'; $from = 'test123@mail.com'; $subject = 'This is test email '; $body = 'Hai this is test email MIME......Help me out.....'; $text_body ='<html> <head> </head> <body> <table align="center" cellpadding="5" cellspacing="0"> <tr align="right"> <td bgcolor="#336699"> <b><font color="#FFFFFF" face="Verdana, Arial, …

Member Avatar for pritaeas
0
120
Member Avatar for arjani10

Hello! I ma trying deferent times but nothing happened in my website the frontpage dont change ...I have 3 colums i need 2 colums ,when i set nothing happend.Can i have an help please?my website is [url]http://shqiplive.info[/url] i set like image here[CODE]http://desmond.imageshack.us/Himg201/scaled.php?server=201&filename=tablehj.jpg&res=medium[/CODE]

Member Avatar for Ritesh_4
0
196
Member Avatar for anthonyjpv

Im building a very small website which has an admin and public area what i want to know is your prefence when it comes to reporting or logging ie. when admin or user insert, update, delete, from and to the database changes will be written to either a database or …

Member Avatar for anthonyjpv
0
84
Member Avatar for cartergarth

How do I set default value of function parameter as today's date? I tried: [CODE]function funcName($today=date('Y-m-d')) {do something}[/CODE] Throws me this error: [CODE]Parse error: syntax error, unexpected '(', expecting ')'[/CODE] Thanks.

Member Avatar for pritaeas
0
221
Member Avatar for epicrevolt

So, for the past couple years, I've been using systems like WordPress and now Drupal to construct client websites. Most of the development has been front-end with themes and simple widgets (or blocks in Drupal). Don't get me wrong, I love using those systems, but now I want to move …

Member Avatar for diafol
0
240
Member Avatar for anthonyjpv

Hi! Im changing my database engine from MyISAM to InnoDB its because I learned online that if I were to use FK's that its more likely that I have to use InnoDB my question is: if I have a one-to-many relationship tables: ie. one PK in table 1 can have: …

Member Avatar for baig772
0
75
Member Avatar for simirnov

Hi all, I do not know PHP at expert level. I have an admin panel which has index file coded in OOP which does not open the admin_home.php. When i give admin username and password to login, it logs in and takes me no where and shows the same log …

Member Avatar for baig772
0
62
Member Avatar for mohamedasif18

Hi all, I hav a code that takes my table rows and displays as checkboxes in a registration form, When the form submits user checked values will be saved separated by comma's(,) in one column . In future the user need to edit his details means how to show that …

Member Avatar for mohamedasif18
0
1K
Member Avatar for vaultdweller123

Hey guys anyone here know how to set-up virtual host on nginx? ive tried the manuals but doesn't work for me

Member Avatar for vaultdweller123
0
439
Member Avatar for adityamadhira

Hi I am retrieving values from database for edit profile... I have one query ..... i.e. Based on department Id in database i am showing selected value in drop down box.... but while inserting how to insert department id. $data = @mysql_query("select * from Department"); $array = array(); while ($row …

Member Avatar for vaultdweller123
0
158
Member Avatar for Trizocy

Greetings everyone, im new here so i hope anyone could help me with this: I have bought a script that are encoded is something that i cant change or read, and i have ask the owner how to put a {user} at the end of every hyperlink so are going …

Member Avatar for jkon
0
144
Member Avatar for njenge
Member Avatar for accra

Am trying to validate these variables with an if statement,but it not working,any help will do. [CODE] if($navtype == "xxxx") { $com_name = $_POST['com_name']; $loc = $_POST['loc']; $name_mech = $_POST['name_mech']; $vtype = $_POST['vtype']; $s_veration = $_POST['s_veration']; $remnder_ver = $_POST['remnder_ver']; $vreg = $_POST['vreg']; $last_startdate = $_POST['dy']."-".$_POST['dm']."-".$_POST['dd']; $mileage = $_POST['mileage']; $current_mileage = …

Member Avatar for simplypixie
0
114
Member Avatar for Martin C++

Question in title. I need it for my PHP site to know which theme is active and I dont want to use database for it. I think it should be possible, cause wordpress doesnt have this stored in database either (I think).

Member Avatar for NinjaMediaD
0
70
Member Avatar for Killuminati11

Hello! i am looking for coders to help with making a online mafia game, i myself cannot do it yet but am trying to learn, and have realized how much money can be made once you get active players!!! i am willing to put a lot of time into this …

Member Avatar for Killuminati11
0
75
Member Avatar for tokick4

Hello, First let me start of by saying that I am new to javascript and ajax, but I thing I need them to accomplish what I am trying to do and here it is. I have there search forms, 1 search owner, 2 search contractor, 3 search properity. Then I …

Member Avatar for jstfsklh211
0
208
Member Avatar for loudube

I have the code shown below that nicely fills a Combobox but I have no idea how to have it on a form so that the user can select an item and the resulting $_POST would be availabe to another page the same way it would be if the Combobox …

Member Avatar for diafol
0
86
Member Avatar for Webville312

Hello, all. I am doing a project, which supports users such as Administrators, teachers and students. Since I will not always be available when they are registering, I want a user to create for themselves an account. However, the challenge is that, I do not want a user to register …

Member Avatar for Webville312
0
156
Member Avatar for Artix123

Hi I am working on web for some group, but i have problem my code is [ICODE]<?php session_start(); $username = $_POST['username']; $password = $_POST['password']; if ($username&&$password) { $connect = mysql_connect("http://mysql.ic.cz/phpmyadmin/","USERNAME","PASSWORD") or die("Nemůžu se připojit"); mysql_select_db("vy_promm") or die("Nemůžu najít databázi"); $query = mysql_query("SELECT * FROM uživatelé WHERE username='$username'"); $numrows = mysql_num_rows($query); …

Member Avatar for diafol
0
101
Member Avatar for nzaman
Member Avatar for Arjun_Sarankulu

I have html page(Main_Frame.html) which contain two frames. 1)abc.php 2)xyz.php How can i auto refresh abc.php without refreshing the whole.

Member Avatar for diafol
0
89
Member Avatar for sujan.dasmahapa

I want to create a button on a php pafe like a form now after pressing this button i should load an image. Now the I have done this. when the image is appearing it's on the other page than where the button was. I want to have the button …

Member Avatar for pritaeas
0
206
Member Avatar for lifetalk

Hey guys... Needed some help in PHP .. Basically.. say.. I have 2 or more input fields and one text area. Now, I want some sort of a php script that would use POST to extract submitted data from the inputfield1, inputfield2, and text-area. The textarea is going to have …

Member Avatar for baig772
0
188

The End.