345 Posted Topics

Member Avatar for reececropley

Ask the person who design your database...he's the only one who can answer you why he saves record about info of your images on your database and uploaded images but doesn't link them. I think the images field should contain the source/path of the images for you to to be …

Member Avatar for nav33n
0
239
Member Avatar for mrnutty
Member Avatar for cableguy31
Member Avatar for vaultdweller123
0
111
Member Avatar for Erick

all you need is this query... [CODE]<?php $sql = mysql_query( "UPDATE price SET prod_price = (prod_price * .10)" ); ?>[/CODE]

Member Avatar for almostbob
0
212
Member Avatar for takeshi

ok but ill use a simple example for this one... 1st u need 2 files and a database lets assume you got these tables, and ill make this simple but you can add more fields... candidate can_id = int, primary, autoincrement name = varchar votes = int category = varchar …

Member Avatar for FlashCreations
0
163
Member Avatar for dskumar_85
Member Avatar for muralibobby2015

u need to files for these 1.) newwindow.php 2.) newwindow2.php 1.) newwindow.php [CODE]<a href="#" onclick="window.open('newwindow2.php','_blank','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width=400, height=200');">click me</a>[/CODE] 2.)newwindow2.php [CODE]<img src='images/sulik.jpg'><br /> description: We and i know so many Things.... travel from great saltwater to home of biting lizard[/CODE] i know how to …

Member Avatar for almostbob
-1
111
Member Avatar for sjeggels

you need to join two tables together assuming you had these 2 table ill make this example simple /* tables */ price price_id - int(autoincrement) prod_price - double acc_establishments prod_id - int(autoincrement) prod_name - varchar price_id - int /* query */ select ae.prod_name, p.prod_price from acc_establishments as ae join price …

Member Avatar for vaultdweller123
0
347
Member Avatar for bhanu1225

it's very useful dude... joins are used when combing two tables. learn it here [url]http://w3schools.com/sql/sql_join.asp[/url]

Member Avatar for diafol
0
110
Member Avatar for gunnarflax

i recommend you use database to store information of your files... it's a more professional approach.

Member Avatar for vaultdweller123
0
101
Member Avatar for cane23

well i haven't really tried using mysql_fetch_assoc(), coz. i prefer mysql_fetch_array(). but from what i know about mysql_fetch_assoc() it returns associative arrays of your recordset. So your array index and values are dependent on your recordset. try print_r() to see the array values.

Member Avatar for vaultdweller123
0
121
Member Avatar for veledrom

you can use the javascript window.location instead... <?php echo "<script>window.location='yourpagehere.php'</script>"; ?>

Member Avatar for veledrom
0
108
Member Avatar for veledrom
Member Avatar for veledrom
0
897
Member Avatar for techhelpforme

you can't run php code inside a .html files.... your files should be saved as .php so it will be parsed at the server.

Member Avatar for diafol
0
3K
Member Avatar for Flufferman
Member Avatar for theighost

yeah ive used unlink() too, to delete files... there's no problem... the only error it will generate is when assigning incorrect path. The file you wish to delete does not exist.

Member Avatar for vaultdweller123
0
183
Member Avatar for sfrider0

i recommend you use .png.... about the banner will it's not really hard... because you use database...all you do is some mysql query and PHP predefined function rand(); here ill show you the code lets assume you had these table banner banner_id - int (primary)(autoincrement) src = varchar [CODE]<?php mysql_connect('localhost','root',''); …

Member Avatar for vaultdweller123
0
165
Member Avatar for ppetree

can u provide the code? so that we can trace it.... bec. u fail to show it to us... i suspect that 2 possible reason. 1) maybe you put that code outside your html form. 2.) maybe the form method you use is 'get' and not 'post'. coz. your retrieving …

Member Avatar for vaultdweller123
0
101
Member Avatar for vaultdweller123

ok it's my time to ask.... who knows framework of CRM and PMS? which it could help me lessen my job on developing them in hardcode.

0
97
Member Avatar for bjc999

its very easy here ill give u an example 1.) if your using html form then all you have to do is specify the url of other page you wish to link. All data will be sent automatically in the receiving end as query string and your url may look …

Member Avatar for vaultdweller123
0
218
Member Avatar for D4m3s1 Xvoc@no

you create it? then how come your asking us? you should be able to know the problem if your the real creator... or maybe you just got that code from another source and copy and paste it? am i right?

Member Avatar for D4m3s1 Xvoc@no
0
63
Member Avatar for veledrom

its normal to hyperlink to show the physical path... ur the only person babbling about it... well if u really think that's a security breach... then you can encrypt your hyperlinks and decrypt the link to its original in the receiving end. i mean link page that will decrypt the …

Member Avatar for almostbob
0
80
Member Avatar for borntowin_786

hehe nice one... you want us to debug every single line of your code then get the answer with no sweat. I think there's no one here that would eagerly read every line of code you got there... take note your code is so long... gives me headache... the only …

