39,402 Topics

Member Avatar for
Member Avatar for wayz1229

i want to sort qtitle by numbers. anyone can help me with tat.. i tried to modify the code below, but i couldn't find the solution. please help me.. [CODE]<?php $query1 = "SELECT * FROM table1"; $result1 = mysql_query($query1); $i=1; $num_row=mysql_num_rows(result1;) while ($row1 = mysql_fetch_array($result1)) { $qid = $row1['qid']; $qtitle …

Member Avatar for wayz1229
0
103
Member Avatar for garcon1986

Hello everyone, I've searched a lot of time today for a solution, but not succeed! I want to insert value from the radio button and checkbox into mysql database. Here is my code: insert.php [CODE] <div id="form"> <form method="post" action="process.php"> <h1>BESOIN </h1> <br><br> <label>Sujet:</label><input type="text" name="sujet" />&nbsp;&nbsp; <label>Date: </label><input type="text" …

Member Avatar for garcon1986
0
2K
Member Avatar for niche1

Please, what does "(!$var)" mean? I think it might mean "is $var null". Also, what's the PHP reference? Thanks.

Member Avatar for edwinhermann
0
115
Member Avatar for sha09

i am new in this thread..i like to know all of yours.. i am really need help to use chekbox with retrieved data from database..i dont know how...like inbox in our mail..

Member Avatar for network18
0
1K
Member Avatar for ukumar

Hi, I would like some search result to appear on each of my blog page (below my post article) based on certain pre-specified keywords. Say for example, I have a pre-specified keyword "term" for a particular post in my blog. Now when anyone load this post, I would like to …

Member Avatar for network18
0
53
Member Avatar for zhou1919

Hi, I got the syntax error in my following php code: unexpected T_STRING in /net/home/z6zhou/public_html/signup.php on line 1. Who can help it out? my php code is as follows: <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head><title>Publication DB</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta …

Member Avatar for zhou1919
-3
397
Member Avatar for lcyew

Hi. I am developing a system by using php. Problem I'm facing is that when the resolution of computer is changed, the interfaces of my system is effected. The resolution used while developing the system is 1440X900 while I just being told that resolution used for computers in the company …

Member Avatar for Will Gresham
0
79
Member Avatar for itsrahulk

hi all, i am creating a session variable on the property_detail.php page where after updating all the values i redirected the use to the same page with the value in the session to be printed on the same page as "Property details saved successfully". but the problem is when i …

Member Avatar for itsrahulk
0
106
Member Avatar for weeon

name database : db_shop table_user : uid_user, name_user table_shop : uid_user, date table_question :uid_user, date Help me.... if user wants to accessing to page question, script php will check formerly will what him buy or not yet in certain, has user answered what not yet in certain? if buy so …

Member Avatar for Atli
0
131
Member Avatar for cjay175

Hey, I was wondering how to obtain a hash value and pass it to php. URL: [CODE]http://www.mydomain.com/#id=110[/CODE] All I want to grab is just the "110". This is my javascript code: [CODE] <script> function getUrlVars() { var vars = [], hash; var hashes = window.location.href.slice(window.location.href.indexOf('#') + 1).split('&'); for(var i = …

Member Avatar for Airshow
0
2K
Member Avatar for masocha
Member Avatar for sethm

Recently I found a way to upload an image path into a MySQL db while uploading the actual image to the server. This works fine, except sometimes I don't have an image to upload with the story. So - my question: If I don't have an image how do I …

Member Avatar for Atli
0
244
Member Avatar for DemonGal711

Alright, I found this code online which basically solved my issues. [code]<?php header ('Content-type:image/gif'); include('GIFEncoder.class.php'); $text = "Hello World"; // Open the first source image and add the text. $image = imagecreatefrompng('source01.png'); $text_color = imagecolorallocate($image, 200, 200, 200); imagestring($image, 5, 5, 5, $text, $text_color); // Generate GIF from the $image …

0
124
Member Avatar for masocha
Member Avatar for LindaLou

Hi, I have 4 menus with a submit button posting to a results page with 4 recordsets getting correct data from data base and displaying it with an if, elseif, else clause. It works - well almost! If a row exists that has all the criteria a user has selected …

Member Avatar for LindaLou
0
80
Member Avatar for garcon1986

Hello Everyone. I want to make query with php combo box items. When the user click on the items of combo box, the following table will generate correspondent data. Now i can display data in one table, but i don't know how to use it with combo box. Does there …

Member Avatar for garcon1986
0
127
Member Avatar for LindaLou

Hi, I have created a statement using IF, ELSE IFs, ELSE, and it brings up PARSE ERROR UNEXPECTED T_ELSEIF in line... On checking for the solution to this error it often seems that a } has been included or missed, i´ve doubled checked my code and don´t think that this …

