39,320 Topics

Member Avatar for
Member Avatar for printman55

The mysql database I set up used date format for the field. Consequently dates have to be entered as 0000-00-00. So when I retrieve the field name news_date from the database it will print as 2011-02-02. I would like to display it as February 2, 2011. Can someone help me …

Member Avatar for paulrajj
0
137
Member Avatar for komanche

Hi all am having problems with my login forms. I have written the code and has no errors, but when I run it from my browser i get "Warning: mysql_query() expects parameter 2 to be resource, null given in C:\xampp\htdocs\nicks\includes\database.php on line 269" I have a "MySQL Table with Members …

Member Avatar for divyakrishnan
0
50
Member Avatar for tape enterprise

well I have a search feature on my site and it works great if the query returns results but if it doesn't it falls apart what do I do to make it say "no search results found" when the query comes up as empty My code is this to handle …

Member Avatar for pritaeas
0
113
Member Avatar for skald89

[url]http://s56.photobucket.com/albums/g194/flameingulfedpyro/?action=view&current=slideshow.jpg[/url] In the picture I have a picture div and a text div. The picture and text are related to one another. I want it that when you click the right or left arrow the pic and text change together. I dont really care how they change, slide, fade, or …

Member Avatar for pritaeas
0
157
Member Avatar for ello

Hey guys just a quick question, my AJAX is working in FF and Opera just fine, As in it repeats the function whenever the button is clicked, but in IE the first click works, but then it doesn't repeat... I've been searching around form some fixes, and found quite a …

Member Avatar for McLaren
0
173
Member Avatar for itisnot_me

ok so i know how to do this within theory but not how to code this one. i have within my page a {blah:6}. i know that if i want to call a static string i would do this [CODE] $replaced_content = str_replace("{blah}", $page_name, $page_content); [/CODE] but the problem is …

Member Avatar for nicksontinko
0
113
Member Avatar for gakusya

Xampp is telling me that apache and php are up and running properly, but viewing html pages with <?php ?> tags in the apache doc root folder is not doing anything with the php code, i can see the php code when viewing source via firefox. I've experimented with every …

Member Avatar for nicksontinko
0
572
Member Avatar for raju_boini525

hi all, i have one problem with facebook landing page. i created facebook landing page through static fbml app but i have one problem with like button, user must like the page before he will navigate to another page. i want to do same functionality in my landing page, [URL="http://www.facebook.com/BusinessofCinema?v=app_6009294086"]http://www.facebook.com/BusinessofCinema?v=app_6009294086[/URL], …

0
120
Member Avatar for parag.kamble

Hi, i want to upgrade php 5.1.6 to 5.3.5 server os is RHEL 5 i want to do this task without taking downtime..

0
30
Member Avatar for thesyntax

$sql = "UPDATE USERS SET password='changed password' WHERE login = steve"; header( 'Location: [url]http://steveworld.000space.com/prof.php[/url]' ); this is my code, im trying to allow users to change their passwords at anytime, I put in a set text and it still doesnt work, it is very agitating!

Member Avatar for spankyxeon
0
133
Member Avatar for martbern