Member Avatar for vaultdweller123
0
155
Member Avatar for jj.amonit

you dont have a choice... your client wants to select it rather than entered them wich is much faster... you have to use series of html form select... it would be a lot easier if it would be inputed in a textfield like this [CODE]<?php if(isset($_GET['btnsubmit'])){ $number = $_GET['number']; if(is_numeric($number)){ …

Member Avatar for jj.amonit
0
149
Member Avatar for directweb

coz. you directly use $azz variable without first defining it... define it like this $azz = $_GET['azz']; just put that above your code, befor you output $azz.

Member Avatar for directweb
0
88
Member Avatar for bjc999

waaaa! why would u want that ? i dont understand why u want to include a file in a URL?

Member Avatar for vaultdweller123
0
106
Member Avatar for poojashah
Member Avatar for mmxbass
Member Avatar for mmxbass
0
369
Member Avatar for Blacklister
Member Avatar for balam
Member Avatar for qhuemone

try this. [CODE]<?php $con = mysql_connect("localhost","peter","abc123"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("my_db", $con); mysql_query("UPDATE Persons SET Age = '36' WHERE FirstName = 'Peter' AND LastName = 'Griffin'"); mysql_close($con); ?> [/CODE]

Member Avatar for network18
0
71
Member Avatar for vizz

1st you have to study how to upload. then DBMS add a field in your current database that will hold the source file of the image. and then query the field and view it via <img src=''> tag

Member Avatar for moerpheus
0
115
Member Avatar for dmotah
Member Avatar for dinoservers.com

just changed double quotes(") VALUES("hi","$username","$password","beta") to single qoute(').

Member Avatar for vaultdweller123
0
113
Member Avatar for qhuemone

your problem is "its just its blank, there's no forms of submit button". u mean u only see a blank page, no form and submit button? If my understanding is right? then this is really a comedy.... the answer is quite obvious... i dont see any code of your html …

Member Avatar for vaultdweller123
0
127
Member Avatar for sarithak

u forget to show the code... well based in your problem i think its because you didn't escaped the singe quotes (') in the sentece. coz. single qoutes has meaning in PHP so they should be escaped. i think this may be your code [CODE]<?php echo "10 Facts about World's …

Member Avatar for ShawnCplus
0
114
Member Avatar for poojashah

yeah i agree with network18, check for the values of $a and $b... the fact that it work fine in phpmyadmin means your query is fine and should satisfy the query statement... if you had the correct values of $a and $b the query will return true.

Member Avatar for vaultdweller123
0
81
Member Avatar for sheru2302

i dont know if i understand you right... but this is what i understand from your problem... and i come up with this code. [CODE]<?php mysql_connect('localhost','root',''); /* i use the default */ mysql_select_db('yourdatabase'); /* your database */ $sql = mysql_query( "SELECT new_user FROM yourtable WHERE userid='1'" ); /* for this …

Member Avatar for vaultdweller123
0
121
Member Avatar for druveen

here is my algorithm to your problem, just changed the values. [CODE]<?php if(isset($_POST['btnsubmit'])){ $chk = $_POST['chk']; foreach($chk as $val){ echo $val."<br />"; } } ?> <form method='post'> <?php while($row=mysql_fetch_array($sql)){ echo "<input type='checkbox' name='chk[]' value='".$row['fields']."' /> ".$row['fields']."<br />"; ?> <input type='submit' name='btnsubmit' value='submit' /> </form> [/CODE]

Member Avatar for vaultdweller123
0
774
Member Avatar for annaawills
Member Avatar for vaultdweller123

ei could someone help me with my problem. I got error running my projects on localhost. I dont know what caused this, but this problem occured when i replace my wampserver2.0c to the latest version wampserver2.0i. before there is no error it works fine. but now when i logged in …

Member Avatar for vaultdweller123
0
88
Member Avatar for vaultdweller123

i had problem running my projects on localhost. why does i cant access some of the page? there will be an error that says apache has encountered some serious error and need to be closed. this problem started after i replaced wampserver2.0c to the latest wampserver2.0i. Is there a problem …

Member Avatar for vaultdweller123
0
74
Member Avatar for vaultdweller123

hello guys im a php programmer and im new to homebased programming jobs. I just want to have an idea on how homebased programming job works? how do i find some clients? how to transfer files? how to receive my payments? And they say you are paid per hour? but …

Member Avatar for vaultdweller123
0
157
Member Avatar for vaultdweller123

Hi everyone....I have a problem on my php date function... and i hope someone will help.... the PHP date function outputs incorrect results... It outputted incorrect date which is 8 hours late.... and i found out that the timezone has been set to UTC. So ive search the net and …

Member Avatar for tarunkhatri
-2
135
Member Avatar for phpnovice
Member Avatar for vaultdweller123
0
2K

The End.