Member Avatar for LindaLou
0
119
Member Avatar for stuckinmud

Hi all ive had some syntax errors and have managed to correct 2 lines using advice on this forum but now it has came up with this error Parse error: syntax error, unexpected T_STRING in /home/nebbmhc1/public_html/send_form_email.php on line 18 ive corrected lines 15 and 16 and wonder how many more …

Member Avatar for stuckinmud
0
128
Member Avatar for nika201

PHP scripts can be run using the php-cgi.exe command line interface. However, a web server is a must if you want to have full functionality of the script. "Viewer for PHP" is an open source app that can be used to run scripts in an embedded browser control. It makes …

0
57
Member Avatar for gpss

Hi! I need some help... i searched a lot.. but dind't found or worked any code.. so i need help please.. i just need a simple thing... i want to show on a combobox, a list of the things that i have (inserted before on my database-postgreSQL) on a collumn …

Member Avatar for phobia1
0
142
Member Avatar for Aamit

Hi i am installing joomla ,virtuemart. I have some queries about shipping costs.. 1> sell the product from 5 cites. customer choose product add to cart How to customer to get product in lowest shipping cost Or cart be able to calculate shipping from the nearest city. 2> Customer can …

0
88
Member Avatar for network18

my api parsing script has dynamic url, like scriptname.php?limit=100 here this last 100 will change;varying from 0 to the number of lines from the file returned by first cron. And i want to this script to execute as a cron job, but how this parameter 'limit' i should handle. any …

Member Avatar for network18
0
1K
Member Avatar for lcyew

Hi. I need to capture and store the time in database whenever there is application or approval is submitted. (in 24 hours time format) I've tried time() to capture time and strftime("%H:%M", $timenow) to retrieve and dispaly the time. However, the hour for the time is incorrect. Some questions I …

Member Avatar for lcyew
0
87
Member Avatar for kishou