Hi there, please help. I have a page that creates a simple combobox with items from the first field in my mysql db. [CODE] <html> <head><title>Customer</title></head> <body> <div class="dbconnect.php"> <?php include("includes/dbconnect.php");?> </div> <?php $result = mysql_query("SELECT * FROM customers ORDER BY company"); echo"<form action='customer.php' method='POST'> <select name='company'>\n"; while ($row = …

Member Avatar for diafol
0
118
Member Avatar for pjh1985

Hi I have a dynamic website which is already online and it works great, but,I recently decided to add an event calendar and I have ran into some problems. The website only uses 1 page and i then use URL variables to display content or include additional files. So i …

Member Avatar for diafol
0
141
Member Avatar for nenana

Hi, I have just started to learn php.I wrote a php code to list/add/edit/delete values of a mysql table which is already created and filled.I can print existing values in the table.However,when I want to delete one of them,the code doesn't work.I get errors for switch case.If you can give …

Member Avatar for nenana
0
106
Member Avatar for waveydaveywaves

right now my php script is vulnerable to anyone putting in a random member_id into the url and having it excute sucessfully how can I encrypt the id="id#" in the url, so a guest is unable to type in there own id in the posted id retrieved through the url? …

Member Avatar for waveydaveywaves
0
216
Member Avatar for amit.hak50

I have this pdf search engine script [url]http://pdfsearchmachine.com[/url] and when you type "g" it give some suggestions ,my problem is that why I am getting some ? marks in search suggestions beloa is the code [CODE] <? $search = $_GET["search"]; $replace = " "; $with = "+"; $search = str_replace($replace, …

Member Avatar for diafol
0
159
Member Avatar for agr8lemon

Hello everyone! I'm wondering if there is a way to assign the values of a column in SQL as the key name in a multidimensional array. Here is what I have, my database looks like this: Table Name = SJCFPCB date | totalin | cdulep | icu | ----------------------------------- 2011-01-27 …

Member Avatar for agr8lemon
0
197
Member Avatar for yaakhi

hi there web masters, i have a simple script in php which shows users online with their ip and browser can you please modify it to show country flag or name or both here is the code [code]<?php error_reporting(0); include("cnfg.php"); $ms=mysql_connect($host,$login,$pass) or exit; mysql_select_db($db) or exit; $res=mysql_query("Select * From `online` …

0
72
Member Avatar for Lapixx

Hi, I made a basic PHP upload system in order to allow file uploads to my server. The only problem I run into is that I want to be able to upload .php files (and other possible files that are executed by the webserver before being sent to the client), …

Member Avatar for Lapixx
0
140
Member Avatar for Xtremefaith

Currently trying to update a balance column in my table using this query [CODE] UPDATE vendors SET balance = (SELECT SUM(balance) FROM vendors WHERE Code = $ud_payee) + $ud_minDue WHERE Code = $ud_payee [/CODE] When variables are translated, for testing purpose I would have the following: [CODE=mysql] UPDATE vendors SET …

Member Avatar for Xtremefaith
0
277
Member Avatar for yamot47

[CODE] echo("<TABLE width='70%' border='2' cellpadding='3' ALIGN=CENTER name='test' >"); echo("<TR bgcolor='B0C4DE'>"); echo("<TH>Sr.No</TH>"); echo("<TH>Title Of Book</TH>"); echo("<TH>Author Name</TH>"); echo("<TH>Number of Copies</TH>"); echo("<TH>Borrow</TH>"); echo("</TR>"); //searching using title of book $count=0; $i=1; while ($row = mysql_fetch_assoc($query)){ echo("<TR id='$i' bgcolor='B0C4DE'>"); $sr_num=$row['b_sr_num']; echo ("<td><input name=data id=data type=text id=data readonly=readonly value=$sr_num></td>"); echo ('<td>'.$row['b_name'].'</td>'); echo ('<td>'.$row['b_author'].'</td>'); echo ('<td>'.$row['b_avail'].'</td>'); …

0
77
Member Avatar for rajesh1158

I have installed ajaxim chat SNIP in my website at SNIP I downloaded the minified version(size: 78K) The chat at bottom right corner always shows "You are currently not connected" (when mouse is moved over it). My database settings are all correct but still i'm getting this message. Also the …

0
69
Member Avatar for kkjay

Hi Guys, I am making a social networking site where I want to have a user's pals shown in a PHP generated table. I want to show pal thumbnails and other information below these thumbnails so that if you click on a thumbnail, it takes you to that user's profile. …

0
63
Member Avatar for mesamb1

I am new to PHP and I am trying to create an application for a friend with a good sense of humor, the app takes quotes and randimly loads one when the page is loaded. I had no idea how to do it so I took some coading for a …

Member Avatar for frops
1
147
Member Avatar for souravsikka

Hello friends,I have some problem regarding dropdown list.I have 3(Pair of two dropdown list,1st showing categories & 2nd showing subcategories of selected categories)dropdown list having same functionality.When i select a category from 1st dropdownlist,then it showing all the related subcategories of selected category. the problem is when i am selecting …

Member Avatar for danishbacker
0
137
Member Avatar for loungeowl

[CODE]<?php // Using hooks is absolutely the smartest, most bulletproof way to implement things like plugins, // custom design elements, and ads. You can add your hook calls below, and they should take the // following form: // add_action('thesis_hook_name', 'function_name'); // The function you name above will run at the …

Member Avatar for loungeowl
0
288
Member Avatar for iammirko

Hi, I was wondering if it is possible to fetch all items in a form in one go in PHP rather than using $_POST[] or $_GET[] for each individual element in the form. I often deal with forms having more than 30-35 elements and it get really tedious (not to …

Member Avatar for jalicia18
0
131
Member Avatar for nasablast

I need to update multiple records in a single form but am not sure how to proceed. The following is the code I am using to insert the fields into the database originally. [CODE]$case = date(ymdHis); //register into database if (!empty($p1_firstname)) mysql_query ("INSERT INTO cases VALUES ('$case','$date_booked','$p1_firstname','$p1_lastname ''$city’)"); if (!empty($p2_firstname)) …

Member Avatar for divyakrishnan
0
84
Member Avatar for phpDave

Hi, I'm trying to select from 3 tables but I can't seem to get it right. Here is the code: [CODE]$query_Recordset1 = sprintf("SELECT * , image.user_id, image.name, page.user_id, page.urlcode FROM users JOIN mystuff.page JOIN mystuff.image ON page.user_id = image.user_id = users.user_id WHERE users.last_name = %s AND users.first_name = %s", GetSQLValueString($colname_Recordset1, …

Member Avatar for jalicia18
0
107
Member Avatar for yamot47

does it's possible to retrieve data from a javascript ?? coz js is a client side script and php is a server side how can i get value of my js??[CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <script type="text/javascript"> …

Member Avatar for divyakrishnan
0
1K
Member Avatar for left19

I'm a total newbie (major) at php. I don't know what an argument is. I have a joomla module that can parse out code and it takes the code like this {jumi [stored_code_source] [arg1] [arg2] ... [argN]} I presume I could do something like <?php If this condition exists do …

0
51

The End.