39,326 Topics

Member Avatar for
Member Avatar for hwoarang69

so i have two tables: image->image_id, user_id, image, etc i want to delete one row from image table where user_id = user_id_s and image_id = image_id_g $del_image = mysql_query("DELETE FROM image WHERE image_id = '$image_id_g'AND user_id='$user_id_s'"); the image_id=image_id_g AND user_id = user_id_s not working.

Member Avatar for Szabi Zsoldos
0
78
Member Avatar for devianleong

Hi, currently I want to make a date report generator but I don't know how to make it work. Anyone can share me a date picker that able to search the data in mysql? All the sales records are using CURDATE to save the sales records date. Please help me …

Member Avatar for JorgeM
0
55
Member Avatar for diafol

Hi all. Am having a senior moment here. I have a htaccess file thus: Options +FollowSymlinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^/]*)/*([^/]*)/*([^/]*)/*([^/]*)/*([^/]*)/*$ index.php?lang=$1&top=$2&middle=$3&bottom=$4&sub=$5 [L] Which basically allows me to show http://www.mysite.com/cy/tgau/cemeg-1/ for http://www.mysite.com?lang=cy&top=tgau&middle=cemeg-1 That's all well and good. However, I'm getting real problems directing my forms to /includes/login.php This …

Member Avatar for cereal
0
230
Member Avatar for verbob

I am trying to store the contents of checkboxes in a field in a mysql database and retireve them later... [code=html ] <input type="checkbox" name="days[]" class="other" value="Monday" /> <label class="left">Monday</label> <br /> <input type="checkbox" name="days[]" class="other" value="Tuesday" /> <label class="left">Tuesday</label> <br /> <input type="checkbox" name="days[]" class="other" value="Wednesday" /> <label class="left">Wednesday</label> …

Member Avatar for jckb188
0
460
Member Avatar for <M/>

**PLEASE HELP!!!** I have a 2 dim array (5x5) - I want to sort random integers that are contained within the array (from smallest to largest).... When I use asort() function I get the orginal table back... Also, the bubble sort didn't work... it only sorts the rows indpendently.... Reference:/// …

Member Avatar for <M/>
0
202
Member Avatar for techite

I need to fetch content from a file that is located at a URL say "http://example.com/sample.html?user=." This file will contain data in the following format:- Item =Name|Unit=1 QTY|Market=INDORE|Price=5000|UpdatedDateTime=Jun 27 2012 8:149PM After this line a <br> tag is used. How do I store the content into database. What I actually …

Member Avatar for diafol
0
153
Member Avatar for arctushar

Hi I have created a php script for writing text in a image. Its working fine. But when I include a file it doesnot generate the image. what is the problem? my code is as bello <?php header ("Content-type: image/jpeg"); $im = imagecreatefromjpeg("photo.jpg"); $backgroundColor = imagecolorallocate ($im, 255, 255, 255); …

Member Avatar for arctushar
0
194
Member Avatar for veledrom

Hi, Let's say I have a textarea to collect user inputs. Someone turns up and writes a html code (eg. a table of something, or a img tag with src to naked image, a div with 10000px width and height ....) instead of plain text into it. It wouldn't be …

Member Avatar for veledrom
0
138
Member Avatar for riseguim

Hi there, How can I ignore case sensitivity when people type in letters and get redirected through this script: <?php if($_GET['username'] == "BBY"){ header("Location: http://www.x.ca"); } elseif($_GET['username'] == "RS"){ header("Location: http://www.x2.ca"); } elseif($_GET['username'] == "WM"){ header("Location: http://www.x3"); } elseif($_GET['username'] == "RP"){ header("Location: http://www.x4.ca"); } elseif($_GET['username'] == "SM"){ header("Location: http://www.x5.ca"); } …

Member Avatar for riseguim
0
131
Member Avatar for mhaselip

Hi. i was wondering if somebody could help me. Im looking for a php function to check a get and post methods for any type of hack or injection i.e. xss php java html mysql injection. the function needs to check the get or post methods prior to using it …

Member Avatar for dany12
0
197
Member Avatar for nyler01

Hi there, I am totally new in javascript and i need a help because i dont know how to create script that confirm the user's choice and submit it to the parent page before the parent page make a process. like this. i have a page that shows the details …

Member Avatar for daydah
0
179
Member Avatar for PF2G

hi all i'm wroking on a music website. and now i'm doing a sort of contact form, where people can send the name of a band, the description of the band and the image wich can be from the user's computer or from the internet (inserting th image url). Can …

Member Avatar for PF2G
0
81
Member Avatar for kimmi_baby

Hi, I'm trying to link a thumbnail to the link I assign it to in wordpress when I first uploaded the image. I know it's originally set to the image itself but I would like to change this. At the moment the thumbnail doesn't link anywhere. The code I have …

Member Avatar for simplypixie
0
127
Member Avatar for mano7859

Hi, I got a problem with class. I've created 3 classes: * identifiantsClass.php * connectInfosClass.php * sqlClass.php In my third class, i always have the message: "error to connect" even if my database's name is good. Please help me... * identifiantsClass.php class Identifiants{ protected $serveur=null; protected $host=null; protected $mdp=null; protected …

Member Avatar for veedeoo
0
135
Member Avatar for blaaam

Hello! I have few problems. I hope you will understand me and can help me :) 1st - I have large input form, so if i press sumbit button then it makes large query thats slows down my page and database is overload, in form is somewhere about 180 colums. …

Member Avatar for blaaam
0
361
Member Avatar for hemal3355

Hi guys, I'm doing a leave management system using PHP. in there a function called leave request,when the employee request a leave, system should be sent a notification to his/her reporting manager reminding he has to approve a leave request and also when the reporting manager accept/reject leave request it …

Member Avatar for diafol
0
68
Member Avatar for richlacey

Hi there guys, not sure if anyone can help me here. I am creating a basic members site with small gallery and I wish to lockdown the URL somehow. e.g. http://domainname.com/memberFiles/8/gallery/gallery_config.php At the moment all of the other pages are locked down via a session id variable, but I need …

Member Avatar for richlacey
0
204
Member Avatar for Aiedail

My code does not work in certain versions of IE and I want to include a conditional comment that includes a different navigation file so that links to pure html5 content wont be there. is there a way to remove the include of the menu.php and then i can just …

Member Avatar for Aiedail
0
247
Member Avatar for erik216

My original path in php code is redirect('abc.php?satisfaction=5&surname=trfhtrd&given_name=tryhtr'); It can show normally in url bar on firefox and chrome. I cam get all information But on IE url bar It shows abc.php?satisfaction=5®_surname=trfhtrd®_given_name=tryhtr So I cannot get information Why? What happen I facing?

Member Avatar for cereal
0
66
Member Avatar for pinky khan

I am trying to modifying a website made in html to php.All php pages are working fine individualyy but not loading in frames.PLz help.....

Member Avatar for pinky khan
0
1K
Member Avatar for dany12

I have wrote this class in php from scratch there is no copy paste or anything like that I tried to create a base class for my projects and know I don't know if this is good Here is my code and I don't know how to use it I …

Member Avatar for dany12
0
370
Member Avatar for sigit_p

Hi all,.. Need help for my script, i want to make update form for my database so i make script as follows update.php <form id="form1" name="Update" method="post" action="add.php"> <table border="0" cellspacing="10"> <tr> <td>Asm Manual Id:</td> <td><input type="text" name="id"></td> </tr> <tr> <td>Asm Manual name:</td> <td><input type="text" name="sheetname"></td> </tr> <tr> <td>Image URL(Link):</td> …

Member Avatar for sigit_p
0
281
Member Avatar for ebanbury

Hi I have the following prepared statement for an UPDATE query: However I'm getting the following error message: Fatal error: Call to a member function bind_param() on a non-object in /home/dreamsin/public_html/DEV/edit_condo_review.php on line 467 All my columns are correct and match up and exist and I've used this prepared statement …

Member Avatar for ebanbury
0
234
Member Avatar for mcwebalizer

I make newsletter with my own developed newsletter sending system. Testing in gmail, yahoo, hotmail some images doesn`t display due of img src rewrite of gmail, yahoo or hotmail. It looks like that there are spaces inserted in img src address because viewing image source there are "+" (plus) sign. …

Member Avatar for cereal
0
197
Member Avatar for sasankasekhar

Dear friends, This is my table: CREATE TABLE IF NOT EXISTS `exam_student` ( `exam_roll_no` int(10) unsigned NOT NULL AUTO_INCREMENT, `enrol_id` int(10) unsigned NOT NULL, `exam_id` int(10) unsigned NOT NULL, PRIMARY KEY (`enrol_id`,`exam_id`), KEY `exam_roll_no` (`exam_roll_no`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ; I am trying to get the field **exam_roll_no reset …

Member Avatar for pritaeas
0
109
Member Avatar for sumain

Hi all, i have 2 shared host server(www.nextsoftech.com(ip:64.202.123.78) and www.simpletelecomltd.co.uk (ip:208.91.198.107)). i want to access nextsoftech.com 's database from simpletelecomltd.co.uk 's script. that's means i stor all script simpletelecomltd.co.uk this server. Would any one help me how can configure and what is the connect code in php? thanks you sumain

Member Avatar for pritaeas
0
146
Member Avatar for RazorRamon

I need some help. I'm loading a .php file using jquery. the php is a mysql query that pulls all the cities from Alaska. The problem is that I wrote my query a certain way and it seems jquery changes it when it loads it. state_alaska.php include 'config.php'; include 'opendb.php'; …

Member Avatar for pritaeas
0
233
Member Avatar for jonnny_brown

Hi guys sorry to bother you i just wanted to ask a quick question using dreamweaver along with PHP in dreamweaver i have managed to populate a list menu with data from a database. i wanted to know if it is posible to display text from another field within that …

Member Avatar for diafol
0
197
Member Avatar for <M/>

How do I sort this loop? I can't sort it because I just began learning PHP, so I don't know as much as most of you users... Can anyone help me? <?php $red = array(); $x=0; $min=500; $max=2000; echo "<table border=\"1\">"; for($row=1;$row<=20; $row++){ echo "<tr>\n"; //Need table ONE to have …

Member Avatar for somedude3488
0
221
Member Avatar for codeblock

Hi all, I'd like to know if it is possible to create a php script that would take the names of image files with its extension of say 10,000 images from out of a folder and place them into a database table in separate rows to use as sample data? …

Member Avatar for codeblock
0
95

The End.