Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
10
Posts with Upvotes
9
Upvoting Members
7
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
~61.0K People Reached
Favorite Tags

144 Posted Topics

Member Avatar for metalix

first create the table [CODE] create table images ( image_id serial, filename varchar(255) not null, mime_type varchar(255) not null, file_size int not null, file_data longblob not null, primary key (image_id), index (filename) ); [/CODE] the file to output the images to the browser [B]picsrc.php[/B] [CODE]<?PHP //detect if image is called …

Member Avatar for guruparthi
0
1K
Member Avatar for Richtofen345

Your code looks fine. It appears your php or mysql has not been installed correctly. try using a differen connect function such as mysql_pconnect and re-install your php or mysql. f it is only that file just download that particular file and see if it works better. perhaps try a …

Member Avatar for Deepika_6
0
2K
Member Avatar for $urya

Find the user Happygeek and pm him tutorials and over a few weeks or whatever they may eventually put thm in the tutorials tab :)

Member Avatar for bathina.gunasekhar
0
2K
Member Avatar for LRNPHP

I'll build a code for you can you tell me how you need this to display? I.E: if you want one drop box to change from another (AJAX), or just display one drop box from the database (while query)

Member Avatar for amaz4u
0
2K
Member Avatar for andydeans

I assume your using a wysiwyg editor? So when the user types in <name> it is converted to &lt;name&gt; and your database might have a query like: $row = mysql_query($sql, $conn); which may get the rows $row['name'] and $row['address'] so that means you can use a string replace to insert …

Member Avatar for mrhankey
0
123
Member Avatar for epicrevolt

Hi!, I compiled a list previously on my website of my top 5 recommended hosts Check out http://www.metalix.co.nz/hosting/ What languages do you use? how big are your sites?

Member Avatar for giffy
0
416
Member Avatar for CoolAtt

really try to avoid posting data through the URL. remember guys that this can be bookmarked. and the session id can change each time and this compromises security if an old one and new one get mixed up. and you can use cookies and sessions together. but alot of people …

Member Avatar for diafol
0
256
Member Avatar for michael123

Wow this is an old thread. include/include_once will just insert the code in the script. this will produce a warning if it dies (file does not exist) require/require_once will also insert the code but will result in a fatal error if dies. (script will terminate)

Member Avatar for GuggiTanvi
-2
550
Member Avatar for metalix

Hey guys, I know this will have an easy answer, but I have been awake far too long to see it :P I am doing some coding with classes in python, and it just isn't working. Here is the code: [CODE] from bpy import * from os import * from …

Member Avatar for metalix
0
278
Member Avatar for ptara1

I can't see any errors though you don't appear to have a mysql_select_db() above your query, and in your sql you can use VALUES ('$title', '$price' ...) instead of VALUES ('".$title."', '".$price."', ...) becase it is all wrapped in double quotes. try putting in select db above your queries. are …

Member Avatar for sjsnider
0
1K
Member Avatar for metalix

View the full tutorial at [URL="http://www.effectivewebdesign.co.nz/tutorial.php"]http://www.effectivewebdesign.co.nz/tutorial.php[/URL] I have tested this many times and it works fine. Please don't complain unless you really can't get it working, Just PM me and I'll fill in the blanks Happy Coding :)

Member Avatar for Rogueit
0
881
Member Avatar for metalix

Hey guys!! been a while since I posted here, but thought I'd post this question here cause it is driving me insane!! Basically, if the condition returns true, then that part works. but if it's false, neither part works. If I put the content from the else after the <script> …

Member Avatar for Airshow
0
167
Member Avatar for cliffcc

It depends entirely on how you want to hide it. if people will be viewing your source, Then I use external classes that they cannot access, such as how the php pear system works

Member Avatar for edwinhermann
0
217
Member Avatar for Wesleyy

Google knows all [URL="http://www.keyxl.com/aaacd5a/43/Notepad-Plus-text-editor-software-keyboard-shortcuts.htm"]http://www.keyxl.com/aaacd5a/43/Notepad-Plus-text-editor-software-keyboard-shortcuts.htm[/URL]

Member Avatar for Narue
-2
156
Member Avatar for monta2020

Please show us the script so we can assist (blank any secure info) also is this something better done with javascript?

Member Avatar for tomato.pgn
0
300
Member Avatar for Yemen Coder

They are different databases, if you use mysql you will use mysql_connect. or you can use mysql_pconnect to hold the connection, if you want it more secure throw in an @ symbol @mysql_connect() - this is so it won't display an error

Member Avatar for infinitizon
0
152
Member Avatar for rpv_sen

[CODE] <script type=text/javascript> function multiply(){ a = document.getElementById('prate').value; b = document.getElementById('thisqty').value; c = a*b; alert(c); } </script> [/CODE] Note the .value did this work?

Member Avatar for rpv_sen
0
296
Member Avatar for emily-bcot

