84 Discussion / Question Topics

Remove Filter
Member Avatar for kevin wood

why i am i getting this synyax error when trying to display data from the database the code for saving the data is [CODE]// save content to db if(isset($_POST["inpContent"])) { $sContent=stripslashes($_POST['inpContent']); // remove slashes (/) $sContent=ereg_replace("'","''",$sContent); // fix SQL $sql="UPDATE cms_core SET editorial='$sContent' WHERE id=$id"; $query = mysql_query($sql); }[/CODE] and …

Member Avatar for Vince_Cannon
0
662
Member Avatar for kevin wood

i have been asked to fix a problem on a content management system website. when the user edits the text and then clicks on the save button it is not updating the text on the pages selected. the code that is being used is [ICODE]oEdit1.btnSave= true; // Enable save button …

Member Avatar for Mr.Bit
0
2K
Member Avatar for kevin wood

is it possible to change the max file upload and the memory limit allowed for file uploads in php with a .htaccess file. the server my website is held on will not give me access to the php.ini file and is running php 4.4.9

Member Avatar for BzzBee
0
116
Member Avatar for kevin wood

this code was working fine until i changed the way the site loads the content (it now loads the content into a div tag) and since then it will not populate the menu. the page can be viewed at [URL="http://acmeart.co.uk/pip_new"]this site[/URL] you will need to go to the sub links …

Member Avatar for kevin wood
0
134
Member Avatar for kevin wood

i have these two pages of information which are stored on a php page which then feeds the main div tag on the index page. the problem i have here is that a scrollbar shows up on the first page but not the second. so to see the rest of …

Member Avatar for nav33n
0
149
Member Avatar for kevin wood

i have built a page which loads content into a div tag from a php page using javascript. the problem i am having is that the title for eachg page is not inside the div so i keep being left with the same title on each page. i have tried …

Member Avatar for kevin wood
0
156
Member Avatar for kevin wood

i am trying to get this code to work but there is something wrong with the array (not to good at these). the main part of the code works it is sending out the email but only ever to one registered user. here is the code i have so far. …

Member Avatar for nav33n
0
1K
Member Avatar for kevin wood

i am trying to write a script that will send out an email to all the email addresses stored in a mysql db when the site has been updated. the code i have so far is as follows [CODE]$sql= "INSERT INTO $table (date, title, article) VALUES ('$a', '$b', '$c')"; if …

Member Avatar for kevin wood
0
188
Member Avatar for kevin wood

i have this line of code which i cannot see a problem with but i keep getting an error. [CODE]$sql= "INSERT INTO emails (Firstname, Lastname, email, table) VALUES ('$a', '$b', '$c', '$table')";[/CODE] the error i keep getting is [CODE]Error: You have an error in your SQL syntax near 'table) VALUES …

Member Avatar for nav33n
0
106
Member Avatar for kevin wood

not sure if this is the correct place to post but here we go anyway. what i am trying to do is put a table inside a div tag held within a php page but it is not working. here is the code [CODE]print "<h4>There are $num_rows records.<P></h4>"; print "<div …

Member Avatar for kevin wood
0
289
Member Avatar for kevin wood

hope someone can help me with this. i am trying to update records in a mysql db with a new image but i keep gettin errors. i am using a hidden form input to post a variable across to a new page, i can echo the variable out at the …

Member Avatar for kevin wood
0
103
Member Avatar for kevin wood

i have set up a mysql db for storing news articles to be displayed within a flash website. i have now been asked if i could add an image upload function to this section. i have created the upload page and i can upload the images to the db fine. …

Member Avatar for terrymodular
0
1K
Member Avatar for kevin wood

i am trying to set session variable using a form but i ahve never done this before and i am unsure of how this is done. i have had a look at a few examples on line but still i am not clear on how this works. here is what …

Member Avatar for kevin wood
0
80
Member Avatar for kevin wood

i am trying to submit three forms with the one button using javascript. here is my code [CODE]<script type="text/JavaScript"> function submitForms(){ document.dropdown.submit(); document.radio.submit(); document.form.submit(); } function textLimit(field, maxlen) { if (field.value.length > maxlen + 1) alert('your input has been truncated!'); if (field.value.length > maxlen) field.value = field.value.substring(0, maxlen); } </script> …

Member Avatar for kevin wood
0
115
Member Avatar for kevin wood

hello i have a simple logo on a splash page which i want to align to the centre of the page. when i have it dreamweaver 8 it is aligned to the centre of the page but when it is viewed on the browser it goes to the top. i …

Member Avatar for MidiMagic
0
96
Member Avatar for kevin wood

as iframes are now depreciated as of xhtml 1.0 Strict is there away to replace these using Ajax. this is something i have heard off but have never come across and would like to know if this is possible. I have used iframes in the past to display content from …

