- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 9
- Posts with Upvotes
- 8
- Upvoting Members
- 6
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Open Source, PHP, Delphi, SQL, Games
- Interests
- software development, games, fishing, reading, writing, music
- PC Specs
- Mac,i7,Lenovo,i7, 2GB Graphics
39 Posted Topics
Re: I'd recommend staying on PHP7.4 at this stage, I found some weird things not working , for one parameterized queries on sqlite! The new features do seem to be great, rule of thumb though - wait a year or so before making a leap. | |
Re: Hi Code runner You have two questions here -> one about sessions and one about email, not knowing your exact configs I can suggest the following: 1.) Sessions Naming your sessions using session_name can help in seeing if the server settings have been configured to auto start the PHP session. … | |
Re: Hi is there a installation guide / database config that needs to happen ? Also I see you are using mysql_connect vs mysqli_connect, I would perhaps consider changing that, or maybe making use of sqlite for the database. | |
Re: Hi Muslim_1 I would look into phpDaemon, it should help solve your problem, rather stay away from Cron to do this type of thing. http://daemon.io/faq.html I have had much success using daemons written with PHP. My thoughts are you could simply send all those messages simultaneously using something like phpDaemon. | |
Re: Hi Mohamedrani Assuming you are using MYSQL with unicode support, you need to set the charset after connecting to the database: mysql_query("SET NAMES UTF8"); You may have to tell the browser that you are sending out UTF-8 chars as well? Hope this helps | |
Re: Hi Danny and other users who read this, the following URL I have found very useful for testing .htaccess rules: https://htaccess.madewithlove.be | |
Re: Hi Vipula Not knowing what is in your config file, you have a couple of places your code could fail: 1. Database connection is not correct - global variable $conn is not correct - test with a var_dump, is mysqli extension installed? 2. Your SQL, echo out your select statement … | |
Re: Hi Allyson I trust that you have already solved your problem, however for purposes of answering this question here are some comments on a possible solution, the issues you experienced are what is known as a logic bug and your code is doing exactly what you described: 1. Your retry … | |
Re: Hi Generally you do this in your domain registration panel with the company that you registered your domain with. If your DNS is self hosted, you will have to update the DNS on your own server (I don't think this is you). Godaddy, MyDomain etc all have panels to update … | |
Re: Looking at your code you will need to fix up your output to represent something like below, you are missing "p" tags. So just add them and you should be fine. <li data-source="list=PL5F394CB9AB8A3519" data-playlist-name="MY YOUTUBE PALYLIST" data-thumbnail-path="content/thumbnails/large2.jpg"> <p class="minimalDarkCategoriesTitle"><span class="minimialDarkBold">Title: </span>My playlist 2</p> <p class="minimalDarkCategoriesType"><span class="minimialDarkBold">Type: </span>YOUTUBE</p> <p class="minimalDarkCategoriesDescription"><span class="minimialDarkBold">Description: … | |
Re: Hi Praba, Magento is a large system to fully comprehend, I would recommend studying their tutorials, you need to be looking into your theme templates for product display: Magento/app/design/frontend/default/your_theme/template/catalog/product/ Have a look at the fields already displaying there and look into the Class documentation for the specific fields you want. … | |
Re: I would modify these lines here, you have a couple of options, set a request param on the anchor of TAB 2, or a hidden input to indicate which tab was clicked, you would need some PHP code to set which tab is active, so you need an "active" style … | |
Re: Hi Emma, The resulting code looks fine, which browser are you using? I would also caution against relative name paths for your images, you may not get the results you want. | |
![]() | Re: Hi Sergio Max length for fields will depend purely on what you plan to store in them and whether we are talking about, after creating many different forms over time you get to a feeling for these things. Here are the sizes that I use: First Name & Last Name … ![]() |
Re: This may be late, but it is relevant to anyone loading extra extensions into your PHP, Always check which version of PHP you have first. You will also need to know if you have a thread safe or non-thread safe version. After this you should download the extension you need … | |
Re: The default `Sent` needs to say default 'Sent', easy way to remember is that text stuff needs single quotes in SQL. | |
Re: Galaxy S4 is able to pick up 5GHz networks, I have found this situation also where laptops will not pick up a network but my mobile devices will. The thing you need to find out is what mode the wifi is broadcasting on, there are a couple, perhaps this needs … | |
Re: The first issue on connecting to a MSSQL database probably pertains to whether you are using and express version or not. The other problem will relate to which PHP drivers you have decided to use, there is a native Microsoft driver and the default PHP driver. I have discovered that … | |
Re: Just a question, why not filter the results when you do your query with a where statement "select date, ads, visible from table where visible = 1". Secondly, how are you fetching the data to your PHP ?, most common way to get your results out would be : $result … | |
Re: Hi Malatamil Please can you provide us with your operating system , it will also help to know if you are running any anti-virus software and Skype, sometimes Skype can mess with the webserver. The more information you provide the better, also if would also be useful to know if … | |
Re: Lets just start off with line 11, did you mean to not put an opening bracket on your if statement ? | |
Re: I'm not sure the file input can accomodate that, you should use a label around the input and put the file name in there. echo "<td><label>{$row["PicURL"]} <input type=\"file\" name=\"usefile\"> </label></td>"; Alternatively display the file as an img tag to show the user what has already been chosen? | |
Re: Check out the link below, I hope it helps [Click Here](http://czetsuya-tech.blogspot.com/2009/09/magento-change-label-of-my-wishlist-etc.html#.U6h2SKhCWeQ) | |
Re: Just test `if (isset ($_FILES["userfile"]) ) `. Only run your code if that is true. You can replace this code with that of line 12. | |
Re: Hi your Count () function may not result in a field name called id which you are trying to order by so you probably need to alias it.select count(id) as id... ![]() | |
Re: Hi, are you still interested in an answer to this question ? | |
Re: Hi, I have already solved this scenario using Cross Database Engine. It has an encode_image function which can make thumbnails and it does a checksum on the image from the database to see whether it should output the file again. Here is an example: <?php //before starting, please have sqlite3, … | |
Re: Hi Bile Your problem lies in the separation of client side and server side code, the simplest solution I can suggest is something as follows: In your PHP part of your application you can check if the $_REQUEST variable has been set for the drop down box. If it has, … | |
I've logged in with my google profile, but I did have an existing profile which I deleted. Now I want to get the same username handle again, system says it is taken which I understand completely as pervious posts I made would still be linked. Please help me get my … | |
Re: In Firefox web browser one can copy a raw image into the CKEditor. You will have to copy and past the images individually after you have copied the text. Make sure you use the paste from word icon to remove formatting which may "hurt" the content. | |
Re: My five cents are that the general rule of thumb with auto increment fields is that you leave them out of your insert statement, otherwise you are actually saying you want that primary key to be null, which it can't be as per your create statement. | |
Re: Hi Wfray It may be that your button tag is performing a form post / submit on firefox and not on IE ? It is the only thing I can think of. Try adding onsubmit="return false" inside your form tag to test my theory. If that's not it then I … | |
Re: Hi Radwanullah I'm not sure I am going to answer your question, you should perhaps explain where you are struggling ??? As far as I can see your issue will come down to how you name your checkboxes and this in turn will impact how the request variables are generated … | |
Re: Hi Jay I've implemented both native and open source drivers in mssql in Cross Database Engine, you should give it a spin, save you hours of time figuring out what to do. All the connection strings are the same. http://sourceforge.net/projects/cdeengine/ I would have a look at your SQL, no need … | |
Re: Hi Daniel My logic would suggest to create a PDF from the document file then apply your current process. Have a look at this article http://blog.muhimbi.com/2013/02/converting-files-to-pdf-and-other.html And alternatively http://stackoverflow.com/questions/5538584/convert-word-doc-docx-and-excel-xls-xlsx-to-pdf-with-php | |
Re: $string = <<<XML <a> <b> <c>text</c> <c>stuff</c> </b> <d> <c>code</c> </d> </a> XML; $xml = new SimpleXMLElement($string); echo $xml->asXML(); $result = $xml->xpath('/a/b/c'); foreach ($result as $id => $child) { echo "<c>".(string)$child."</c>"; } | |
Re: Hi Broj1 Please try http://sourceforge.net/projects/cdeengine/ it is a simple include and works for pretty much any database you would need. Have a look at the cdetestclass.php line 170 for an example of how to store an image or file inside the database. | |
Re: As an additional observation - $Wall should be declared somewhere as well ? $Wall = new <ObjectName> ( Params ); | |
Re: <body> <?php include('../../datab.php'); if(!empty($_GET['ip'])) { $ip = $_GET['ip']; $ipcheck = mysql_query("SELECT * FROM `report` WHERE `ip`='$ip'"); if(mysql_num_rows($ipcheck)> 0) { while($row = mysql_fetch_array($ipcheck)){ ?> <p>Report ID : <?php echo $row['id'] ?></p> <?php } } } else { echo "Nothing Selected"; } ?> </body> You are basically trying to do this, just … |
The End.