39,393 Topics

Member Avatar for
Member Avatar for mukherjiikunal

I am using the httprequest class in one of my applications to request a cross domain page. Basically I needed to inlcude two pages based on thge logged in state of the user, via cross domain ajax request. Due to security issues this is not allowed. So what I did …

-1
51
Member Avatar for Venom Rush

What I'd like to do is store the "selected" value of the drop down box in a DB. At the moment the selected value for the drop down list is pulled from the DB. Now what I want to happen is if I don't want to change that specific option …

Member Avatar for Venom Rush
0
1K
Member Avatar for theimben

Im trying to delete records. Most delete ok but some don't and Im completly lost as to why... The information Im storing are just URLs. Could it be to do with some irregular characters within these URLs? Is there a recomended way to store a URL? Please help me out. …

Member Avatar for theimben
0
130
Member Avatar for jeffc418

Hi all! I've been working on the validation for my web site, and I am currently trying to write a script so that if I have the following usernames in the username column of my MySQL table entitled "members": -Jeff -Pete -Bob That no one who is registering a name …

Member Avatar for jeffc418
0
98
Member Avatar for progurammaar

please check it out [url]www.gojyotish.com[/url] i use a gif background....its not appearing a it should in chrome, just see the difference in appearance in firefox.....

Member Avatar for theimben
0
87
Member Avatar for dmanw100

Hello, I am new to php and enjoy the fact that it is very similar to languages that I'm much stronger with (mainly C++ and Java). While working through the w3 school's tutorials I noticed a foreach() loop. What loop in C++/Java would this be similar to? It seems like …

Member Avatar for Stefano Mtangoo
0
189
Member Avatar for justinmyoung

Hi I must now seek help after too many hours of failure. I'm using a basic form with Ajax (prettyPopin), but the form is not connecting to the database. I'm obviously overlooking something. Here is the basic form: retailer.html [CODE] <h3>Retailer Contact</h3> <form name="ajaxForm" action="ajax/form_submit.php" method="post" class="genericForm"> <label><span>* Full name</span> …

Member Avatar for theighost
0
107
Member Avatar for zerugaze

For instance, I have the following string: table:column I need to get "table" as the result of the php regular expression. So, I need everything before the ":" symbol After that regular expression is performed, I would also like to get everything after the ":" symbol, or "column" as well.

Member Avatar for jedi_ralf
0
144
Member Avatar for theimben

