1,003 Posted Topics

Member Avatar for davy_yg

Hi, Try this,,, this is my test codes from the other threads, and I have to modify it similar to your xml . You can use the code as an example of what you are trying to achieved. There should not be any problem mocking it to your own. Here …

Member Avatar for veedeoo
0
331
Member Avatar for Kewne

Hi, Can you rewrite your js function so that the only thing left is to call that function. If so, you can do it like my example below. Not a big one, but that's how you make the php call for the output of the js function. unless, you want …

Member Avatar for Kewne
0
212
Member Avatar for leader2345

Hi, Here are the samples of ones and zeros take your pick... <?php $x = false; $y = true; $z = NULL; $a = 0; $b = 1; ## as dumps var_dump($x); echo "<br/>"; var_dump($y); echo "<br/>"; var_dump($z); echo "<br/>"; ## as boolean to integer to reflect 0 as false …

Member Avatar for veedeoo
0
170
Member Avatar for jcomputing

Hi, try reading this one [Here](http://www.dynamicdrive.com/dynamicindex17/animatedcollapse_suppliment2.htm). That is one of many implementation I found. While this one [ Here](http://www.randomsnippets.com/2008/02/12/how-to-hide-and-show-your-div/) is pretty good I think. It all depends on how fancy you want it to be..

Member Avatar for jwdunne
0
142
Member Avatar for kletig

Hi, This is just a humble suggestion.. I didn't really read your codes in its entirety, but I could see lots of improvements in the nested while loops area. You can try improving it by using mysql join. By using join, you might be able to get rid some of …

Member Avatar for kletig
0
129
Member Avatar for vijayram

Hi, Try putting your <table> tags, before the foreach loop as in.. ( Reminder: I am just following your coding style, which I always do most of the time, when posting response, but in my own projects I must use smarty or twig, because I really hate mixing php and …

Member Avatar for vijayram
0
147
Member Avatar for moblyft

Hi, the name on these form inputs... <input name="image1" type="file" id="ufile[]" size="50" /> should also be in an array like this <input name="ufile[]" type="file" id="ufile[]" size="50" /> UPDATE! I have to remove some codes, because it was deprecated...just use $_FILES..

Member Avatar for moblyft
0
364
Member Avatar for codemonkey88

copy, paste to notepad, save as anyNameYouWant.php, upload to your server, and then direct you browser to it. <?php phpinfo(); ?> Look for the server API value and the loaded configuration file value.. 1. If Server API says anything about apache, then you can use the .htaccesss trick. 2. If …

Member Avatar for codemonkey88
0
115
Member Avatar for UFO Disko

Can you please verify, if I am understanding your question fully well. this 12345 Rihanna - Song #1 is roughly the output of this? echo $row['id']." ".$row['artiste'] ." Song # ".$i; If so, you don't have to put for loop within the while loop. You can let the $i increment …

Member Avatar for vibhaJ
0
50
Member Avatar for riahc3

try, <?php $scookie = "hi"; setcookie("Cookie",$scookie); $someString = "5"; echo $_COOKIE["Cookie"].$someString; ?>

Member Avatar for vibhaJ
0
149
Member Avatar for dtidmas1

Hi, Can you mark this solved, so that people stop clicking on the linked question. Thanks....

Member Avatar for veedeoo
0
63
Member Avatar for nikoerror

try chaning this echo "<b><font color="red">".$data[0]." - Inactive Account / Invalid Pass</font></b><br />"; to this echo '<b><font color="red">'.$data[0].' - Inactive Account / Invalid Pass</font></b><br />'; change line 74 to this echo '<b><font color="green">'.$data[0].' - SUCCESS!</font></b><br />';

Member Avatar for nikoerror
0
182
Member Avatar for pbracing33b

Hi, Did the book ever mention about the PDO connector? It looks like or very similar to this..... <?php $host = 'localhost'; $user = 'db username'; $pass = 'db password'; try { $thisDb = new PDO("mysql:host=$host;dbname=mysql", $user, $pass); echo 'We are connected'; } catch(PDOException $e) { echo $e->getMessage(); } ?> …

Member Avatar for veedeoo
0
224
Member Avatar for yy886

Hi, I agree with the above response. You will have to understand it, and use it to your application. Let me write a simple skeleton on what you have above.. class SomeYtApi{ ## define properties private $url; private $id; ## followed by the constructor function __construct($url, $id){ $this->url = $url; …

Member Avatar for veedeoo
0
1K
Member Avatar for mikeshadow

HI, Running xampp in windows, the directories are CHMOD'ed at 777 or writtable by default, so I can assure you there is not permission problem there. Try, go to your [localhost](http://localhost/), the click on phpinfo(), find the value of upload_max_filesize and post_max_size. These values should be at least change to …

Member Avatar for veedeoo
0
176
Member Avatar for athulram

I am currently using [Cleditor](http://premiumsoftware.net/cleditor/). It's pretty light 1 js file, one css file, and two images, a total bandwidth consumption of less than 10k.

Member Avatar for veedeoo
0
336
Member Avatar for breakforce

This is just an idea... others may have a better one.. if($page !=$lastpage){ ## add this at the end of the page number block ?> <input type="text" name="goto"><input type="button" name="this_button" value="go"> <?php } else{ ## you hide the go button because we are already at the end of the pagination …

Member Avatar for veedeoo
0
136
Member Avatar for vindom

Hi, In response to question 1, you have two options here. First is storing the images as BLOB(which I don't really recommend, unless you have a superly expensive copyrighted images.) , second, just have the image filename stored in database. Say you have a database called image, and this image …

Member Avatar for vindom
0
484
Member Avatar for charisma

Hi, I think your code will only take up to 6 thumbnails. To put more thumbnails, thumbnails needs to scroll ..There is a jquery that can do this. If my memory still serves me well, I think it was called jmycarousel it is free , and there is this jquery …

Member Avatar for charisma
0
197
Member Avatar for athulram

Hi, You can try logging in the admin first, and then generate a random security salt, assign this salt to session e.g. $_SESSION['security'] = 1653e9gg4r99s@$7700_)llls4*34rf8*53~, and then on your member's database table, you must insert this in session column. While the admin hops over pages, you can double check if …

Member Avatar for BenzZz
0
204
Member Avatar for LastMitch

Hi, Yes you can do it.. here is sample. This example demonstrate how to assign array in session. 1.php <?php session_start(); ## page one $sku = "12345678_SKU"; $itemID = "580007"; ## make sure the above are not empty if((!empty($sku))&&(!empty($itemID))){ $itemAr = array( $sku, $itemID ); $_SESSION['items'] = $itemAr; } echo …

Member Avatar for LastMitch
1
161
Member Avatar for vijayram

before editing your php.ini file, you need to know which configuration file is currently loaded on your server. There are two php.ini files one is located in the apache and one is in the php directory. if you run phpinfo(); you should be able to see the value of the …

Member Avatar for veedeoo
0
103
Member Avatar for polycinco

> Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'steve_wff'@'208.113.246.18' (using password: YES) in /home/steve_wff/worldfamousflags.com/usssa/system/database/mysql.php on line 6 Like the error already said, check your database username's password. Make it is using the right password for the username defined in your msql.php file line 6.

Member Avatar for veedeoo
0
85
Member Avatar for charisma

Have you ever consider php powered gallery? It is more manageable than just pure html gallery type.. PHP should be able to give you the options to edit, delete, or even upload your files...

Member Avatar for charisma
0
93
Member Avatar for Jake.20

I don't know if they still have it now, but this is the high school I graduated from 3 years ago.. [Click Here](http://www.troyhigh.com/index.jsp)., Where the future harvard, princetonian, caltech candidates are being created all year round in southern california..

Member Avatar for Jake.20
0
93
Member Avatar for shanna62

Hi, Ans 1. FTP is a lot faster than your conventional file management in cpanel. It will be a lot easier to change file and directory permission using FTP program e.g. filezilla. Ans 2. Yes, anything that refers to instruction such as create a new directory in your root directory.. …

Member Avatar for shanna62
0
241
Member Avatar for kjeu_kach

Hi, Look for the class file, and the method called $android.. OOP have setThisFunction and getThisFunction.. in your case look for the seThisFunction.. e.g. public function fetchFile().. The item you are looking for is probably located in the constructor, if not look up somewhere above the property block. By the …

Member Avatar for veedeoo
0
379
Member Avatar for vijayram

Hi, Just place your cursor before > and then hit back-space . I think the arrow operator has been separated. Do the same on line 20. -> should not be separated as shown on your codes - >

Member Avatar for vijayram
0
202
Member Avatar for dgibbons82

Hi, let me test it on my joomla, but try dschuett's suggestion first. It should work... UPDATE: Sorry, when I editied my response the array sample got deleted. Here it is again. $thisArray = array('item1','item2','item3','item4') $_SESSION['items'] = $thisArray; ## to access the array, you just have to start session ## …

Member Avatar for veedeoo
0
310
Member Avatar for johndohmen1963

you have too many un-necessary statements and queries. Remember, you are only validating ONE member, one password, one ip, and lastly one id. Your first query to validate user should be enough,.. Checking the id don't make sense. Especially, if the id is auto incremented on your database. It does …

Member Avatar for johndohmen1963
0
219
Member Avatar for sammry

Hi, You can try creating another column on your members table, you can name it anything e.g. notified.. Just right after your script send the email, update this column by inserting some indicator e.g true or false You can then modify your query above to something like this... select email …

Member Avatar for vibhaJ
0
166
Member Avatar for mangel.murti

did you try? while($row = mysql_fetch_array($result)) { $thisArray[] = $row; }

Member Avatar for vibhaJ
0
121
Member Avatar for LastMitch

Yes, tomato is a fruit. Included in dicotyledon fruit group along with apples, plums, pears, oranges and few others.

Member Avatar for Biiim
3
1K
Member Avatar for Kniggles

try, echo '<td> <a class="mylink" target="_parent" href="http://'.$row['car'].'">'.$row['tag'].'<br>';

Member Avatar for Kniggles
0
141
Member Avatar for sowh4t

HI, You should HTML DOM Parser.. search on it on google..and you can parse the target page as simple as echo file_get_html($myurl)->plaintext; Of course, you can do a more advance filtering. It all depends on what items you want to scrape.

Member Avatar for mschroeder
0
127
Member Avatar for Tko_1

Hi, Session will work on this type, I mean even in a much more complicated applications. Session can even handle an array, and it will save the data in it , until it is unset -> removes the item in the session but not the session itself, OR session destroy-> …

Member Avatar for Biiim
0
203
Member Avatar for decade

You can also do it this way...C++ style... The $z is rolling in its own grease a 100 times .. <?php call_user_func( $x = function( $yx, $z =1 ) { echo (string)("Hello World <br/>"), $yx[floor($z/100)]($yx, ++$z); }, array( $x, function(){} )); ?>

Member Avatar for blocblue
0
1K
Member Avatar for realworldmedia

Hi, Move all these before the while loop.. <div class="body2"> <div class="main"> <section id="content"> <div class="wrapper"> <article class="col1"> <div id="slider"> and then after the closing curly bracket of your while loop, move these. </div> </article> By the way, where is the opening tag of article?

Member Avatar for vibhaJ
0
233
Member Avatar for ak47carbon

Dude, You need to learn how to relax, and take it easy... panicking will not make you a better coder. Just seat back, relax, look over the window, if you have a cup of starbucks coffee within your reach, take a sip or two, take a few deep breath, exhale …

Member Avatar for vibhaJ
0
226
Member Avatar for DaveyMoyes

try.. $username = " this is user name "; $username = trim(str_replace(' ','',$username)); echo $username; for registration, try $username = preg_replace('/\s\s+/', '', $username);

Member Avatar for vibhaJ
0
283
Member Avatar for Tko_1

Thanks for sharing..... and you can also expand the above codes to make a cache file of the index.php above. Using the same concept, we can make a cache of the index.php above . Create a new directory called cache. make sure this is writtable for the script. Say, we …

Member Avatar for Tko_1
0
145
Member Avatar for breakzzzz20

Hi, This is just a suggestion. Why not remove your pagination script first. Go back to where your script works. Then create a pagination class. If you are not comfortable with writing a class just write it in the simplest form.. like this ## filename: pagination.class.php ## class PageIt(){ ## …

Member Avatar for breakzzzz20
0
408
Member Avatar for don't give up

Hi, I think you need to focus more on validating which submit buttons were click. You have two of them. If I click one only, then on POST, you will get the undefined index error on the other. Why not try validating your form submission based on the submit button …

Member Avatar for don't give up
0
180
Member Avatar for CarterLangley

Hi, Where do want to put the last else? Your conditions are set like this if(){ ## this is your first if } else{ ## this is else for the if above.. ## you have all the ifs here for error checking ## below is your last if within this …

Member Avatar for CarterLangley
0
205
Member Avatar for Jfunch

Hi, What you can do is to create a dummy check out button that will make them login, when they successfully logged in, then show them the paypal pay button or other payment button. However, this may be make other shoppers to feel of being forced to register and logged …

Member Avatar for veedeoo
0
132
Member Avatar for apanimesh061

try doing a var_dump.. that should give you something in return. Actually, I created a demo of this type of script as shown [Click Here](http://veedeoo.com/formtest/chart.php). What I did was disassembled the class, because it is creating so much trouble. I don't think it is worth the hassle. So, class have …

Member Avatar for veedeoo
0
343
Member Avatar for CriticalError

These are the reasons why I LOVE PHP over anything else.. I mean I also like active server language, but I think PHP is more extendsible. PHP can also be a very powerful coding language , if either one or all are used.. framework, templating system, OOP.. The same thing …

Member Avatar for veedeoo
0
409
Member Avatar for marifard

What is the error message you are getting? Another possible problem is the db class. Are you using a database connection class? If so, what is the name of the class? Look for something like this.. class Something{ // more stuffs here function someFunction(){ } } In my example above, …

Member Avatar for marifard
0
172
Member Avatar for breakzzzz20

HI, You need to remove the * from your select. Try using this $result=mysql_query("INSERT INTO archieve (username, password, fullname, course, year) SELECT username, password, fullname, course, year FROM original_table WHERE id='$id'") Don't get too agressive on your DELETE query.. YOu need to make sure that data has already been posted …

Member Avatar for breakzzzz20
0
236
Member Avatar for apanimesh061

Hi, What are you trying accomplished? Parse the books with their, description, thumbnails.?.

Member Avatar for apanimesh061
0
297

The End.