• Member Avatar for cereal
    cereal

    Began Watching Alter values of referer

    How to Convert PHP HTTP_REFERER to Null referer How to Convert JS document.referrer to Null referer Forexample site http://www.refnull.com/
  • Member Avatar for cereal
    cereal

    Replied To a Post in uuid - how to convert uuid to caps?

    Have you tried `upper()`? Example: select UPPER(CONCAT('CMRC', LPAD(UUID(), 10, '0'))); * http://dev.mysql.com/doc/refman/5.5/en/string-functions.html#function_upper
  • Member Avatar for cereal
    cereal

    Replied To a Post in mysql_fetch_array error

    It means `$grupa_select` (which was `$grupa_select2` in your original script) is not defined.
  • Member Avatar for cereal
    cereal

    Replied To a Post in mysql_fetch_array error

    Ok, `mysql_query()` accepts two parameters, the first is mandatory, the second is optional. This: $pregled = mysql_query("select * from koncerti where grupa_id = ".$grupa_id['id'].""); if (!mysql_query($pregled,$grupa_id,$selektovanje)) { die('Error: ' . …
  • Member Avatar for cereal
    cereal

    Replied To a Post in mysql_fetch_array error

    Hi, define the error you get on line **42** and add `mysql_error()` to this query and to the previous.
  • Member Avatar for cereal
    cereal

    Began Watching How much does website cost?

    How much do websites cost? I want to start threads on certain forums and make websites for them. Pretty high quality/high end. I've been Googling so far, but prizes are …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Alter values of referer

    Regarding PHP try this: <?php $url = $_SERVER['QUERY_STRING']; if($_GET) { if(filter_var($url, FILTER_VALIDATE_URL) !== FALSE) { header('Location: ' . $url); } } Save it, for example, as **noref.php**, then use a …
  • Member Avatar for cereal
    cereal

    Replied To a Post in CSV UPLOADING UNIQUE RECORDS

    **@ashalatha** hi, you should open new threads for each new question not directly related to the original.
  • Member Avatar for cereal
    cereal

    Replied To a Post in PHP Mail - Using Server Default Address

    It seems possible, check their documentation: * http://support.hostgator.com/articles/specialized-help/technical/php-email-from-header If you still have problems then paste your code here. Bye!
  • Member Avatar for cereal
    cereal

    Replied To a Post in Trouble with JSON_decode

    Try to add `json_last_error()` right after `json_decode()`: switch (json_last_error()) { case JSON_ERROR_NONE: echo ' - No errors'; break; case JSON_ERROR_DEPTH: echo ' - Maximum stack depth exceeded'; break; case JSON_ERROR_STATE_MISMATCH: …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Trouble with JSON_decode

    It could be line `3` instead of the `json_decode` function, `print_r` requires brackets, so change it to: print_r($data);
  • Member Avatar for cereal
    cereal

    Replied To a Post in Counter variable in Codeigniter

    Try to use the `row()` method: $row = $cnt->row(); $new_cnt = $row->Counter_field + 1; But you could also run a single query: $this->db->query("UPDATE Job_Description SET Counter_field = Counter_field + 1 …
  • Member Avatar for cereal
    cereal

    Replied To a Post in php error

    **@jKidz** > can you explain more please? ok, if you open a conditional statement, before going to the next condition, you need to declare where you want to stop the …
  • Member Avatar for cereal
    cereal

    Replied To a Post in php error

    At line `17` you're closing the paranthesis of the `while` loop, so add another one: } // close while loop } // close if else {
  • Member Avatar for cereal
    cereal

    Replied To a Post in CSV UPLOADING UNIQUE RECORDS

    Ok, in your database table create a **unique key**: alter table category add unique key(cat_id); So you cannot insert duplicates and to avoid errors add the `IGNORE` statement to your …
  • Member Avatar for cereal
    cereal

    Replied To a Post in CSV UPLOADING UNIQUE RECORDS

    > The code which i mentioned above is wrong or right. It seems correct, but if you have doubts check the error log of CI and paste the errors here. …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Making backups of MySQL database over WAN?

    If the main plays as master then it's ok, just open 3306 at let the slaves connect to it, you do not need to open ports on slaves because they …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Searching form in php with drop down menu

    Hi, there are few errors here: $query = "SELECT arCompanyname, arAddress FROM ar WHERE $dropdown like'$search'" or die (mysql_error()); $result = mysql_query($query) or die (mysql_error()); $num=mysql_numrows($result); `$query` is a string, …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Making backups of MySQL database over WAN?

    Can you connect them directly? If yes, you can use replication: * http://dev.mysql.com/doc/refman/5.5/en/replication-solutions.html
  • Member Avatar for cereal
    cereal

    Replied To a Post in CSV UPLOADING UNIQUE RECORDS

    Create a unique key in your table scheme and then use a raw query: $row = array( $row['Category Id'], $row['Category Name'] ); $sql = "INSERT IGNORE INTO tablename SET cat_id …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Mystery positioning/height reports from client

    Maybe some of those browsers are in quirk mode (a.k.a standard mode). These links are for IE9/10, but it should be similar for IE11 too: * http://windows.microsoft.com/en-us/internet-explorer/products/ie-9/features/compatibility-view * https://www.cs.tut.fi/~jkorpela/quirks-mode.html
  • Member Avatar for cereal
    cereal

    Replied To a Post in str_replace not replacing

    It seems you want to search and replace a string in a json encoded array, correct? If yes, then each element is probably surrounded by quotes, example: $a['blog'] = 'blogtitle'; …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Get only one part from a variable

    Hi, you can use `substr()`: <?php $reportID = 'MPS141'; echo substr($reportID, 5); Will return all the characters after `MPS14`, but you can also create a function to return an array …
  • Member Avatar for cereal
    cereal

    Replied To a Post in access logs & error logs for different subdirectories in Apache

    > maybe i could do this with aliases? Hmm, no, because the **ErrorLog** directive can be set only once for each domain. The easiest solution is to create subdomains for …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Database Service Start and Stop.

    Hi, set a slave for the log database, then stop the replication, read the data you need and restart the replication: * http://dev.mysql.com/doc/refman/5.6/en/replication.html
  • Member Avatar for cereal
    cereal

    Replied To a Post in What is a PHP master page?

    >The only thing I have really found is that a master page is like a template? Yes, but **master page** is a definition for ASP.Net and Visual Studio (I think), …
  • Member Avatar for cereal
    cereal

    Gave Reputation to pritaeas in losing my mind

    Here's a start, you just need to convert the output into a tree: <?php $html = <<<EOT <ul> <li>menu 1</li> <li>menu 2<ul> <li>menu 2.1</li> <li>menu 2.2</li></ul></li> <li>menu 3</li> </ul> EOT; …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Google Analytics API

    It seems possible, check their documentation: * https://developers.google.com/analytics/devguides/reporting/core/v2/gdataReferenceDataFeed
  • Member Avatar for cereal
    cereal

    Replied To a Post in Update data

    Because of this: <form method="post" action="<?php echo $_SERVER['PHP_SELF']?>"> `PHP_SELF` returns the filename not the **query string**, to get all the values in the query string then you need also: $_SERVER['QUERY_STRING'] …
  • Member Avatar for cereal
    cereal

    Replied To a Post in access logs & error logs for different subdirectories in Apache

    Have you created separated **virtualhosts** directives for each sub-website? * http://httpd.apache.org/docs/current/vhosts/examples.html * http://httpd.apache.org/docs/current/vhosts/index.html * http://httpd.apache.org/docs/current/mod/core.html#virtualhost
  • Member Avatar for cereal
    cereal

    Replied To a Post in how is right to type the mysqli_connect

    It is probably `localhost`, but check in your **Account Manager** as suggested here: * http://support.godaddy.com/help/article/3323/locating-your-database-connection-strings
  • Member Avatar for cereal
    cereal

    Replied To a Post in how is right to type the mysqli_connect

    The parameters order is: * host * username * password * database name * port * socket Last two are optional, so: mysqli_connect("host","username","password","db_name"); Docs: * http://www.php.net/manual/en/mysqli.construct.php
  • Member Avatar for cereal
    cereal

    Replied To a Post in horizontal spry menu bar not lined up.

    > Do you mean the html code for my menu? Yes and also the CSS and the Javascript part. Anyway I've attached a test page based on your code pasted …
  • Member Avatar for cereal
    cereal

    Replied To a Post in build menu list from array

    Hi, I don't understand the scheme, how it works the relation between id and parent?
  • Member Avatar for cereal
    cereal

    Replied To a Post in Update data

    @davy read carefully your script, you have at: line 5: $post_id = isset($_POST['post_id']) ? $_POST['post_id'] : ''; line 14 & 15: if (!empty($_GET['post_id'])){ $result = mysql_query("SELECT * FROM static_page WHERE …
  • Member Avatar for cereal
    cereal

    Replied To a Post in horizontal spry menu bar not lined up.

    If you can upload or paste here a very simplified version of your page (only header and navigation), maybe it will be easier to fix the problem, I've tried my …
  • Member Avatar for cereal
    cereal

    Replied To a Post in form validation min and max input

    Hello, use this format: data-validation-length="45-60" Example: http://jsfiddle.net/3XYA4/ & docs: http://formvalidator.net/#default-validators_length
  • Member Avatar for cereal
    cereal

    Replied To a Post in horizontal spry menu bar not lined up.

    It seems we all got down vote, would be nice to know why :)
  • Member Avatar for cereal
    cereal

    Replied To a Post in half working code

    Hi, the problem is given by this: $abc=mysqli_query($con, $s) or die('cannot show tables'); if($abc) print_r($s); The function `mysqli_query()` returns `FALSE` on wrong queries, then it returns an `OBJECT` for *SELECT, …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Mysqli versus PDO

    PDO supports many databases, where MySQLi is limited only to MySQL and his forks. MySQLi instead has a better support for MySQL features and it can be used also in …
  • Member Avatar for cereal
    cereal

    Replied To a Post in codeigniter constants

    > Thanks it looks nice but involves writing a construct for each controller. If you load the library in the autoload.php file then you don't need the constructor. Anyway, helper …
  • Member Avatar for cereal
    cereal

    Stopped Watching Room Availability check with date range

    Hi All, These days I am implimenting a Hotel Room Reservation system. I have a small problem in Check Availability' page. below I listed my database structure. *rooms* rid int(11) …
  • Member Avatar for cereal
    cereal

    Replied To a Post in codeigniter constants

    You could create a library and use it to pull the constants from the database, for example, here the table: CREATE TABLE `constants` ( `name` varchar(255) NOT NULL, `value` varchar(255) …
  • Member Avatar for cereal
    cereal

    Replied To a Post in how to install JMF on linux Debian

    Hi, have you tried these instructions? * http://www.oracle.com/technetwork/java/javase/download-142937.html You must read the **setup instructions** link in the above document. If it still doesn't work for you, please explain the reason, …
  • Member Avatar for cereal
    cereal

    Replied To a Post in submit button redirect to a function on php page

    Yes, you can use multiple submit buttons in your forms: > submit buttons: When activated, a submit button submits a form. A form may contain more than one submit button. …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Displaying data from base

    Hi, assuming you're using method **GET** for your form, you need to read the value assigned to `$_GET['grupa_select']` and to use it as condition in your select query. So, something …
  • Member Avatar for cereal
    cereal

    Replied To a Post in calendar

    Have you tried **datepicker** from the JQueryUI package? * http://jqueryui.com/datepicker/ * http://api.jqueryui.com/datepicker/
  • Member Avatar for cereal
    cereal

    Replied To a Post in Anonymous Emails

    Hi, actually they seem to use the post ID as **local part** of the poster email address. So, they receive an email from a user on their servers and, then, …
  • Member Avatar for cereal
    cereal

    Replied To a Post in horizontal spry menu bar not lined up.

    I see it in the right side of the page, not to the left. Anyway you could add an `id` to the `td` tag containing the menu, declare it as …
  • Member Avatar for cereal
    cereal

    Began Watching Fetal error: Allowed memory size of 10485760 bytes exhausted

    ->Hi Daniweb-Web Developers. ->I'm using PhP 5.2.5,WAMP 5,MySQL 5. -I'LL TRY TO EXPLAIN IN DETAILS THE WHOLE STORY:- ------------------------------------------------- 1: I've declared a global variable dynamic array ALPHABETS_COMBINATION. 2:It is …

The End.