- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 14
- Posts with Upvotes
- 11
- Upvoting Members
- 14
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
- Interests
- skateboarding,beer,music.
- PC Specs
- • Intel Pentium Dual Core Processor T4200 - 2.0GHz, 1MB L2 Cache, 800MHz FSB • Mobile Intel GL40…
Re: [QUOTE=gralex07;663332] Note: the [icode]<?php session_start(); ?>[/icode] needs to be at the very beginning of you code[/QUOTE] No whitespaces and echo statements also. | |
Re: use a timer to move your text. put this inside your timer event. label1.left=label1.left + 1 if label1.left = (*to where you want the marquee to be e.g. 500) then label1.left=(*label1.left before you start for example 5) end if just set your timer1.enabled=1,ok? | |
Re: use file_exists function [code=php] $filename = '/path/to/foo.txt'; if (file_exists($filename)) { echo "The file $filename exists"; } else { echo "The file $filename does not exist"; } [/code] | |
Re: variables and functions that are used throughout your program and on different forms can be stored in modules so that not to rewrite again each time the variables and functions when you need them in a form. | |
Re: try this one: [code=php] $query="Select cat_num from table"; $result=mysql_query($query) $num=mysql_num_rows($result); $i=0; while($i<$num) { $cat_num=mysql_result($result,$i,"cat_num"); $cat_new=$cat_num + 1(or $cat_num++); $query="UPDATE table SET cat_num='$cat_new' "; mysql_query($query); $i++; } [/code] I think that's it,let me know if it solves your problem thanks... | |
Re: Otherwise, use third party software like Installshield for this kind of stuff. | |
Re: try to have a counter so you can display your data: [code=php] $a=0; foreach ($days as $value){ $a=$a+1; } for($i=0;$i<$a;$i++) { echo $days[$a]; echo "<br/>"; } [/code] | |
Re: just delete out the "$row = mysql_fetch_array($result);" and it would be fine. | |
Re: redirect your page to somewhere so that when back button is clicked he cannot go back to the auth.php. change this: [code=php] echo " logged. Out."; [/code] to: [code=php] header('Location:index.php'); [/code] | |
hey guys,does anyone here know some tutorial on how to upload video files?tutorial in Adobe is quite confusing.Thanks.. | |
| |
Re: just escape the quotation marks you will need inside the first quotation mark: [code=php] $x="this \" is a quote"; echo $x; [/code] | |
Does anybody know a "PRO4" language?I have researched it and found no results.I think that may not be even a language,maybe a CMS or something.Any thoughts?Thanks | |
Re: replace this($q=mysql_query($p);) with this($q=mysql_query($p) or die(mysql_error()); to show the error you want to display. | |
Re: What do you exactly mean? | |
Re: sir, just add this before the crystalreport1.action=1: CrystalReport1.SqlQuery="Select * from table"; *table is the name of the table of your database you want to print. Good luck to your programming and to your church!! | |
Re: yeah,you can move that to the snippets page.It will be useful to many! | |
Re: try the move_uploaded_file() function to save the file into your directory and create a variable that will create a path to your file in the directory that will be used to store the path in mysql. it goes something like this.. <? move_uploaded_file($_FILES['file']['tmp_name'],$newimage); $ewan="../photoupload/"; $ewanko=$ewan . $newimage; $query="insert into test1 … | |
Re: Are the videos from another server?(e.g. Youtube). if yes then use file_get_contents(),couple it with some regular expressions then you can get the file name of the thumbnail. if no then you can use ffmpeg to capture screenshots from videos from your server. | |
Re: you can try JW flash player.It's free and easy to use. | |
Re: try this: [code=php] if($password == $repassword) { header('Location: login.php'); } else { echo 'sorry, passwords dont match'; } [/code] or could you post your whole code for better understanding. | |
Re: [QUOTE=nathanpacker;461506]I have looked everywhere, I've figured out how to add x amount of days to the current date, or take away x amount of days from the current date. But let's say I have a date stored in my database as "0000-00-00", that is not the current date. How can … | |