saravana pandian's Profile
Reputation: 0
Apprentice
- Group:
- New Members
- Active Posts:
- 3 (0.01 per day)
- Joined:
- 04-July 12
- Profile Views:
- 346
- Last Active:
Jul 04 2012 06:12 AM- Currently:
- Offline
Previous Fields
- Country:
- IN
- OS Preference:
- Windows
- Favorite Browser:
- FireFox
- Favorite Processor:
- Who Cares
- Favorite Gaming Platform:
- PC
- Your Car:
- Who Cares
- Dream Kudos:
- 0
Posts I've Made
-
In Topic: About Myself
Posted 4 Jul 2012
hello friends. i m saravanan. now i am doing computer science in an institution. and i am learning php. so please help me to learn well. thanks.., -
In Topic: Color change to php commands
Posted 4 Jul 2012
demoloution, on 03 July 2012 - 10:50 AM, said:also in my website i want to allow user to see some of my images
i use this code:
<?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("photoshare", $con); $Title = $_POST['Title']; $Creator = $_POST['Creator']; $result = mysql_query("SELECT Title, Creator FROM images WHERE Title = '$Title' OR Title LIKE '%$Title%' OR Creator = '$Creator' OR Creator LIKE '%$Creator'"); // escape from PHP ... ?> <img src="<? echo $result; ?>"> <? // starting up PHP again... //some code mysql_close($con); ?>
but it doeasnt display me any image.It displays me the icon you have when the image dont load correctly or is broken.
Also i noticed that in my database, the images array doesnt have any elements in it.is this wrong?
My upload code works fine i think.
Any suggestions?
I THINK, THE VARIABLE NAME AND FIELD NAME OF YOUR DATABASE SHOULD NOT BE THE SAME. JUST TRY TO CHANGE THEIR NAME PLEASE. FOR EXAMPLE REPLACE $CREATOR BY $CREATORS AND ALSO $TITLE BY $TITLES.
My Information
- Member Title:
- New D.I.C Head
- Age:
- Age Unknown
- Birthday:
- Birthday Unknown
- Gender:
-
- Location:
- chennai
- Interests:
- playing and watching cricket, fodball.
- Full Name:
- saaravana pandian
- Years Programming:
- 0
- Programming Languages:
- c, c++, java, html, php, javascript
Contact Information
- E-mail:
- Private
- AIM:
-
developer
- Yahoo:
-
saravanasiva72@yahoo.com
- Facebook:
- saravanapandi357@gmail.com
Friends
|
|


Find Topics
Find Posts
View Reputation Given

|
Comments
saravana pandian has no profile comments yet. Why not say hello?