Member Avatar for fsav
0
150
Member Avatar for kevin wood

is it possible tpo have a movie clip use the gotoAndPlay function without converting it to a button.

Member Avatar for kevin wood
0
78
Member Avatar for kevin wood

how can i get a rollover to target another movie. i have set up some text to use as a link inside a flash website i am building but i have a small box next to it which i want to animated when the mouse rollover the text. i have …

Member Avatar for kevin wood
0
126
Member Avatar for kevin wood

is it possible to get flash to play x amount of frames before completing the gotoAndPlay from a button click.

Member Avatar for kevin wood
0
96
Member Avatar for kevin wood

is there a need to run a anti virus scanner on a mac running os 9.1 if there is is there any good free anti virus scanners out there available.

Member Avatar for gdrori
0
135
Member Avatar for kevin wood
Member Avatar for jholland1964
0
63
Member Avatar for kevin wood

my comp has just started to randomly restart on me. it started over the weekend whn my manager was on the comp and tried to access another computer on the network (the comp was a mac running os 9) and it restarted. it has now just done it to when …

Member Avatar for jholland1964
0
327
Member Avatar for kevin wood

is it possible to have a virus on a network. every time i try to connect to a mac computer over the network from my pc my computer restarts? anyone know what could be causing this. i have followed all the instructions from the sticky posts above and i am …

Member Avatar for crunchie
0
80
Member Avatar for kevin wood

i want to make a flash image viewer that is always scrolling horizontally across the screen. when the user move the mouse over it stops playing and when the image is clicked the image increases in size. i have found numerous examples of image viewers but not what i want. …

Member Avatar for aylen
0
104
Member Avatar for kevin wood

i have just had to go into the backend of an old site to fix the mysql db as some had deleted the wrong db. i have got most of it working again now but did not know what this line of code is doing. [CODE]$sql = "SELECT id,thumb,image,designer,title,(total/freq) AS …

Member Avatar for kevin wood
0
87
Member Avatar for kevin wood

have had to move some file across from one server to another and i am now getting access denied for user. it also says it could not connect to the server. i have changed the site path so it is now the address where the files have benn moved across …

Member Avatar for chaosprime
0
154
Member Avatar for kevin wood

my comp was very badly infected a couple of weeks ago i am now just checking to see if i am still all in the clear and my comp is infection free. here is a copy of my hijack This log Logfile of Trend Micro HijackThis v2.0.2 Scan saved at …

Member Avatar for crunchie
0
91
Member Avatar for kevin wood

i am trying to set up this db and i am getting a parse error which it says it is on line 24 i cannot see the error. help need [CODE]$sql="CREATE TABLE IF NOT EXISTS `merc_users` ( `****` int not null, `******` varchar (250) not null, `*****` varchar(250) not null, …

Member Avatar for nav33n
0
232
Member Avatar for kevin wood

is it possible to get this function in flash to load a page without using a on release function. I want to make the flash file i have created to load a html page once the end of the timeline is reached. if i use it wil out the on …

Member Avatar for kevin wood
0
71
Member Avatar for kevin wood

i have an image of a teady bear and i wanted to know if i could set up some random animation on this image. What i want the image to do is move its are or blink an eye, only slight movements but for then to occur randomly. i know …

Member Avatar for kevin wood
0
66
Member Avatar for kevin wood

the other threads are not displaying properly on my comp i am getting a white space where the replies and post are meant to be. here is the combo fix log without the snap shot section ComboFix 08-06-20.4 - Admin 2008-06-27 10:44:55.3 - NTFSx86 Microsoft Windows XP Professional 5.1.2600.2.1252.1.1033.18.431 [GMT …

Member Avatar for crunchie
0
139
Member Avatar for kevin wood

ComboFix 08-06-20.4 - Admin 2008-06-27 10:44:55.3 - NTFSx86 Microsoft Windows XP Professional 5.1.2600.2.1252.1.1033.18.431 [GMT 1:00] Running from: C:\Documents and Settings\Admin\Desktop\ComboFix.exe [color=red][b]WARNING -THIS MACHINE DOES NOT HAVE THE RECOVERY CONSOLE INSTALLED !![/b][/color] . ((((((((((((((((((((((((((((((((((((((( Other Deletions ))))))))))))))))))))))))))))))))))))))))))))))))) . C:\WINDOWS\BMbf924418.xml C:\WINDOWS\pskt.ini . ((((((((((((((((((((((((( Files Created from 2008-05-27 to 2008-06-27 ))))))))))))))))))))))))))))))) . 2008-06-27 …

Member Avatar for kevin wood
0
84
Member Avatar for kevin wood
Member Avatar for kevin wood