The methods are simply functions within your class, so they go within the first-child set of your class for example: [CODE] class myclass{ function __construct(){ } function getUserbyUid($uid{ //code here } ) } [/CODE] hope this helps :)

Member Avatar for minitauros
0
175
Member Avatar for d4n1s

It' seems the php is interpolating the image, is the colour in photoshop #808080? We all can't seem to re-create your problem, but maybe check your php file-system/ini file

Member Avatar for metalix
0
197
Member Avatar for jacob21

To find only the duplicates you should get the entire table, and use the mysql php code to just remove all that don't hit count 2+ (no doubles)

Member Avatar for metalix
0
102
Member Avatar for monta2020

Make sure you set all the width tags to be correct. else you can use styles td { width:300px; }

Member Avatar for metalix
0
137
Member Avatar for xxreenaxx1

You need to upload the file in a long-blob binary form, and use the mime-type when outputting. if i have time tomorrow I'll post some code

Member Avatar for xxreenaxx1
0
184
Member Avatar for youvi

Hi there Firstly I would recommend you seperate the code and species into different fields. otherwise it will take more coding, and take longer to process. However here is some code that should work: [CODE] <?PHP $conn = ''; //connection info $input = $_POST['input']; //the users input @mysql_select_db('database'); $sql_input = …

Member Avatar for metalix
0
137
Member Avatar for Geertc

Try this code I found a while back [CODE]function charset_decode_utf_8($string) { if(@!ereg("[\200-\237]",$string) && @!ereg("[\241-\377]",$string)) { return $string; } $string = preg_replace("/([\340-\357])([\200-\277])([\200-\277])/e","'&#'.((ord('\\1')-224)*4096 + (ord('\\2')-128)*64 + (ord('\\3')-128)).';'",$string); $string = preg_replace("/([\300-\337])([\200-\277])/e","'&#'.((ord('\\1')-192)*64+(ord('\\2')-128)).';'",$string); return $string; } echo charset_decode_utf_8('é');[/CODE]

Member Avatar for Geertc
0
329
Member Avatar for rohit b k
Member Avatar for diafol
0
132
Member Avatar for ahsan1

The error is because when you post data, it is in a single string. the foreach needs an array. perhaps use an explode() on the input

Member Avatar for KamranArshad
0
375
Member Avatar for jack jastin

I think you are refferring to .htaccess? so as when you view the site it is an html, but it still uses server side processing

Member Avatar for metalix
0
109
Member Avatar for nitnayak

Hey there. Firstly. when posting on forums you will usually get better response when you use kind wording. e.g: can any one help me with this code, rather than give me the code. and this is how it's done: [CODE] <script type="text/javascript"> function month(){ var date = document.getElementById('date').value; var curr_month …

Member Avatar for metalix
0
90
Member Avatar for kuteinheart

@ROB65MAC65 just have your submit take you to your form handling script which in turn will use a header re-direct when it has finished. @kuteinheart use ajax for this. there is a tutorial [URL="http://www.effectivewebdesign.co.nz/tutorial.php"]here[/URL]

Member Avatar for jessica007
0
6K
Member Avatar for PinoyDev

you will need to use php, or another scripting language for example [CODE] <div id="private"> <?PHP /* ?> Here is the secret html!! <?PHP */ ?> </div> [/CODE] the /* */ comment tags in php will stop the server outputting the code to the browser if your page is in …

Member Avatar for PinoyDev
0
119
Member Avatar for red_ruewei

Hi there, Do you have experience with AJAX? You can have the select menu refresh from the ajax file. and the ajax file will use a while loop to select all the rows from the database based on the supplied input input might be: "ajax.php?map_from="+map_from+"&map_to="+map_to+"&content_from="+content; where -map_from can be country …

Member Avatar for metalix
0
683
Member Avatar for anirban1087

I think AJAX is your answer. have a file that outputs a table based on the supplied input when the user changes the select menu this file is re-retieved and output in a div below the form, and when form is processed have javascript take the content from the div, …

Member Avatar for michelle2003
0
73
Member Avatar for vizz

is this what you mean? [CODE]<script type="text/javascript"> <!-- var menu = new array(); menu['index'] = 'this is my home page'; menu['about'] = 'this is mypage about me'; --> </script>[/CODE] also please post javascript threads in the javascript section regards alex telford

Member Avatar for vizz
0
159
Member Avatar for arctushar

Is there a particular pattern to the replacement? Usually languages are based on sentence base translation, then word translation, then alphabetic translation, as this is the most reliable way, however you will need an extensive dictionary to cover the entire language, perhaps see if there is a prebuilt translator?

Member Avatar for metalix
0
88
Member Avatar for cjay175

Hi, You should use mysql_fetch_assoc instead of mysql_fetc_array This only returns the results in the row: [CODE] $result = @mysql_query("SELECT url, image, placement FROM advert WHERE user='1' ORDER BY placement"); $i = 0; while($process = @mysql_fetch_assoc($result)){ $row[$i] = $process; $placement = $row[$1]['placement']; $$placement['url'] = $row[$1]['url']; $$placement['image'] = $row[$1]['image']; $i++; } …

Member Avatar for metalix
0
5K
Member Avatar for madihaahmad

Please be more descriptive of your issue, Perhaps AJAX or an iframe? eg: <iframe src="example.com" width="400" height="600" border="0" allowtransparency="true"></iframe>

Member Avatar for metalix
0
133
Member Avatar for okiiya

Ok, I have done this before. You will need a php class that: has a list of websites to search, will search particular pages for the given keywords will "click" the link to the returned content. will search the returned page for the image in question based on approximate size/surrounding …

Member Avatar for metalix
-1
108
Member Avatar for PixelatedKarma

Personnally I built my own CMS using some functionality of [URL="http://www.freecms.com"]freecms.com[/URL] plus heavy mysql editing abilities. as i feel if i can't see what im doing within 30 seconds my clients have not alot of chance. so experience try using an ftp cms as you dont need to install anything …

Member Avatar for cinneran
0
148
Member Avatar for maxbalboa

Usually they are the same. on all my websites sessions will easily transfer from [url]http://example.com[/url] to [url]http://www.example.com[/url] however specifying subdomains [url]http://sub.example.com[/url] won't work. maybe there is a problem setting up the site?

Member Avatar for mayureshgoyal
0
567
Member Avatar for Traicey

a submit button takes the user to a new page, that is what it is supposed to do. you could use some javascript to post the data then open the lightbox. however your best bet is probably to use AJAX

Member Avatar for diafol
0
110
Member Avatar for veledrom

&nbsp; is actually 6 characters not one. use this [CODE] $data = str_replace('&nbsp;', ' ', $data) if(substr($data, 0, 1) == " ") { echo "Yes"; } if(substr($data, 0, 1) == "") { echo "Yes"; } [/CODE]

Member Avatar for thebreadguru
0
227
Member Avatar for jarmerson

I can't see any connect information you will need to connect to your daatbase at the top of the script, then select the database when making the query [CODE] //Connect to database $host="localhost"; // Host name $username=""; // Mysql username $password=""; // Mysql password $db_name=""; // Database name $tbl_name="members"; // …

Member Avatar for jarmerson
0
172
Member Avatar for sami.asanga

You need to add a WHERE statement to your query for example if the cat id is called by example.com?catid=14 [CODE] <?PHP $catid = $_GET['catid']; $catid = mysql_real_escape_string($catid); $sql = "SELECT cat_id FROM tbl_category WHERE cat_id = '$catid'"; //rest of code ?> [/CODE]

Member Avatar for metalix
0
619
Member Avatar for metalix

I know I am probably missing something small but I can't seem to get it running I need to send an html email for newsletters and on registration But it needs to be authorised so it doesn't get marked as spam or filtered. here is what I have so far: …

0
167
Member Avatar for jjemphoung

if you are hosting the page yourself rather than with a company you need to install a mailserver on your machine

Member Avatar for sithembisophp
0
181
Member Avatar for Facte

well just use substr when you output it, $date = substr($input, 10); there will always be the same number of characters in the date, so this is probably the simplest "one liner"

Member Avatar for FlashCreations
0
114
Member Avatar for popinthecan

if its once every 24 hours it is probably done using cookies with a 24 hour timeout. or you can use sessions to do it 15min after they leave. its a little heavy on the database to use mysql i would recommend only using mysql to store the total views

Member Avatar for metalix
0
92
Member Avatar for bibiki

its not a greater or lesser statement. it is supposed to be => (the arrow operator) the problem is the $k and $v read the manual on parse_url [URL="http://nz2.php.net/manual/en/function.parse-url.php"]here[/URL] hopefully that helps :)

Member Avatar for FlashCreations
0
106
Member Avatar for sam023

you might want to use $_SESSION['user1'] and $_SESSION['user2'] or just use on login page [CODE] <?PHP $_SESSION['page'] = "demo1"; ?> [/CODE] on other pages [CODE]<?PHP if (!($_SESSION['user'] && $_SESSION['page'] == 'demo1')){ header("Location: index.php"); ?>[/CODE] or something like that

Member Avatar for ﻼim
0
161
Member Avatar for mith_cool

Excuse the caps this is an old code but should still work fine :) [CODE] <OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH="850" HEIGHT="610" CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"> <PARAM NAME="MOVIE" VALUE="building.swf"> <PARAM NAME="PLAY" VALUE="true"> <PARAM NAME="LOOP" VALUE="true"> <PARAM NAME="QUALITY" VALUE="high"> <PARAM NAME="SCALE" value="noborder"> <EMBED SRC="building.swf" WIDTH="850" HEIGHT="610" PLAY="true" LOOP="true" QUALITY="high" scale="noborder" PLUGINSPAGE="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"> </EMBED> </OBJECT> [/CODE]

Member Avatar for mith_cool
0
107

The End.