39,323 Topics

Member Avatar for
Member Avatar for wilch

Hi All, Can anyone please help me. I am trying to connect to a Pervasive SQL v9 database using a PHP script. I have been trying for hours to make a connection but all my browsers keep loading with no response from the server. The PHP code is as follows: …

Member Avatar for wilch
0
926
Member Avatar for cristi08

What it want from me? [CODE]<?php if (isset($_POST['submit']) && $_POST['submit'] == "Update") { $query_update = "UPDATE preturi SET preturi = '" . $_POST['preturi'] . "' WHERE username = '" . $_SESSION['user_logged'] . "' AND password = '" . $_SESSION['user_password'] ."'"; $result_update = mysql_query($query_update) or die(mysql_error()); $query = "SELECT * FROM …

Member Avatar for ﻼim
0
199
Member Avatar for hari.sarvothama

I have a drop-down list box which has to be populated from a database in mysql. I implemented the following code: [CODE] //DB Conn done here.. <td>College Name,id :</td> <td><select><option selected="selected">Choose a college...</option> <?php $query="SELECT nameid from college"; $result=mysql_query($query); while ($line = mysql_fetch_array($result)) { foreach ($line as $value) { echo …

Member Avatar for ﻼim
0
220
Member Avatar for Awah Mohamed

Hi . Watsup people People ... I need your help , i am new to php programming , all what i can do is to create an html template and write my code in side the template . So i am seeing in phpbb forums and some websites , there …

Member Avatar for ﻼim
0
90
Member Avatar for levsha

I'm trying to pass a value from a select input control on an HTML form. Here is the PHP of page1.php: session_start(); $_SESSION['invtype'] = $invtype; header("location: offerform_switch.php"); Here is the HTML: <select id="invtype" name="invtype"> <option value="0" selected="selected">Select type</option> <option value="product">PRODUCT</option> <option value="software">SOFTWARE</option> </select> This is offerform_switch.php: session_start(); echo $_SESSION['invtype']; switch …

Member Avatar for levsha
0
575
Member Avatar for sami.asanga

Hi, Im struggling to do a function like this.In the admin panel of my site,there is an option for the admin to select multiple orders using check boxes and marked them as accepted.And I need to update the product table at the same time according to the product quantities of …

Member Avatar for ﻼim
0
105
Member Avatar for doctorphp

Hi everyone. I am trying to make an if statment that will show text saying create an album if the user has no albums but if they have one or more albums then it will show their albums. Now I have sorted out everything but when I get to the …

Member Avatar for ﻼim
0
124
Member Avatar for RicardoE

Hello all, I'm having some problems, see I'm making an API in php to my web app comunicate to a desktop app. Anyways, when I try to post some data to the site I need a url to go in that data, example: name=product[B]&[/B]description=something[B]&[/B]site=mysite.com?name=a[B][I]&[/I][/B]desc=b this is how the post is …

Member Avatar for ﻼim
0
112
Member Avatar for hotice47

hi .. i am working on chat system ..there are two types of user one are register and other are guest and i have to add guest user..in to database as temporary so they can chat with each other the problem i am facing is with there names i want …

Member Avatar for MooGeek
0
185
Member Avatar for NetHead21

Hello anybody! I have some idea and I don’t know if it will work. I am planning to make a user management system using the mysql database but the problem is I don't know where to start because in MySQL database the password is encrypted with password() function and it …

Member Avatar for MooGeek
0
223
Member Avatar for LRNPHP

Hi Everyone. Could anyone give me some pointers in creating a PHP, MySQL ShortCode system. I want to create a system where a user can SMS a keyword to a short code SMS number. [B]Example:[/B] [COLOR="Red"]SMS pizza to 33333[/COLOR]. Then the server checks pizza in MySQL DB and replies with …

Member Avatar for MooGeek
0
522
Member Avatar for phplover

Hi, I have developed a download / upload script that also counts the downloads of each downloaded file. For statistics i currently got total files and total overall downloads but would like to extend this so it can say how many downloads there has been in a week, month, year. …

Member Avatar for phplover
0
170
Member Avatar for lordsbaby2010

Hi, I have been working with php for awhile now, but I am bum fuzzled on this one: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/xxxxx/public_html/xxxxx/index.php on line 5 adminlogin.php <?php include "mysql.php"; $res=mysql_query("select * from pagelay"); $mygrow = mysql_fetch_array($res); ?> now the other page …

Member Avatar for FlashCreations
0
236
Member Avatar for LRNPHP

Hi Everyone. I'm busy with a advanced search function, what I want to do is when a client clicks on a tab/button it should open a windows where he can define his search even more. If anyone could point me in the right direction of what I can use or …

Member Avatar for LRNPHP
0
164
Member Avatar for cristi08

Hellow programmers, today I stuk on a new one,This time is a $_Get sintax that give me error like so :"invalid query 4: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''36''' at …

Member Avatar for cristi08
0
100
Member Avatar for eirikra

This might be a stupid question, as I am a complete beginner in the world of AJAX/Javascript. However, I am trying to build a website using Ajax combined with PHP/MySQL. The issue I have at hand is that the PHP variables and functions that I have included in the header.php …

0
47
Member Avatar for dschuett

Ok I am very new to the php mysql world so please bare with me. I have set up a database for an apartment complex with a table containing the following: [code] create table apartments (apt_num int not null, available varchar(5) not null, beds int not null, baths int not …

Member Avatar for vibhaJ
0
1K
Member Avatar for ranganaMIT

hi guys, I'm doing a simple system using codeigniter i need to implement search using jquery ajax in it, this is my fist coding experience in codeigniter and jquery, so i need a good source to learn about it, please suggest me good study material for studying it? regards, Rangana

Member Avatar for ranganaMIT
0
286
Member Avatar for Encrypted

Does anyone know where the is_home() function is defined in wordpress? I've searched all over and practically searched every file in the script but I can't find it.

Member Avatar for Encrypted
0
78
Member Avatar for fobos

Good morning, i know this was probably asked before, but im kinda in a jam. i have a database where it has a date field and a time field. i want to use a radio button to filter the fields. Say i have 3 radio buttons, the first one only …

Member Avatar for Ancyent
0
65
Member Avatar for vizz

I have created my online community portal. I want to create simple blog using php and not want to use wordpress. How can I create my own blog??? Please help me!

Member Avatar for FlashCreations
0
179
Member Avatar for rahulephp

On my search result page, I wanted to search for "Nintendo DS Lite - Pink" I used following code: Ex: [code] $search_text = "Nintendo DS Lite Pink"; $kt=split(" ",$search_text);//Breaking the string to array of words // Now let us generate the sql while(list($key,$val)=each($kt)) { if($val<>" " and strlen($val) > 0) …

Member Avatar for almostbob
0
113
Member Avatar for mith_cool

I have uploaded some flash content into my html website but when i upload it on the server am unable to see it. I have registered the website of mine but unable to find a way for this problem. heres my code [CODE] <td colspan="6"><script type="text/javascript"> AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','932','height','359','src','Building','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','Building' ); //end …

Member Avatar for mith_cool
0
105
Member Avatar for ello

//Sorry about the name, hit enter too early >.< Should be 'adding a link to PHP' [indexphp.php] [code] <?php if($_GET['act'] == "generate_quotes") { $con = mysql_connect("*", "*", "*"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("quote", $con); $result = mysql_query( " SELECT * FROM `quote` ORDER BY …

Member Avatar for almostbob
0
124
Member Avatar for tones1986

Hey All, I have the a page that takes information for a ticket, and i wish to add the functionality of an upload button for attachments. I have tried making this work but because of using multiple posts , this obviously won't work (at least with what i know). Is …

Member Avatar for hielo
0
128
Member Avatar for felicitam

Im looking for a tutorial about Change text based configuration file with php. Thanks in advance

Member Avatar for felicitam
0
88
Member Avatar for dev.vini

her is the code and please tll me that how can i save the directory file in same location that is opend in textarea pls tell me soon[code]<?php if(empty($_GET['dir'])) $currdir = '.'; else $currdir = $_GET['dir']; // open this directory $myDirectory = opendir($currdir); // get each entry while($entryName = readdir($myDirectory)) …

0
61
Member Avatar for swi2

please give the best site name to download this type of plugin and ple tell how to implement it

0
75
Member Avatar for sjeggels

Need help with displaying picture from mysql database. Can anyone provide a basic php script to retrieve picture from database for display in html page. I have database field: avatar_url whichs save filename of picture in database and a folder: images/avatars where the picture get saved saved. This is for …

Member Avatar for metalix
0
153
Member Avatar for Will3Style

[COLOR="Green"]Little background info:[/COLOR] My site is gaming related; xbox 360, ps3, wii, pc an so on. I have big plans and ideas for the site. Since I can't afford vb right now, I've opted for php to code the site. The friend I did have to code the site was …

Member Avatar for Will3Style
0
166

The End.