- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
- PC Specs
- Windows XP (System doesn't support higher) On AMD Sepron Processor (1.8GHz) 512MB RAMWhen not on that…
59 Posted Topics
Hello, I'm trying to write data to an INI file, I've got some code to read it: [http://pastebin.com/Jpwf8XJM](http://pastebin.com/Jpwf8XJM). I've tried to modify this code to get it to be able to write to INI files, but I haven't had much success. I know there are DLL's designed for this, but … | |
Re: [QUOTE=EdgarSwank;1425218]Does not work for me.[/QUOTE] Do you have windows (any version) as this will not work unless you change the path if you are not using windows [code=html] \/ <EMBED SRC="C:\Windows\Media\Onestop.mid" hidden=true autostart=true loop=1> [/code] Change to a absolute url to the file or to the folder it is in. | |
Hey, I'm making a website, and have some css to put two divs next to each other. This is my css and HTML code : [CODE].class1 { float:left; border-right:2px solid #000; } .class2 { float:right; } .class3 { clear:both; }[/CODE] HTML : [CODE] <div class="class1"> Div 1 </div> <div class="class2"> … | |
Re: By login page, do you mean the design or the code or both? | |
Re: [code] if(!isset($_GET['halaman'])) { $_GET['halaman'] = 1; // add default page number } [/code] | |
Re: I think you could use [GreyBox](http://orangoo.com/labs/GreyBox/) for this. It doesn't use any frameworks, and allows you to display websites, text and images. | |
Re: Wouldn't you put the rel attribute on the a tag to open the image? (well, that's how it works with Lightbox anyway) | |
Re: There is a thread specially about this kind of error: [URL="http://www.daniweb.com/web-development/php/threads/191031"]http://www.daniweb.com/web-development/php/threads/191031[/URL] If that doesn't help, post what the error says in full. | |
Re: Have you used the cookie viewer of your browser to check the cookie is being created? | |
I have a Java program, which launches a app, but before starting, it checks for the version.txt file, and if it doesn't exist, or there is a newer version available off my site, it downloads it. Well, not quite. I've got the part that checks for updates, and file existence, … | |
Re: It's giving you the `Broken Image` error because you aren't displaying just a image when calling the view.php file from other scripts. Maybe have a function that returns the value of the image from the database and uses the data:// Uri, for example? | |
Re: Could you detect the user-agent of the device and disable the links/buttons if the user is not on a mobile device? | |
Re: MySQL Is telling you that the table doesn't exist. Are you sure you've got the right table names? Also, try using these (`) around table and field names. [CODE] $result = mysql_query("SELECT `amount` FROM `wallet` WHERE `id` LIKE '%$id%'") or die(mysql_error()); [/CODE] | |
Hello. I don't know if this is the right forum for this. I have resently downloaded a custom jQuery UI Pack, only using core and tab widget. On the examples in the index.html file, everything loads fine. Then I copy the files to my website directory, (all locally) and the … | |
Re: If it is unfocused the onblur event is initiated, could you run code on that event, checking to make sure they are not trying to go to another text box | |
Re: cwarn23, in your code I cannot see what variable image is equal t. Could you please explain | |
In JavaScript (preferably jQuery) how could I create a new element and set its values, but I want it in a specific place In the document. My divs are structured like this : [code]/* container item [item to be created inserted here] */ [/code] I know how to do this … | |
Re: Line 85 is missing closing a tag. Are you getting any errors from PHP? | |
Re: to find out a little info about what is happening, change these bits of code: [CODE] /* Where you connect to the db : mysql_connect("localhost","user","pass") or die(mysql_error()); Change pass to your password Where you select the DB : mysql_select_db("dbname") or die(mysql_error()); Change dbname to your dbname. [/CODE] If you still … | |
Re: Sorry, the post button clicked by accedent, but I'll find a way to do this. | |
Re: [code] <script type="text/javascript" src="/view/javascript/ckeditor.js"></script> [/code] requires the folder view to be at server root, try [code] <script type="text/javascript" src="./view/javascript/ckeditor.js"></script> [/code] for document relative linking | |
Hello, today I'm going to show you how to make a PHP Password Generator. There are other ways of doing this, but I'm going to show you the way I use. Feel free to add your way too! Ok, let's get started. Make a new directory to store your files … ![]() | |
Re: This script will only work if the host has php_printer in their extensions... | |
Re: What do you mean by that? More info please... | |
Re: Have you set the correct permissions? | |
Re: Do you mean the homepage when not logged in or what? | |
Re: some sites PHP.ini files have all error reporting on. add [CODE]ob_start();[/CODE] to the start of the file, evem before comments. Please say if this works | |
Re: You could use the [CODE] <link /> [/CODE] property. Example : [CODE] <link rel="stylesheet" href="stylesheet.css" media="all" /> [/CODE] That is the only way of including a stylesheet without import queries. | |
Re: Have you tried `beutifiying` your code? eg: [CODE] /* Code: */ session_start(); if(isset($_SESSION['somevar'])){echo $_SESSION['somevar']; }else{echo 'othervar'; } /* Would Be:*/ session_start(); if(isset($_SESSION['somevar'])) { echo $_SESSION['somevar']; } else { echo 'othervar'; } [/CODE] This often helps you to find errors in your code. Also, use single quotes or double quotes unless … | |
Hello. I'm going to show you how to make a basic php image gallery. Firstly, create the following files [LIST] [*]index.php [*]view.php [*]/images (dir) [/LIST] Now, for the code. index.php [CODE] <?php $img = array(); $img[] = array('title'=>'img1', 'src' = 'img1.jpg'); ?> <html> <head> <title>mygallery | homepage</title> </head> <body> <h2>mygallery</h2> … | |
Re: when user signs up, you could use [CODE]mkdir($username)[/CODE] and in that dir, you could make index.php, and in index.php use file_get_contents (making sure that any images or links a relative to the directory, or use absolute urls) to get the contents of user.php?name=$username | |
Re: Try changing to this bit of code : [CODE] $sql="SELECT * FROM accounts,adminaccount WHERE accounts.emailaddress='$username' and accounts.password='$password' or adminaccount.emailaddress='$username' and adminaccount.password='$password'"; $result = mysql_query($sql); $count=mysql_num_rows($result); while($row = mysql_fetch_assoc($result)){ $usertype = $row['usertype']; if($count==1) { $_SESSION['usertype']= $row['usertype']; $_SESSION['id'] = $row['id']; if($usertype == "admin") { header("location:indexadmin.php"); } else { header("location:indexmember.php"); } } else … | |
Re: cwarn23, you used the tags <xmp> and </xmp> before and after your code. Could you explain what they are for? Matthew | |
Re: This could be achieved with php on the template page, and using a URL like my_script.php?file=img.png&t=my%20image. I will provide an example. [CODE] <HTML> <head> <title>Gallery : <?php echo $_GET['t']; ?></title> </head> <body><div align="center"> <table> <tr><td><b><?php echo $_GET['t']; ?></b></td></tr> <tr><td><img src="images/<?php echo $_GET['file']; ?>" /></td</tr> </table></div> </body> </HTML> [/CODE] sorry about … | |
Re: You could use $("#id"); in jQuery and give everything id's, and knowing that all elements in a div will inerit the properties of the parent element(I think) . | |
Re: I think $.get(); may do this. Please tell me if it works. | |
Re: So on Mac 10.4 the fields are weirdly aligned? This may be a CSS thing.. Matthew | |
Re: In you CSS, make sure that the bg image comes befor the by color, otherwise if the bg color is first, the bg image will override the bg color, only if the item with the bg color is inside the other item. Hope this makes sense. - Matthew | |
Re: A google search for web fonts found me google web fonts, a js way of loading fonts | |
Re: Also, on some servers, you need to add a @ sign before mysql_num_rows and mysql_fetch_assoc/array. This is to do with error_reporting. To stop the @ sign being needed, change error_reporting to 0 in php.ini, or add [CODE]error_reporting(0);[/CODE] to the top of your code. Matthew | |
Re: XAMPP Is a package with php apache cgi and many more [URL="http://www.apachefriends.org/xampp-en.html"]XAMPP[/URL] | |
Re: You can refresh a form be using [ICODE]Me.Refresh[/ICODE], so you could get your data in variables such as : [CODE]TextBox1.Text = Name TextBox2.Text = Date[/CODE] etc, getting the variables from the database. [URL="http://www.youtube.com/watch?v=mmK5c8S9Vso"]Watch Youtube Video On Connecting To Access Database[/URL] (This is a 2 part video) After loading data, call … | |
Re: it would be [CODE=php]<?php if($_POST['guess'] != 2) { die("Answer is rong"); } else { what happens if right } ?>[/CODE] ![]() | |
I have made a php comment script. It works fine, except that you cannot veiw the comments, you don't need to sign in or anything, but it wont show the comments. you can veiw the source at [URL="http://www.jsclsftwre.22web.net/testing/index.php"]Veiw it here[/URL] | |
Hello, I have a JavaScript calculator, here is the code:[CODE]<script type="text/javascript"> var num1=prompt('Enter your first number',""); var num2=prompt('Enter your second number',""); var problem=prompt('Enter the operator you wish to use..x,X,+,-,/ are valid..',""); if (problem=="+") { alert("The anwser to your equasion is "num1+num2); } else if (problem=="-") { alert("The answer to your … | |
Hi, I have a code here, a back button in such. Here is the code: [CODE] <FORM> <INPUT TYPE="button" name="but1" value="Go Back" onClick="window.location='jbutton.htm'"> </FORM> [/CODE] Please use HTML to do this IF POSSIBLE. I would like to use a image with like say [CODE]<h2>[/CODE] above it, and both the picture … | |
Re: May I suggest using a free program such as [URL="http://www.mediafire.com/?54x9moi2o6obd"]SWF Banner Pro[/URL] you can make flash animation in it, also you can insert your banners to make a moving banner | |
I have watched alot of Java tutorials on yutube, but they all say to go to [url]http://www.sun.com/[/url] and get the JKD, but there is about 7 downloads labled JKD and java development kit, so can somebody please give me an exact download link, i want to have a look at … | |
|
The End.