[Solved] ()()()() after the title on the page [closed]

Please Try the following, let me know if it helps .. <?php mysql_connect(“localhost”, “user”, “password”) or die(mysql_error()); mysql_select_db(“Destinos”) or die(mysql_error()); $order = “SELECT * FROM Destinos ORDER BY Destino”; $result = mysql_query($order); ?> <table style=”width:300px”> <tr> <th>DESTINO</span</th> <th>PRECIO</th> </tr> <? while($data = mysql_fetch_row($result)){ ?> <tr> <td> <?=$data[0]?> </td> <td> <?=$data[1]?> </td> </tr> <?}?> </table> If … Read more

[Solved] Is the result of a print or echo a string or can they be number values in php? [closed]

PHP is giving you the string representation of 10, which is also 10. However, your JS code embeds this inside quotes, making it a JS string value. Since the .value property of the input element is also a string, JS ends up comparing the two “numbers” as strings and probably giving you unexpected results. Consider … Read more

[Solved] append dropdown box selections to a textbox [closed]

To achieve this, you would have to create a function that gathers all the values then formats them in the way you want. An example of this would be: function generate(){ var result=””; result += document.getElementById(‘drop1’).value + ‘ – ‘; result += document.getElementById(‘drop2’).value + ‘ – ‘; result += document.getElementById(‘drop3’).value + ‘ – ‘; result … Read more

[Solved] Form to PHP to PDF: Conversion Assistance

I’ve recently use pdftk (server) to do so: https://www.pdflabs.com/tools/pdftk-server/ First, install it on a webserver or locally. Then, here’s a PHP class I adapted from the web (copy it and name it PdfFormToPdftk.php): <?php class PdfFormToPdftk { /* * Path to raw PDF form * @var string */ private $pdfurl; /* * Path to PDFKTK … Read more

[Solved] How to create and fill php array from Mysql database

RTM Example #1 Fetch all remaining rows in a result set <?php $sth = $dbh->prepare(“SELECT name, colour FROM fruit”); $sth->execute(); /* Fetch all of the remaining rows in the result set */ print(“Fetch all of the remaining rows in the result set:\n”); $result = $sth->fetchAll(); print_r($result); ?> 0 solved How to create and fill php … Read more

[Solved] Unexpected T_ELSE [closed]

This would be a lot simpler using a switch/case logic scheme. I have re-coded what you had up there using switch/case and this might be a good intro for you to learn switch/case. You had some extra ( ) in one of the if statements above. I hope this helps, friend: <? $unix_time = 6734; … Read more

[Solved] Facebook API PHP or Android

A profile picture is basically just a Photo object in API terms, and as such can be liked as described here: https://developers.facebook.com/docs/graph-api/reference/photo/likes#Creating solved Facebook API PHP or Android

[Solved] Parse error: syntax error, unexpected T_ELSE in ….. modules.php on line 243 [closed]

You’ve added an else to an if that already has one. So what you have now is: if ($value[‘set_function’]) { […] // STS V4.6 drop start } else { if($key == ‘MODULE_STS_TEMPLATE_FOLDER’){ […] } // STS V4.6 drop end } else { $keys .= tep_draw_input_field(‘configuration[‘ . $key . ‘]’, $value[‘value’]); } which makes no sense. … Read more

[Solved] php redirect_to() function undefined

You have to define the redirect_to function before calling it. Try this code <?php if($result){ $num_rows = mysqli_num_rows($result); if($num_rows == 1){ $found_user=mysqli_fetch_array($result); redirect_to(“main.php”); } else{ redirect_to(“index.php”); } } function redirect_to($location){ header(‘Location:’.$location); } ?> solved php redirect_to() function undefined

[Solved] Parser Json PHP [closed]

Since this seemed to be the correct answer, and I’ve just set a bounty I could do with the rep of an accepted answer: either google, or RTM -> $parsed[0][‘data’][‘attr’][‘href’] 2 solved Parser Json PHP [closed]