Can anyone see anything wrong with this. Im stuck :( [code=php] $sql1 = mysql_query("DELETE FROM spider WHERE url='$addtolist'"); if (!mysql_query($sql1,$con)) { die('Error Deleting: ' . mysql_error()); } echo "Record Deleted <br />"; $sql2="INSERT INTO list (title, url, description) VALUES ('$title','$url','$description')"; if (!mysql_query($sql2,$con)) { die('Error Adding: ' . mysql_error()); } echo …

Member Avatar for theimben
0
113
Member Avatar for rEhSi_123

Hello Everybody, Wondering if any of the experts could help me out. I am trying to create a forum system for my university website. I have created the tables by using WAMP-phpMyAdmin, where the data from the forum would be inserted. Now, I would like to implement this using PHP. …

Member Avatar for Will Gresham
0
89
Member Avatar for Stefano Mtangoo

Hi All, Please help me to understand it better. I want to have a simple site with Header, navigation bar, side bar and opposite to side bar, main contents. I want to Include files for this sections in index.php. Here is a thing I dont understand: ---- If I divide …

Member Avatar for Stefano Mtangoo
0
112
Member Avatar for Besherek

Hi folks, I've used a while loop to call about 5 category names from a database to make a navigation. I didn't want to hard code the categories because I want to be able to change them using Content Management and have the nav update from the database. [CODE]<a href="category.php?cat=<?php …

Member Avatar for Besherek
0
192
Member Avatar for pecussionist

Hi, I've written a php code where I need to save the data entered in a form to the mysql database. For that I'm using the following [icode]$strSaveTD = "<input type = button id=btnSave value=Save onclick='checkform(" .$iMode. "," .$iLevel. ",1)'>";[/icode] When the user clicks on "Save" in IE it works …

Member Avatar for cwarn23
0
148
Member Avatar for npandu_24
Member Avatar for cwarn23
0
103
Member Avatar for theimben

This query doesn't work. What have I dont wrong? [code=php] mysql_query("INSERT INTO list (title, url, description) VALUES ('$title', '$addtolist', '$description') DELETE FROM spider WHERE url='$addtolist'"); [/code] Heres the whole page if it makes things clearer. [code=php] <?php include('includes/config.php'); $addtolist = $_GET['add']; $open = file_get_contents($addtolist); $title = get_inner_string($open, '<title>', '</title>'); $description …

Member Avatar for theimben
0
95
Member Avatar for PinoyDev

Good day to everyone.! I just want to ask a help if is it possible to fit any size of image in just a 32 x 32 image placeholder. i have already loaded the image from the database by just looking its path.but it it will display on the page …

Member Avatar for PinoyDev
0
93
Member Avatar for rouse

I think I have a PHP configuration problem on my development machine where I am setting up a development environment which interrogates a local MySQL database from Eclipse on a Windows XP platform using an Apache server. I can execute the PHPINFO program so I have a minimal PHP system …

Member Avatar for rouse
0
1K
Member Avatar for whitestream6

I'm slowly getting there with PHP templates! :) Here's my basic PHP page: [code]<TITLE>Star FM</TITLE> <head> <style type="text/css"> CAPTION.MYTABLE { background-color:#8080ff; color:white; border-style:solid; border-width:0px; border-color:black; } TABLE.MYTABLE { font-family:arial; font-size:10pt; background-color:#2554C7; width:780px; border-style:solid; border-color:black; border-width:0px; } TH.MYTABLE { font-size:10pt; color:white; } TR.MYTABLE { } TD.MYTABLE { font-size:10pt; background-color:#2554C7; color:white; border-style:solid; …

Member Avatar for Will Gresham
0
83
Member Avatar for theimben

Ive got a basic moderation script to create but Im stuck as to how to do it because there would be too much data to transfer as post data. So heres the premise [code=php] $result = mysql_query("SELECT * FROM whatstobemoderated"); while($row = mysql_fetch_array($result)) { echo '<input type="checkbox" name="url">' . linkify($row['url']); …

0
61
Member Avatar for hbk_star2006

Hi please help to get rid of this error/warning... Please see the following code carefully.. Look at the errors first ------------------------------------------- Warning: Cannot modify header information - headers already sent by (output started at /home/compkcom/public_html/includes/config.php:1) in /home/compkcom/public_html/cmpanel/check_login.php on line 20 ------------------------------------------- here goes the php script --------------- [code=php]<?php session_start(); ?> …

Member Avatar for mschroeder
0
122
Member Avatar for ahmksssv

Hi frnds... i have been successfully uploaded videos to uploads folder through db... now i need to play that videos ....plz provide code for this one....presently ineed mediaplayer format... i got the video path....after i dont know how do that...is there any script to run videos.... plz help me asap...

Member Avatar for ahmksssv
0
93
Member Avatar for veledrom

Hi, I have WAMP installed on XP. I put everything under wamp/www folder to be run PHP. I want to use D:\ drive as well to run PHP along with wamp/www. Thanks

Member Avatar for veledrom
0
82
Member Avatar for hbk_star2006

hi please help me to rid of these following warnings in following php script Actually this script is running smoothly on my local window server, but on mu linux hosted server following warnings are coming.. Please see please please please help me.. -------------------------------------Warnings------------- Warning: mysql_fetch_array(): supplied argument is not a …

Member Avatar for hbk_star2006
-1
119
Member Avatar for Aamit

hi, i want to create application for like 1> real estate & Property or 2> landlord and property ... there is any opensource code to create a this type of application?? or demo links..

Member Avatar for chrishea
0
107
Member Avatar for gangsta gama

Hey whats up guys? I was using thenewboston tutorials on youtube and I am stuck. I was trying to connect to my database that i made. [code] <?php //opens connection to mysql server $dbc=mysql_connect('localhost','kybo13','****'); if(!$dbc) { die('Not connected: ' . mysql_error()); } //select database $db_selected=mysql_select_db("kybo13_game",$dbc); if(!$db_selsected) { die("Cant connect: " …

Member Avatar for gangsta gama
0
138
Member Avatar for jonojo

I've aquired some webspace and all I want to do is install phpbb but do not have the slightest clue where to start. Even a point in the right direction will help. Any input is very much appreciate. Can you tell me how to install and setup a phpbb forums …

Member Avatar for Andrieux
0
209
Member Avatar for oskido2010

Hi, I am working on a script whereby if you are not my friend where by i need to restrict people who are not my friends to view my profile. for example If I am the logged in user and i am trying to view someone else who is not …

Member Avatar for oskido2010
0
133
Member Avatar for humbug

Here's my predicament. I Have managed to send and retrieve some HTTP requests using the GET method successfully using the following code: [code=php] function send_to_host($host,$method,$path='/',$data='',$useragent=0){ // Supply a default method of GET if the one passed was empty if (empty($method)) { $method = 'GET'; } $method = strtoupper($method); $fp = …

Member Avatar for hielo
0
165
Member Avatar for Roybut

Hi, I'm trying to create a database that stores shoes. Each shoe must have more than one size so I have created a table "mens_boot_test" with a field "size". In the size field I have an integer which holds the delimited values 1,2,3,4,5,6,7,8,9. I'm then trying to retrieve these values …

Member Avatar for Roybut
0
87
Member Avatar for Andrieux

I have IPB 2.3.5. I need to decrypt (or encrypt) the passwords from the database so I can compare them to user input from another page. So, how does anyone happen to know how IPB encrypts their passwords? (Or how to decrypt them?)

Member Avatar for Andrieux
0
645

The End.