sry i'm not really familiar with $_FILES. but i have a quick question. why isnt this uploading? here's my code: [CODE]<?php $file = rand(10,100) . $_FILES["file"]["name"]; if ((($_FILES["file"]["type"] == "application/octet-stream")) && ($_FILES["file"]["size"] < 400000)) { if ($_FILES["file"]["error"] > 0) { echo "Return Code: " . $_FILES["file"]["error"] . "<br />"; } …

Member Avatar for NavedAhmed
0
103
Member Avatar for gotschai

Hello everyone, i have a little problem with variable variables if the variable is an multidimensional array and the indexes are not fix so, they are dynamic. I need something like this: [code=php] $varName = "data"; $varIndex = "[1]['items'][4]['items'][]"; ${varName.$varIndex} = 'xyz' ; // this does not work as php …

Member Avatar for somedude3488
0
105
Member Avatar for itsense

Hi everyone Don't know if someone can help me with my problem. I'm trying to get a total from a loop variable name($cost), I'm running a for loop, thats getting values from mysql, all that i need is for the $cost value to be added up. Code example: [code=PHP]$sql="select * …

Member Avatar for hanna aizawa
0
106
Member Avatar for Muhammad shah
Member Avatar for sureronald
0
69
Member Avatar for alxwm
Member Avatar for rukshilag

In need of creating an online fast food delivery system - please help... no idea how to begin! this is for a group assignment in university. we have to design a creative user and admin interface...

Member Avatar for jomanlk
0
226
Member Avatar for mistersam

Hi everyone, im working on my final year project which is Internet Remote Control using microcontroller and an embedded ethernet board to control home devices for example... The idea is to build a web application which will allow the owner of the house to log in and use the web …

Member Avatar for jomanlk
0
64
Member Avatar for anatta

Hi guys, I'm trying to write code where an ajax function, at a specified interval, calls php script to query a table and open a certian window according to the response(variable) received. After that, the ajax function will continue to call the same php script but will open another window …

Member Avatar for anatta
0
309
Member Avatar for MDanz

i have two frames, one top, one bottom. how do i use curl on the form on the bottom frame that gives me the url of the top frame? link_frame is the top frame. [code]<form action='menu.php' method='get' name='changer1' target='link_frame'>[/code] i hope this isn't too difficult.

0
62
Member Avatar for unwanted_virus

[code=php]<!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=iso-8859-1" /> <title>::SISTEM SEMAKAN KEPUTUSAN PEPERIKSAAN KOLEJ EASTERN::</title> <style type="text/css"> <!-- .style7 {color: #000000; font-weight: bold; } .style8 {color: #000000} body { background-image: url(eastern1.jpg); } .style10 {color: #FF0000} .style9 {color: #FF0000; font-weight: bold; font-style: italic; font-size: …

Member Avatar for Will Gresham
0
103
Member Avatar for SKANK!!!!!

i dont know why but sometimes i use the same exact thing ive used on other pages that it has worked for and it just doesnt work on the new page im working on. i have a table called users. with columns called username password and status why isnt this …

Member Avatar for SKANK!!!!!
0
114
Member Avatar for tatt727

Hi, I am trying to create a loop that will create an array from the values posted into a form and then sort them. The user is first asked how many words they want to enter and then a loop creates a form with the appropriate number of text boxes …

Member Avatar for tatt727
0
183
Member Avatar for AliHurworth

Hi all, I have a div I would like to show and hide. I've used a script before which works, but now reusing it I can't make it fly. As I can't see where I am going wrong, can anyone else help? This is the one that works: [code] <!--script …

Member Avatar for Will Gresham
0
140
Member Avatar for bufospro

I am trying to copy an image and save it in the directory Uploads. But something is wrong. [CODE] $image = $_POST['image_file']; if(!empty($image)) { $target_path = "Uploads/"; $target_path = copy($_FILES['image_file']['name'],$target_path); } <FORM action="" method="post"> <input id="image_file" type="file" name="image_file" title="Upload"> </form> [/CODE] I don't want to use another page in action. …

Member Avatar for omoabobade
0
87
Member Avatar for MCAmy

Hello, can someone please help me with this string? Right now, it will validate keywords separated by commas, lowercase only, and any two digit numbers by themselves also separated by commas. How do I further modify it to permit /up to/ two keywords, trimming any extra spaces that might be …

Member Avatar for rokape
0
172
Member Avatar for becraig

I need to find a way to parse an html file with php. the idea here is to read the file eg: [url]http://www.somesite.com/page.html[/url] Then look for a string eg: "This text is present " Then perform an action based on the whether or not that item is present. The if …

Member Avatar for JenniC
0
173
Member Avatar for nick3592

Hi, i have already made a user registration page and log in pages but i need to know how i can make it possible for other people to view profiles from other users on my site.

Member Avatar for nick3592
0
177
Member Avatar for network18

Hi, I have a simple vote up and vote down feature, which on clicking calls a js function and increments or decrements the counter variable accordingly. But i have an issue, some malicious script just executing the script to incrment the counter by vote up. I am not allowed to …

Member Avatar for network18
0
105
Member Avatar for Stefano Mtangoo

Hi All, I'm still exercising with that small PHP/MYSQL CMS of mine. I have a question that I need help from you guys. I see in many CMS like Drupal where there is loong articles let say 10 of them are displayed on single page. For some technique I don't …

Member Avatar for Stefano Mtangoo
0
89
Member Avatar for Namibnat

If I have a function included within a page, and that function is in it's own file, in a different directory (/scripts/thefunction.php) how would I go about writing a file path to another file that is in a different directory. In a nutshell, a file in /index.php includes a file …

Member Avatar for CFROG
0
115
Member Avatar for Shanti C

Im shanti.. I am developing one dynamic site , here my product display page is like products.php?prod_id=1 It means the products under first category are displayed.. but i want my url like products/categoryname.html..something like this, with my category name...which will spiderable format.. Please help me to do this... All helps …

Member Avatar for ultras1
0
414
Member Avatar for jimmydwatts

ok I can't figure out how to add photos to the slide show help please

Member Avatar for diafol
-1
58
Member Avatar for opatut

Hi Community! I have already searched the whole web about this Problem, and I didn't find anything. Maybe you can help... I want to show the number of all SQL queries I executed to load a web page. It is a very complex system I programmed, and I don't want …

Member Avatar for opatut
0
237
Member Avatar for Toxikr3

Hi guys, I asked a friend to try and hack my site to see how safe it is. He hasn't been able to get to the database or do any serious damage but he has used JS Injection to block my strip_tags(); function. I would like to know how to …

Member Avatar for Frement
0
108
Member Avatar for SKANK!!!!!

[CODE]<?php $documentroot = $_SERVER['DOCUMENT_ROOT']; $username = "Administrator"; $dir = $documentroot . '/' . $username; function rmdir_r ( $dir, $DeleteMe = TRUE ) { if ( ! $dh = @opendir ( $dir ) ) return; while ( false !== ( $obj = readdir ( $dh ) ) ) { if ( …

Member Avatar for SKANK!!!!!
0
134
Member Avatar for peck3277

Hey guys, Hopefully someone out there can help me. I've written a script that displays the contents of a directory. It also links to the file so when I click on it it displays the file contents. What I want to do is when I click on that file it …

Member Avatar for peck3277
0
153
Member Avatar for umairraja52
Member Avatar for kekkaishi
0
59

The End.