anyone know where to get the code for a flash rollover for an image to display. i have been looking around the web to find a site which has a good tutorial to show how to get the effect when a user rolls over a link or image on a …

Member Avatar for CoffeeChef
0
143
Member Avatar for kevin wood

i have found this code and would like to know how i can get the column titles to show up at the top of the page. [CODE]$result = mysql_query( "SELECT * FROM merc_users" ) or die("SELECT Error: ".mysql_error()); $num_rows = mysql_num_rows($result); print "There are $num_rows records.<P>"; print "<table width=1000 height=400 …

Member Avatar for kevin wood
0
103
Member Avatar for kevin wood

i am trying to resize a button using the following code and it has had no effect on the button it has remained the same size. [CODE]<button style="width:126" style="height:29" onclick="history.go(0)" ><img src="admin/images/reset_btn.gif" /></button>[/CODE]

Member Avatar for Thirusha
0
72
Member Avatar for kevin wood

i have set up a page with some button on which load different pages up. the buttons are held within a form and the target is set to blank. this part is fine for the first set of buttons but i need one of them to reload the page but …

Member Avatar for Thirusha
0
93
Member Avatar for kevin wood

[CODE]$time_diff = time() - $sent; $time_diff = intval($time_diff / 60); if($sent_mail < 30) { // in here is a page built will php which contains its own if statements }elseif ($time_dif >= 1) { mysql_query("Truncate table time"); mysql_query("Truncate table email_count"); echo '<META HTTP-EQUIV="Refresh" Content="0; URL=maillists.php">'; //should load page user wanted …

Member Avatar for kevin wood
0
61
Member Avatar for kevin wood

is it possible to add a number to a number that is stored in mysql db without extracting the stored number first. i have a count and i am updating the count periodically but i would like to know if i can update the count while it is in side …

Member Avatar for nav33n
0
80
Member Avatar for kevin wood

after i have run my query on a mysql db how can i set the result to equal a variable that i will use later on in the page. i have set the query up like this [CODE] <?php $rand = rand (0, 100); $query = "SELECT broad1 FROM images_broad"; …

Member Avatar for kevin wood
0
139
Member Avatar for kevin wood

i have created a table to store the number of a count which i need for some subtraction at a later date. when i try to get the information out of the table instead of getting the number 5 i am getting resource id # 5. the table has been …

Member Avatar for kevin wood
0
72
Member Avatar for kevin wood

is this possible to do? [CODE]if ($sent_mail <= 200 ($limit)) { // construct mailing list array $merc_list = explode(",",$merc_mailingList); // deploy the emails for($i=0; $i<count($merc_list); $i++){ // email body inside here } // END for $sent_mail = $sent_mail + $i; } // END if condition else{ include("limit.php"); } [/CODE]

Member Avatar for kevin wood
0
647
Member Avatar for kevin wood

i need to write a piece of code so that when the counter reaches 500 hundred the user is directed to a limit hit page. or if it is under 500 hundred it directs the user to the page they wanted to go to. i have used if statement to …

Member Avatar for buddylee17
0
98
Member Avatar for kevin wood

i have created a web page which uses iframes to display data and display the titles on my website. the problem that i am having is that in ie6 is is displaying borders and the titles are being displayed properly. if i want the titles displayed properly then i need …

Member Avatar for MidiMagic
0
73
Member Avatar for kevin wood

is it possible to only truncate one row from a table or can this only be done with the whole table.

Member Avatar for nav33n
0
60
Member Avatar for kevin wood

i have created this piece of code to retrieve the path to a file from a mysql db, the file exists and can be displayed directly from the sql query. the code looks like this [CODE]$query = "SELECT broad1 FROM images_broad"; $result=mysql_query($query); while($row=mysql_fetch_array($result)){ $image_path="{$row['broad1']}"; }[/CODE] i now want to display …

Member Avatar for kevin wood
0
147
Member Avatar for kevin wood

i have store an image on the server from a file upload with a random number attached to it. i have then stored the random number in a mysql db for use on other pages to display the images. the problem i am having is that the image will not …

Member Avatar for kevin wood
0
75
Member Avatar for kevin wood

i have created a page which has an iframe held on it i now what to post the data from this iframe and make it available to my other php page. I have researched this a bit and found out it can be done using javascript. the code i have …

Member Avatar for kevin wood
0
103
Member Avatar for kevin wood

i am using php to upload images onto the server and then they are being displayed on other pages around the site. the problem i am having is if the user changes the images that they have uploaded the old ones are displaying from the cache. i would like to …

Member Avatar for kevin wood
0
108
Member Avatar for kevin wood

i have created a table to store a random number in and now i need the number that has been stored in the db to equal a variable on the new page. to get the information out of the db i have used this code [CODE]$query = "SELECT random1 FROM …

Member Avatar for kevin wood
0
69

The End.